Class UIBUTTON

Name

UIBUTTON  --  Class of button.

Synopsis

 UIButton(<label>,<action>,[<val>])	--> UIButton object
 
 
 
 

Description

Class UIButton.

Attributes

<className> - Class name. Value should be "UIButton".
<val> - Value by default which is stored in widget.

Methods

GETVALUE Get value which is stored in widget.
SETACTION Redefine action which executed when button is pressed.
SETPADDING Set indent of label text to button margin.
SETVALUE Set new value which will be stored in widget.
UIBUTTON Constructor.

Method UIBUTTON:GETVALUE()

 getValue() 	--> <value>

Method UIBUTTON:SETACTION()

 setAction([<signal>],<action>)

Method UIBUTTON:SETPADDING()

 setPadding(<padding>)

Method UIBUTTON:SETVALUE()

 setValue(<value>)

Method UIBUTTON:UIBUTTON()

 UIButton(<label>,<action>,[<val>])

Example:

 button := UIButton( "&Ok", {|o,e| ok_function() } ) )
 

Platforms

No dependies of platform.