}
break;
-#if 0
case WM_GETDLGCODE:
{
wxCHECK_MSG( win, 0, _T("should have a parent") );
}
}
break;
-#endif // 0
// deal with tooltips here
#if wxUSE_TOOLTIPS && defined(TTN_NEEDTEXT)
event.SetString(value);
event.SetEventObject(this);
- return ProcessCommand(event);
+ ProcessCommand(event);
}
break;
}
- // I don't think the following should be true. The return value is
- // whether the event has been handled, not the status of the handling.
- // So, we only return false if the switch fell through. This will
- // resolve the same event being sent multiple times by MS Windows.
- // mea 05-22-01
-
// there is no return value for the CBN_ notifications, so always return
// FALSE from here to pass the message to DefWindowProc()
return FALSE;
const wxValidator& validator,
const wxString& name)
{
+ // pretend that wxComboBox is hidden while it is positioned and resized and
+ // show it only right before leaving this method because otherwise there is
+ // some noticeable flicker while the control rearranges itself
+ m_isShown = FALSE;
+
// first create wxWin object
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
return FALSE;
);
}
+ // and finally, show the control
+ Show(TRUE);
+
return TRUE;
}