wxMenu
Implements methods from the following classes
wxEvtHandler
Methods
wxMenu
Constructs a wxMenu object.
Append
Adds a menu item.
AppendCheckItem
Adds a checkable item to the end of the menu.
AppendRadioItem
Adds a radio item to the end of the menu.
AppendSeparator
Adds a separator to the end of the menu.
AppendSubMenu
Adds the given submenu to this menu.
Attach
BreakMethod
Inserts a break in a menu, causing the next appended item to appear in a new column.
Check
Checks or unchecks the menu item.
Delete
Deletes the menu item from the menu.
Destroy
Deletes the menu item from the menu.
Detach
Enable
Enables or disables (greys out) a menu item.
FindChildItem
Finds the menu item object associated with the given menu item identifier and, optionally, the position of the item in the menu.
FindItem
Finds the menu id for a menu item string.
FindItemByPosition
Returns the wxMenuItem given a position in the menu.
GetHelpString
Returns the help string associated with a menu item.
GetInvokingWindow
GetLabel
Returns a menu item label.
GetLabelText
Returns a menu item label, without any of the original mnemonics and accelerators.
GetMenuItemCount
Returns the number of items in the menu.
GetParent
GetStyle
GetTitle
Returns the title of the menu.
GetWindow
Insert
Inserts the given item before the position pos.
InsertCheckItem
Inserts a checkable item at the given position.
InsertRadioItem
Inserts a radio item at the given position.
InsertSeparator
Inserts a separator at the given position.
IsAttached
IsChecked
Determines whether a menu item is checked.
IsEnabled
Determines whether a menu item is enabled.
Prepend
Inserts the given item at position 0, i.e. before all the other existing items.
PrependCheckItem
Inserts a checkable item at position 0.
PrependRadioItem
Inserts a radio item at position 0.
PrependSeparator
Inserts a separator at position 0.
Remove
Removes the menu item from the menu but doesn't delete the associated C++ object.
SetHelpString
Sets an item's help string.
SetInvokingWindow
SetLabel
Sets the label of a menu item.
SetParent
SetTitle
Sets the title of the menu.
Static Methods
wxMenu
wxMenu
(
integer
$style
)
Constructs a wxMenu object.
wxMenu
(
string
$title
,
integer
$style
)
Constructs a wxMenu object with a title.
wxMenu
( )
Constructs a wxMenu object.
Append
wxMenuItem
&
Append
(
integer
$id
,
string
$item
=
wxEmptyString
,
string
$helpString
=
wxEmptyString
,
wxItemKind
$kind
=
wxITEM_NORMAL
)
Adds a menu item.
wxMenuItem
&
Append
(
integer
$id
,
string
$item
,
wxMenu
&
$subMenu
,
string
$helpString
=
wxEmptyString
)
Adds a submenu.
wxMenuItem
&
Append
(
wxMenuItem
&
$menuItem
)
Adds a menu item object.
AppendCheckItem
wxMenuItem
&
AppendCheckItem
(
integer
$id
,
string
$item
,
string
$help
=
wxEmptyString
)
Adds a checkable item to the end of the menu.
AppendRadioItem
wxMenuItem
&
AppendRadioItem
(
integer
$id
,
string
$item
,
string
$help
=
wxEmptyString
)
Adds a radio item to the end of the menu.
AppendSeparator
wxMenuItem
&
AppendSeparator
( )
Adds a separator to the end of the menu.
AppendSubMenu
wxMenuItem
&
AppendSubMenu
(
wxMenu
&
$submenu
,
string
$text
,
string
$help
=
wxEmptyString
)
Adds the given submenu to this menu.
Attach
Attach
(
wxMenuBar
&
$menubar
)
BreakMethod
BreakMethod
( )
Inserts a break in a menu, causing the next appended item to appear in a new column.
Check
Check
(
integer
$id
,
bool
$check
)
Checks or unchecks the menu item.
Delete
bool
Delete
(
integer
$id
)
Deletes the menu item from the menu.
bool
Delete
(
wxMenuItem
&
$item
)
Deletes the menu item from the menu.
Destroy
bool
Destroy
(
integer
$id
)
Deletes the menu item from the menu.
bool
Destroy
(
wxMenuItem
&
$item
)
Deletes the menu item from the menu.
Detach
Detach
( )
Enable
Enable
(
integer
$id
,
bool
$enable
)
Enables or disables (greys out) a menu item.
FindChildItem
wxMenuItem
&
FindChildItem
(
integer
$id
,
integer &
$pos
=
NULL
)
Finds the menu item object associated with the given menu item identifier and, optionally, the position of the item in the menu.
FindItem
integer
FindItem
(
string
$itemString
)
Finds the menu id for a menu item string.
FindItemByPosition
wxMenuItem
&
FindItemByPosition
(
integer
$position
)
Returns the wxMenuItem given a position in the menu.
GetHelpString
string
GetHelpString
(
integer
$id
)
Returns the help string associated with a menu item.
GetInvokingWindow
wxWindow
&
GetInvokingWindow
( )
GetLabel
string
GetLabel
(
integer
$id
)
Returns a menu item label.
GetLabelText
string
GetLabelText
(
integer
$id
)
Returns a menu item label, without any of the original mnemonics and accelerators.
GetMenuItemCount
integer
GetMenuItemCount
( )
Returns the number of items in the menu.
GetParent
wxMenu
&
GetParent
( )
GetStyle
integer
GetStyle
( )
GetTitle
string
GetTitle
( )
Returns the title of the menu.
GetWindow
wxWindow
&
GetWindow
( )
Insert
wxMenuItem
&
Insert
(
integer
$pos
,
wxMenuItem
&
$menuItem
)
Inserts the given item before the position pos.
wxMenuItem
&
Insert
(
integer
$pos
,
integer
$id
,
string
$item
=
wxEmptyString
,
string
$helpString
=
wxEmptyString
,
wxItemKind
$kind
=
wxITEM_NORMAL
)
Inserts the given item before the position pos.
InsertCheckItem
wxMenuItem
&
InsertCheckItem
(
integer
$pos
,
integer
$id
,
string
$item
,
string
$helpString
=
wxEmptyString
)
Inserts a checkable item at the given position.
InsertRadioItem
wxMenuItem
&
InsertRadioItem
(
integer
$pos
,
integer
$id
,
string
$item
,
string
$helpString
=
wxEmptyString
)
Inserts a radio item at the given position.
InsertSeparator
wxMenuItem
&
InsertSeparator
(
integer
$pos
)
Inserts a separator at the given position.
IsAttached
bool
IsAttached
( )
IsChecked
bool
IsChecked
(
integer
$id
)
Determines whether a menu item is checked.
IsEnabled
bool
IsEnabled
(
integer
$id
)
Determines whether a menu item is enabled.
Prepend
wxMenuItem
&
Prepend
(
integer
$id
,
string
$item
=
wxEmptyString
,
string
$helpString
=
wxEmptyString
,
wxItemKind
$kind
=
wxITEM_NORMAL
)
Inserts the given item at position 0, i.e. before all the other existing items.
wxMenuItem
&
Prepend
(
wxMenuItem
&
$item
)
Inserts the given item at position 0, i.e. before all the other existing items.
PrependCheckItem
wxMenuItem
&
PrependCheckItem
(
integer
$id
,
string
$item
,
string
$helpString
=
wxEmptyString
)
Inserts a checkable item at position 0.
PrependRadioItem
wxMenuItem
&
PrependRadioItem
(
integer
$id
,
string
$item
,
string
$helpString
=
wxEmptyString
)
Inserts a radio item at position 0.
PrependSeparator
wxMenuItem
&
PrependSeparator
( )
Inserts a separator at position 0.
Remove
wxMenuItem
&
Remove
(
wxMenuItem
&
$item
)
Removes the menu item from the menu but doesn't delete the associated C++ object.
wxMenuItem
&
Remove
(
integer
$id
)
Removes the menu item from the menu but doesn't delete the associated C++ object.
SetHelpString
SetHelpString
(
integer
$id
,
string
$helpString
)
Sets an item's help string.
SetInvokingWindow
SetInvokingWindow
(
wxWindow
&
$win
)
SetLabel
SetLabel
(
integer
$id
,
string
$label
)
Sets the label of a menu item.
SetParent
SetParent
(
wxMenu
&
$parent
)
SetTitle
SetTitle
(
string
$title
)
Sets the title of the menu.