Advertisements
BUNGEEQUIT() *new* Short: ------ BUNGEEQUIT( ) is how a Bungee menu is terminated. You would normally call it from one of the menu option codeblocks. Returns: -------- NIL Syntax: ------- BUNGEEQUIT() Description: ------------ BUNGEEQUIT( ) is how a Bungee menu is terminated. You would normally call it from one of the menu option codeblocks. Examples: --------- bungstart() bungoption("Files") bungdrop() bungoption("Open" ,{} ,{||!lFileIsOpen} ) bungoption("Close",{||nil},{||lFileIsOpen } ) bungundrop() bungoption("Edit") bungdrop() bungoption("DBF" ,{||nil},nil ) bungoption("Ascii",{||nil},nil ) bungundrop() bungoption("Quit",{||bungeequit()},nil) aMenu := bungend() @24,0 say "ALT-X=exit" // set up Alt-X as a hotkey exit also aHotKeys := { {K_ALT_X,{||bungeequit()}} } bungee(0,0,79,aMenu,nil,nil,nil,aHotKeys) Source: ------- S_BUNGEE.PRG
Advertisements