Scroll to navigation

wxButton(3erl) Erlang Module Definition wxButton(3erl)

NAME

wxButton - See external documentation: wxButton.

DESCRIPTION

See external documentation: wxButton.

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

DATA TYPES

wxButton():

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

See external documentation.

new(Parent, Id) -> wxButton()

Types:

Parent = wxWindow:wxWindow()
Id = integer()

Equivalent to new(Parent, Id, []).

new(Parent, Id, Options::[Option]) -> wxButton()

Types:

Parent = wxWindow:wxWindow()
Id = integer()
Option = {label, unicode:chardata()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx:wx_object()}

See external documentation.

create(This, Parent, Id) -> boolean()

Types:

This = wxButton()
Parent = wxWindow:wxWindow()
Id = integer()

Equivalent to create(This, Parent, Id, []).

create(This, Parent, Id, Options::[Option]) -> boolean()

Types:

This = wxButton()
Parent = wxWindow:wxWindow()
Id = integer()
Option = {label, unicode:chardata()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx:wx_object()}

See external documentation.

getDefaultSize() -> {W::integer(), H::integer()}

See external documentation.

setDefault(This) -> ok

Types:

This = wxButton()

See external documentation.

setLabel(This, Label) -> ok

Types:

This = wxButton()
Label = unicode:chardata()

See external documentation.

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

Destroys this object, do not use object again

AUTHORS

<>
wx 1.8.6