
BBjMenuBar::getChildCount
Description
In BBj 8.0 and higher, this method returns the number of items in a BBjMenuBar.
Syntax
Return Value |
Method |
---|---|
int |
getChildCount() |
Parameters
None.
Return Value
Returns the number of items in a BBjMenuBar.
Remarks
None.
Example
Copy
BBjMenuBar::getChildCount Example
rem ' BBjMenuBar::getChildCount
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjMenuBar::getChildCount"
window! = sysgui!.addWindow(100,100,300,100,title$,$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
menubar! = window!.addMenuBar()
file! = menubar!.addMenu(-100,"&File")
edit! = menubar!.addMenu(-200,"&Edit")
view! = menubar!.addMenu(-300,"&View")
help! = menubar!.addMenu(-400,"&Help")
count = menubar!.getChildCount()
msg$ = "BBjMenuBar countains "+str(count)+" items."
print msg$
i = msgbox(msg$,0,title$)
process_events
eoj:
release
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.