compilation warning fixed for wxUSE_TOOLTIPS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -943,8 +943,8 @@ void MyPanel::OnListBoxButtons( wxCommandEvent &event )
|
|||||||
case ID_LISTBOX_ENABLE:
|
case ID_LISTBOX_ENABLE:
|
||||||
{
|
{
|
||||||
m_text->AppendText("Checkbox clicked.\n");
|
m_text->AppendText("Checkbox clicked.\n");
|
||||||
wxCheckBox *cb = (wxCheckBox*)event.GetEventObject();
|
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
|
wxCheckBox *cb = (wxCheckBox*)event.GetEventObject();
|
||||||
if (event.GetInt())
|
if (event.GetInt())
|
||||||
cb->SetToolTip( "Click to enable listbox" );
|
cb->SetToolTip( "Click to enable listbox" );
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user