User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 0.99

Expand All
Contract All

Table of Contents

# wxMenuItem

### MODULE

wxMenuItem

### MODULE SUMMARY

See external documentation: wxMenuItem.

### DESCRIPTION

See external documentation: wxMenuItem.

### DATA TYPES

wxMenuItem()

  An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.

### EXPORTS

new() -> wxMenuItem()

Equivalent to new([]).

new(Options::[Option]) -> wxMenuItem()

Types:

Option = {parentMenu, wxMenu() (see module wxMenu)} | {id, integer()} | {text, string()} | {help, string()} | {kind, WxItemKind} | {subMenu, wxMenu() (see module wxMenu)}
WxItemKind = integer()

See external documentation.
WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX

check(This::wxMenuItem()) -> ok

Equivalent to check(This, []).

check(This::wxMenuItem(), Options::[Option]) -> ok

Types:

Option = {check, bool()}

See external documentation.

enable(This::wxMenuItem()) -> ok

Equivalent to enable(This, []).

enable(This::wxMenuItem(), Options::[Option]) -> ok

Types:

Option = {enable, bool()}

See external documentation.

getBitmap(This::wxMenuItem()) -> wxBitmap() (see module wxBitmap)

See external documentation.

getHelp(This::wxMenuItem()) -> string()

See external documentation.

getId(This::wxMenuItem()) -> integer()

See external documentation.

getKind(This::wxMenuItem()) -> WxItemKind

Types:

WxItemKind = integer()

See external documentation.
WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX

getLabel(This::wxMenuItem()) -> string()

See external documentation.

getLabelFromText(Text::string()) -> string()

See external documentation.

getMenu(This::wxMenuItem()) -> wxMenu() (see module wxMenu)

See external documentation.

getText(This::wxMenuItem()) -> string()

See external documentation.

getSubMenu(This::wxMenuItem()) -> wxMenu() (see module wxMenu)

See external documentation.

isCheckable(This::wxMenuItem()) -> bool()

See external documentation.

isChecked(This::wxMenuItem()) -> bool()

See external documentation.

isEnabled(This::wxMenuItem()) -> bool()

See external documentation.

isSeparator(This::wxMenuItem()) -> bool()

See external documentation.

isSubMenu(This::wxMenuItem()) -> bool()

See external documentation.

setBitmap(This::wxMenuItem(), Bitmap::wxBitmap() (see module wxBitmap)) -> ok

See external documentation.

setHelp(This::wxMenuItem(), Str::string()) -> ok

See external documentation.

setMenu(This::wxMenuItem(), Menu::wxMenu() (see module wxMenu)) -> ok

See external documentation.

setSubMenu(This::wxMenuItem(), Menu::wxMenu() (see module wxMenu)) -> ok

See external documentation.

setText(This::wxMenuItem(), Str::string()) -> ok

See external documentation.

destroy(This::wxMenuItem()) -> ok

Destroys this object, do not use object again