Class of toolbar.
UIToolBar() --> UIToolBar object
ADDBUTTON | Add button to toolbar. |
ADDSEPARATOR | Add separator to the toolbar. |
CLEAR | Clear toolbar. |
DISABLE | Disable button on toolbar. |
ENABLE | Make button active (enabled). |
GETELEMENT | Get button object. |
HIDE | Hide toolbar. |
ISENABLED | Get flag of button activity. |
REMOVE | Remove button from toolbar. |
SHOW | Show/hide toolbar. |
UITOOLBAR | Constructor. Create toolbar. |
main_tbar := UIToolBar() main_tbar:addButton( UIImage("icons/journal_bank_pp.xpm"), "Payment orders", {|| BankRefReq(win) } )
Andrey Cherepanov <<skull@eas.lrn.ru>>
No dependies of platform.
Add button to toolbar.
addButton([<pic>],<tooltip>,[<action>],[<isEnabled>]) --> <nItem>
<pic> | - Object UIImage. Icon on the button. |
<tooltip> | - String. Text of tool tip for the button. |
<action> | - Code block. Code block that will be executed if button pressed. |
<isEnabled> | - Boolean. Flag of button activity. |
Index of added object UIToolButton in array <elem>.
In this method the object UIToolButton is placed in the <elem> array. Method returns index of added object in this array.
Add separator to the toolbar.
addSeparator()
No arguments
Returns NIL.
Clear toolbar.
clear()
No arguments
Returns NIL.
Disable button on toolbar.
disable(<pos>)
Returns NIL.
Make button active (enabled).
enable(<pos>)
Returns NIL.
Get button object.
getElement(<pos>) --> <oItem>
UIToolButton object. Button object.
Hide toolbar.
hide()
No arguments
Returns NIL.
Get flag of button activity.
isEnabled(<pos>) --> <bEnabled>
Flag of button activity.
Remove button from toolbar.
remove(<pos>)
Returns NIL.
Show/hide toolbar.
Returns NIL.
Constructor. Create toolbar.
UIToolBar() --> UIToolBar object
No arguments
Returns NIL.