Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 0.98.7


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()}

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

Equivalent to enable(This, []).

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

Types:

Option = {enable, bool()}

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

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

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

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()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Destroys this object, do not use object again