Add wxComboBox::Popup() and Dismiss() to manually show or hide its popup.
Add implementations for wxMSW and wxGTK. Closes #11506. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -82,7 +82,8 @@ public:
|
||||
virtual void SetValue(const wxString& value);
|
||||
virtual wxString GetStringSelection() const
|
||||
{ return wxChoice::GetStringSelection(); }
|
||||
|
||||
virtual void Popup() { MSWDoPopupOrDismiss(true); }
|
||||
virtual void Dismiss() { MSWDoPopupOrDismiss(false); }
|
||||
virtual void SetSelection(int n) { wxChoice::SetSelection(n); }
|
||||
virtual void SetSelection(long from, long to)
|
||||
{ wxTextEntry::SetSelection(from, to); }
|
||||
@@ -125,6 +126,7 @@ protected:
|
||||
#if wxUSE_TOOLTIPS
|
||||
virtual void DoSetToolTip(wxToolTip *tip);
|
||||
#endif
|
||||
void MSWDoPopupOrDismiss(bool show);
|
||||
|
||||
// this is the implementation of GetEditHWND() which can also be used when
|
||||
// we don't have the edit control, it simply returns NULL then
|
||||
|
Reference in New Issue
Block a user