BBjListButton::getOpenWidth

Description

In BBj 16.0 and higher, this method returns the width of the BBjListButton control when the list is open.

Syntax

Return Value

Method

void

getOpenWidth()

Parameters

None.

Return Value

Returns the width of the opened list.

Remarks

None.

Example

rem ' BBjListButton::getOpenWidth

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,250,250,"getOpenWidth",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
text$ = ""
for i = 0 to 9
    text$ = text$ + "This is a very long listbutton item " + str(i) + $0a$
next i
listbutton! = window!.addListButton(101,25,25,100,200,text$,$$)
print "BBjListButton::getOpenWidth",listbutton!.getOpenWidth()
listbutton!.setOpenWidth(200)
print "BBjListButton::getOpenWidth",listbutton!.getOpenWidth()
process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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