Class of button.
UIButton(<label>,<action>,[<val>]) --> UIButton object
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. |
button := UIButton( "&Ok", {|o,e| ok_function() } ) )
Andrey Cherepanov <<skull@eas.lrn.ru>>
No dependies of platform.
Get value which is stored in widget.
getValue() --> <value>
No arguments
Get value which is stored in widget.
Redefine action which executed when button is pressed.
setAction(<action>)
Returns NIL.
Set indent of label text to button margin.
setPadding(<padding>)
Returns NIL.
Set new value which will be stored in widget.
setValue(<value>)
Returns NIL.
Constructor.
UIButton(<label>,<action>,[<val>])
<label> | - String. Button label. You can define accel key for widget activation. Just place symbol "&" before accel letter. This letter will be underlined and widget will be activated with key Alt-letter. |
<action> | - Codeblock. Code block which is executed when button is pressed. |
<val> | - String, number or boolean. Value which is stored in widget. |
Returns NIL.