BBjTabCtrl::setTabHeight

Description

In BBj 16.00 and higher, sets the height of tabs in the BBjTabCtrl.

Syntax

Return Value Method
void setTabHeight(int height)

Parameters

Parameter Description
height Specifies the tab height in pixels.

Return Value

None.

BUI logoRemarks

This method is currently defined only for BUI.

Example

rem ' BBjTabCtrl::setTabHeight

title$ = "BBjTabCtrl::setTabHeight"
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,300,200,title$,$00090083$,$$)
tabctrl! = window!.addTabCtrl(101,10,10,280,140)
window!.setCallback(bbjapi().ON_CLOSE,"EOJ")
button! = window!.addButton(1,10,160,80,20,"Add Tab",$$)
button!.setCallback(button!.ON_BUTTON_PUSH,"addtab")
spinner! = window!.addInputNSpinner(103,100,160,100,25,1,100)
spinner!.setValue(24)
spinner!.setCallback(spinner!.ON_SPIN,"setTabHeight")
tab = 0
process_events

eoj:
release

addtab:
    child = 1000+tab
    child! = window!.addChildWindow(child,0,0,150,90,"",$00000010$,child,$$)
    child!.addEditBox(101,10,10,100,25,"")
    tabctrl!.addTab(str(tab),child!)
    tab = tab + 1
    window!.setTitle(title$+" ("+str(tab)+" tabs)")
return

setTabHeight:
    event! = sysgui!.getLastEvent()
    height$ = event!.getText()
    height = num(height$)
    tabctrl!.setTabHeight(height)
return

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.