SIMPOL Documentation

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

PropertyTypeDescription
_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.
enabledboolean This indicates whether the menu bar entry is enabled or not.
labelstring The label that is shown representing the menu bar entry on the menu bar.
menuwxmenu This property holds a reference to the menu that is the actual content of the menu bar entry.
namestring The name of the menu bar entry, to allow it to be referenced using the member operator (!).
nextwxmenubarentry 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.
typetype Specifies the wxmenubarentry type object.

Methods

setenabled()

Description

Enables a menu bar entry on a menu bar.

Prototype

wxmenubarentryvar.setenabled ( boolean enabled )

Parameters
ParameterDefault valueType nameDescription
enabledNoneboolean Whether to enable or disable the menu.