wxToolTip
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -658,6 +658,13 @@ void MyPanel::OnListBoxButtons( wxCommandEvent &event )
|
||||
case ID_LISTBOX_ENABLE:
|
||||
{
|
||||
m_text->WriteText("Checkbox clicked.\n");
|
||||
#ifdef __WXGTK__
|
||||
wxCheckBox *cb = (wxCheckBox*)event.GetEventObject();
|
||||
if (event.GetInt())
|
||||
cb->SetToolTip( "Click to enable listbox" );
|
||||
else
|
||||
cb->SetToolTip( "Click to disable listbox" );
|
||||
#endif
|
||||
m_listbox->Enable( event.GetInt() == 0 );
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user