BUNGUNDROP() Short: ------ BUNGUNDROP() Ends dropdown during BUNGEE() menu def sequence Returns: -------- NIL Syntax: ------- BUNGUNDROP() Description: ------------ BUNGUNDROP() ends a dropdown during a BUNGEE() menu definition sequence. Use BUNGSTART(), BUNGEND(), BUNGOPTION(), BUNGDROP(), BUNGUNDROP() together to create a menu definition array for BUNGEE(). While it is not necessary to use these functions to create the array, it is helpful when you have a complex, multi-level dropdown structure. See BUNGEE for more information. 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() bungee(0,0,79,aMenu) Source: ------- S_BUNGDEF.PRG
Tag Archives: BUNGREDRAW()
SP_BUNGSTART
BUNGSTART() Short: ------ BUNGSTART() Starts a BUNGEE() menu array definition sequence Returns: -------- NIL Syntax: ------- BUNGSTART() Description: ------------ BUNGSTART() initializes a BUNGEE() menu definition sequence. Use BUNGSTART(), BUNGEND(), BUNGOPTION(), BUNGDROP(), BUNGUNDROP() together to create a menu definition array for BUNGEE(). While it is not necessary to use these functions to create the array, it is helpful when you have a complex, multi-level dropdown structure. See BUNGEE for more information. 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() bungee(0,0,79,aMenu) Source: ------- S_BUNGDEF.PRG
SP_BUNGREDRAW
BUNGREDRAW( Short: ------ Redraws the current menu, with optional change of colors Returns: -------- NIL Syntax: ------- BUNGEETOP([aColors],[nShadowPos,[nShadowAtt]) Description: ------------ Redraws the current menu, with optional change of colors and shadows. The only time you would use this is to change colors and redraw the entire menu. [aColors] is the same as the parameter for BUNGEE() of the same name. You can also just use SETCOLOR() to change colors, and BUNGREDRAW() will parse out the colors it needs for the menu. What this function does, is 1. Hide the menu 2. Reset the colors 3. Show the menu. [nShadowPos] Optional shadow position for menu dropdown boxes. Valid options are: 1. Lower left 3. Lower right 0. None Upper left and upper right shadow positions are not allowed. (they can overwrite parts of the menu bar) Default is SLS_SHADPOS(), unless SLS_SHADPOS() is upper left or upper right (7,9), in which case it is set to 0 (none). To force no shadows for the menu, pass 0. Boxes may not always have shadows, if the shadow would be drawn offscreen. [nShadowAtt] Numeric shadow attribute. Default is SLS_SHADATT(), whose default is 8. (grey on black) Examples: --------- bungstart() bungoption("Files") [etc...] bungoption("Colors",{||setcolors(),bungredraw()} ) [etc...] aMenu := bungend() bungee(0,0,79,aMenu) Source: ------- S_BUNGEE.PRG