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

 

One response to “SP_BUNGREDRAW

  1. Pingback: SP Functions | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.