Added wxComboPopup::FindItem() to help in deciding how SetValue() should change the value of a read-only wxComboCtrl. This allows wxOwnerDrawnComboBox to have the same behavior as wxComboBox in that respect.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-12-20 13:51:24 +00:00
parent f179b35ec2
commit 238b33ab0e
5 changed files with 62 additions and 5 deletions

View File

@@ -41,6 +41,25 @@ public:
*/
void Dismiss();
/**
Implement to customize matching of value string to an item container
entry.
@param item
String entered, usually by user or from SetValue() call.
@param trueItem
When item matches an entry, but the entry's string representation
is not exactly the same (case mismatch, for example), then the
true item string should be written back to here, if it is not
a NULL pointer.
@remarks
Default implementation always return true and does not alter
trueItem.
*/
virtual bool FindItem(const wxString& item, wxString* trueItem=NULL);
/**
The derived class may implement this to return adjusted size for the
popup control, according to the variables given.
@@ -86,7 +105,7 @@ public:
Useful in conjunction with LazyCreate().
*/
bool IsCreated() const;
/**
The derived class may implement this to return @true if it wants to
delay call to Create() until the popup is shown for the first time. It