Remove wxSTC methods for configuring autocomp popup
The wxSTC methods AutoCompSetColours and AutoCompUseListCtrl were added
in fe7b332b7b
to allow some configuration
of the autocompletion popup window. Based on subsequent discussion, it
was decided that a better method of configuring the popup and getting
information about the configuration is needed. For now, simply remove
the current methods while the better solution is created.
In addition, since the configuration options are being removed, set the
popup to have the appearance of a list control since that was the
appearance before any configuration options were added.
This commit is contained in:
@@ -7423,54 +7423,6 @@ public:
|
||||
*/
|
||||
void RegisterImage(int type, const wxBitmap& bmp);
|
||||
|
||||
/**
|
||||
Set the colours used to display the items in an autocompletion list.
|
||||
|
||||
This method can be used if the default colours make the list hard to
|
||||
read or if specific colours are desired for whatever reason.
|
||||
@param background
|
||||
The colour used for the background of the list.
|
||||
@param text
|
||||
The colour used for all text except for the selected item.
|
||||
@param highlight
|
||||
The colour used to highlight the selected item in the list.
|
||||
@param highlightText
|
||||
The colour used for the text of the selected item.
|
||||
@remarks
|
||||
To reset one or more of the colours to its default,
|
||||
call this method with wxNullColour for the colour or colours
|
||||
to be reset.
|
||||
|
||||
@since 3.1.3
|
||||
*/
|
||||
void AutoCompSetColours(const wxColour& background, const wxColour& text,
|
||||
const wxColour& highlight,
|
||||
const wxColour& highlightText);
|
||||
|
||||
/**
|
||||
Use a wxListCtrl to display autocompletion and user lists.
|
||||
|
||||
By default lists will be displayed in a wxListBox. Use this method to
|
||||
display them in a wxListCtrl instead. The primary difference is that
|
||||
wxListCtrl has hot tracking to highlight the item under the mouse cursor.
|
||||
@param useListCtrl
|
||||
Set this to true to use a wxListCtrl and to false to use a
|
||||
wxListBox.
|
||||
@param currentBgColour
|
||||
The colour used to highlight the item under the mouse cursor.
|
||||
@param currentTextColour
|
||||
The colour used for the text of the item under the mouse cursor.
|
||||
@remarks
|
||||
To reset one or more of the colours to its default,
|
||||
call this method with wxNullColour for the colour or colours
|
||||
to be reset.
|
||||
|
||||
@since 3.1.3
|
||||
*/
|
||||
void AutoCompUseListCtrl(bool useListCtrl = true,
|
||||
const wxColour& currentBgColour = wxNullColour,
|
||||
const wxColour& currentTextColour = wxNullColour);
|
||||
|
||||
//@}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user