Class UITOOLBAR

Name

UITOOLBAR  --  Class of toolbar.

Synopsis

 UIToolBar()	--> UIToolBar object
 
 
 
 
 
 
 

Description

Class UIToolBar

Attributes

<className> - Class name. Value should be "UIToolBar".
<elem> - Array of buttons on toolbar.

Methods

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.

Method UITOOLBAR:ADDBUTTON()

 addButton([<pic>],<tooltip>,[<action>],[<isEnabled>])	--> <nItem>

In this method the object UIToolButton is placed in the <elem> array. Method returns index of added object in this array.

Method UITOOLBAR:ADDSEPARATOR()

 addSeparator()

Method UITOOLBAR:CLEAR()

 clear()

Method UITOOLBAR:DISABLE()

 disable(<pos>)

Method UITOOLBAR:ENABLE()

 enable(<pos>)

Method UITOOLBAR:GETELEMENT()

 getElement(<pos>)	--> <oItem>

Method UITOOLBAR:HIDE()

 hide()

Method UITOOLBAR:ISENABLED()

 isEnabled(<pos>)	--> <bEnabled>

Method UITOOLBAR:REMOVE()

 remove(<pos>)

Method UITOOLBAR:SHOW()

Method UITOOLBAR:UITOOLBAR()

 UIToolBar()	--> UIToolBar object

Example:

 main_tbar := UIToolBar()
 main_tbar:addButton( UIImage("icons/journal_bank_pp.xpm"), "Payment orders", {|| BankRefReq(win) } )
 

Platforms

No dependies of platform.