Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - meter commands http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Meter Commands
--------------------------------------------------------------------------------

 Creating a Meter            @ <nRow>, <nCol> METER [ <oMeter> VAR ] <nActual> ;
 from source code               [ TOTAL <nTotal> ] ;
                                [ SIZE <nWidth>, <nHeight> ];
                                [ OF <oWnd> ] ;
                                [ UPDATE ] ;
                                [ PIXEL ] ;
                                [ FONT <oFont> ] ;
                                [ PROMPT <cPrompt> ] ;
                                [ NOPERCENTAGE ] ;
                                [ COLOR | COLORS <nClrPane>, <nClrText> ] ;
                                [ BARCOLOR <nClrBar>, <nClrBText> ] ;
                                [ DESIGN ] ;

 Creating a Meter            REDEFINE METER [ <oMeter> VAR ] <nActual> ;
 from resources                 [ TOTAL <nTotal> ] ;
                                [ ID <nId> ] ;
                                [ OF <oWnd> ];
                                [ UPDATE ] ;
                                [ FONT <oFont> ] ;
                                [ PROMPT <cPrompt> ] ;
                                [ NOPERCENTAGE ] ;
                                [ COLOR | COLORS <nClrPane>, <nClrText> ] ;
                                [ BARCOLOR <nClrBar>, <nClrBText> ] ;



 <nRow>, <nCol>  The coordinates on the screen. We simulate text coordinates.

 <oMeter>        A reference to the Meter Object.

 <nActual>       The numerical variable represented by the Meter.

 <nTotal>        The total amount represented by the Meter.

 <nWidth>,       The dimensions of the Meter in pixels.
 <nHeight>

 <oWnd>          A reference to the container Window Object of the Meter.

 <nId>           A numerical value identifying the Meter from resources.

 <oFont>         The font to use to display the percentadge of the meter.

 <cPrompt>       To display an optional text inside the meter.

 <nClrPane>      The colors of the unfilled parts of the meter
 <nClrText>
 <nClrBar>       The colors of the filled parts of the meter.
 <nClrBText>


 CLAUSES

 UPDATE           If this control has to be updated everytime its container
                 is updated <oDlg>:Update().

 PIXEL            If the coordinates of the meter are pixel based.

 NOPERCENTAGE     To avoid showing the '%' sign.

 DESIGN         Allows the user to move and resize with the mouse


See Also: TMeter

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