wxmenubarentry
Description
A wxmenubarentry object represents an entry in the menu bar. The actual menu that is this entry is referenced in the menu property. There is no new() method for this type. It is created by the process of inserting a menu in a menu bar.
Type Tags
None
Object Value
Properties
Property | Type | Description |
---|---|---|
_ | type(*) | This property is provided for use by the user to attach any object of any type to the type in which this property is provided. |
__ | type(*) | This property is provided for use by the user to attach any object of any type to the type in which this property is provided. It has the additional feature of being marked with the resolve keyword, so that object resolution can continue down this property. |
enabled | boolean | This indicates whether the menu bar entry is enabled or not. |
label | string | The label that is shown representing the menu bar entry on the menu bar. |
menu | wxmenu | This property holds a reference to the menu that is the actual content of the menu bar entry. |
name | string | The name of the menu bar entry, to allow it to be referenced using the member operator (!). |
next | wxmenubarentry | This property holds a reference to the menu bar entry that follows this entry. All menu bar entries form a ring, beginning with the one assigned as the first entry of the menu bar. |
type | type | Specifies the wxmenubarentry type object. |
Methods
setenabled()
Description
Enables a menu bar entry on a menu bar.
Prototype
wxmenubarentryvar
.setenabled
(
boolean
)
enabled
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
enabled | None | boolean | Whether to enable or disable the menu. |