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

wxErlang
Reference Manual
Version 0.98.6


Expand All
Contract All

Table of Contents

wxMenu

MODULE

wxMenu

MODULE SUMMARY

See external documentation: wxMenu.

DESCRIPTION

See external documentation: wxMenu.

This class is derived (and can use functions) from:
wxEvtHandler

DATA TYPES

wxMenu()

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

Equivalent to new([]).

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

Types:

Option = {style, integer()}

new(Title::string(), Options::[Option]) -> wxMenu()

Types:

Option = {style, integer()}

append(This::wxMenu(), Item::wxMenuItem() (see module wxMenuItem)) -> wxMenuItem() (see module wxMenuItem)

append(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)

append(This::wxMenu(), Itemid::integer(), Text::string(), X::wxMenu() | term()) -> wxMenuItem() (see module wxMenuItem)

See external documentation.
Alternatives:

append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> append(This,Itemid,Text,Submenu, [])

append(This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem()
Option = {help, string()} | {kind, WxItemKind}
WxItemKind = integer()
WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX

append(This::wxMenu(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem)

See external documentation.
Alternatives:

append(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok

append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem()
Option = {help, string()}

appendCheckItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)

appendCheckItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types:

Option = {help, string()}

appendRadioItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)

appendRadioItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types:

Option = {help, string()}

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

break(This::wxMenu()) -> ok

check(This::wxMenu(), Itemid::integer(), Check::bool()) -> ok

delete(This::wxMenu(), X::integer() | term()) -> bool()

See external documentation.
Alternatives:

delete(This::wxMenu(), Itemid::integer()) -> bool()

delete(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool()

Destroy(This::wxMenu(), X::integer() | term()) -> bool()

See external documentation.
Alternatives:

'Destroy'(This::wxMenu(), Itemid::integer()) -> bool()

'Destroy'(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool()

enable(This::wxMenu(), Itemid::integer(), Enable::bool()) -> ok

findItem(This::wxMenu(), X::integer() | string()) -> wxMenuItem() (see module wxMenuItem) | integer()

See external documentation.
Alternatives:

findItem(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem()

findItem(This::wxMenu(), Item::string()) -> integer()

findItemByPosition(This::wxMenu(), Position::integer()) -> wxMenuItem() (see module wxMenuItem)

getHelpString(This::wxMenu(), Itemid::integer()) -> string()

getLabel(This::wxMenu(), Itemid::integer()) -> string()

getMenuItemCount(This::wxMenu()) -> integer()

getMenuItems(This::wxMenu()) -> [wxMenuItem() (see module wxMenuItem)]

getTitle(This::wxMenu()) -> string()

insert(This::wxMenu(), Pos::integer(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem)

See external documentation.
Alternatives:

insert(This::wxMenu(), Pos::integer(), Itemid::integer()) -> insert(This,Pos,Itemid, [])

insert(This::wxMenu(), Pos::integer(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem()

insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types:

Option = {text, string()} | {help, string()} | {kind, WxItemKind}
WxItemKind = integer()

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

insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> wxMenuItem() (see module wxMenuItem)

insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem)

See external documentation.
Alternatives:

insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok

insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem()
Option = {help, string()}

insertCheckItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)

insertCheckItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types:

Option = {help, string()}

insertRadioItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)

insertRadioItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types:

Option = {help, string()}

insertSeparator(This::wxMenu(), Pos::integer()) -> wxMenuItem() (see module wxMenuItem)

isChecked(This::wxMenu(), Itemid::integer()) -> bool()

isEnabled(This::wxMenu(), Itemid::integer()) -> bool()

prepend(This::wxMenu(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem)

See external documentation.
Alternatives:

prepend(This::wxMenu(), Itemid::integer()) -> prepend(This,Itemid, [])

prepend(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem()

prepend(This::wxMenu(), Itemid::integer(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types:

Option = {text, string()} | {help, string()} | {kind, WxItemKind}
WxItemKind = integer()

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

prepend(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> wxMenuItem() (see module wxMenuItem)

prepend(This::wxMenu(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem)

See external documentation.
Alternatives:

prepend(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok

prepend(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem()
Option = {help, string()}

prependCheckItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)

prependCheckItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types:

Option = {help, string()}

prependRadioItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)

prependRadioItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types:

Option = {help, string()}

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

remove(This::wxMenu(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem)

See external documentation.
Alternatives:

remove(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem()

remove(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem()

setHelpString(This::wxMenu(), Itemid::integer(), HelpString::string()) -> ok

setLabel(This::wxMenu(), Itemid::integer(), Label::string()) -> ok

setTitle(This::wxMenu(), Title::string()) -> ok

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

Destroys this object, do not use object again