flags$ = $00010083$ if msgbox("Modal dialogue window?",4+32)=6 then flags$ = ior(flags$,$00080000$) endif if msgbox("Include a MenuBar?",4+32)=6 then flags$ = ior(flags$,$00000800$) endif sysgui = unt open (sysgui)"X0" sysgui! = bbjapi().getSysGui() window! = sysgui!.addWindow(100,100,200,100,"StatusBar",flags$) flags$ = $0000$ if msgbox("StatusBar at top?",4+32+256)=6 then flags$ = $0020$ endif status! = window!.addStatusBar(99,flags$) vector! = bbjapi().makeVector() vector!.add(49) vector!.add(99) vector!.add(199) status!.setSegments(vector!) status!.setTextAt(0,"49") status!.setTextAt(1,"99") status!.setTextAt(2,"199") window!.setCallback(window!.ON_CLOSE,"eoj") process_events eoj: release