Added hotkeys to menus "E&xit\tAlt-X" and such.
Added hotkeys to minimal sample. Please on wxMSW. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -73,6 +73,8 @@ public:
|
||||
// implementation
|
||||
void SetMenuItem(GtkWidget *menuItem) { m_menuItem = menuItem; }
|
||||
GtkWidget *GetMenuItem() const { return m_menuItem; }
|
||||
|
||||
wxString GetHotKey() const { return m_hotKey; }
|
||||
|
||||
void SetCheckedFlag(bool checked) { m_isChecked = checked; }
|
||||
bool GetCheckedFlag() const { return m_isChecked; }
|
||||
@@ -80,6 +82,7 @@ public:
|
||||
private:
|
||||
int m_id;
|
||||
wxString m_text;
|
||||
wxString m_hotKey;
|
||||
bool m_isCheckMenu;
|
||||
bool m_isChecked;
|
||||
bool m_isEnabled;
|
||||
|
Reference in New Issue
Block a user