BBjMenuBar::getMenuString


Description

Returns a string representation of the BBjMenuBar.

Syntax

Return Value

Method

string

getMenuString()

Parameters

None.

Return Value

None.

Remarks

None.

Example

Copy

BBjMenuBar::getMenuString Example

rem ' BBjMenuBar::getMenuString
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjMenuBar::getMenuString"
window! = sysgui!.addWindow(25,25,400,100,title$,$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
menubar! = window!.addMenuBar()
menu! = MenuBar!.addMenu(-100,"&Menu")
menu2! = MenuBar!.addMenu(-200,"&Menu AAA")
menu3! = MenuBar!.addMenu(-300,"&Menu BBB")
menu2!.addMenu(-210, "AAA 1")
menu2!.addMenu(-220, "AAA 2")
menu2!.addMenu(-230, "AAA 3")
menu3!.addMenu(-310, "BBB 1")
menu3!.addMenu(-320, "BBB 2")
menu3!.addMenu(-330, "BBB 3")
string$ = menubar!.getMenuString()
print string$
i = msgbox(string$,0,title$)
process_events
eoj:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

BBjMenu

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