Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>output an elevator bar on screen</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Output an elevator bar on screen
------------------------------------------------------------------------------

 Syntax

        GT_ElevBar( nTop , nBottom , nCol , cNorm , cCurrent , ;
                    cColor , nCurrent , nTotal )

 Arguments:

      nTop     - Top row of elevator bar
      nBottom  - Bottom row of elevator bar
      nCol     - Column for elevator bar
      cNorm    - Normal bar character
      cCurrent - Highlighted bar character
      cColor   - Colour of elevator bar
      nCurrent - Current value of bar position
      nTotal   - Maximum value of bar position

 Returns:

      NIL

 Description:

      Draws a bar from nCol , nTop to nCol , nBottom using the character
      cNorm, in the colour cColor.  Then draws character cCurrent at a
      position calculated as follows :

             ( ( nCurrent  )                                    )
      nTop + ( ( --------  ) * ( ( nBottom - 1 ) - ( nTop + 1 ) )
             ( ( nElements )                                    )

 Examples:



 Header File: GT_LIB.CH

 Source: ELEVBAR.PRG

 Author:  Martin Colloby

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson