if (!item->IsEnabled())
return true;
+ if ((item->GetKind() == wxITEM_RADIO) && item->IsChecked() )
+ return true;
+
if (item->IsCheckable())
{
item->Toggle();
void wxFrameBase::OnMenuClose(wxMenuEvent& WXUNUSED(event))
{
// do we have real status text to restore?
- if ( m_oldStatusText.length() > 1 || m_oldStatusText[0u] )
+ if ( !m_oldStatusText.empty() )
{
if ( m_statusBarPane >= 0 )
{
DoGiveHelp(helpString, show);
- return !helpString.IsEmpty();
+ return !helpString.empty();
#else // !wxUSE_MENUS
return false;
#endif // wxUSE_MENUS/!wxUSE_MENUS
wxWindowID id,
const wxString& name)
{
+#if defined(__WXWINCE__) && defined(__POCKETPC__)
+ return new wxToolMenuBar(this, id,
+ wxDefaultPosition, wxDefaultSize,
+ style, name);
+#else
return new wxToolBar(this, id,
wxDefaultPosition, wxDefaultSize,
style, name);
+#endif
}
void wxFrameBase::SetToolBar(wxToolBar *toolbar)
}
#endif // wxUSE_MENUS
+
+#if WXWIN_COMPATIBILITY_2_2
+
+bool wxFrameBase::Command(int winid)
+{
+ return ProcessCommand(winid);
+}
+
+#endif // WXWIN_COMPATIBILITY_2_2