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 - <b>scrollbar controls commands</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ScrollBar Controls Commands
--------------------------------------------------------------------------------

 Creating a ScrollBar        @ <nRow>, <nCol> SCROLLBAR [<oSbr>] ;
 from source code              [ HORIZONTAL | VERTICAL ] ;
                               [ RANGE <nMin>, <nMax> ] ;
                               [ PAGESTEP <nPgStep> ] ;
                               [ SIZE <nWidth>, <nHeight> ] ;
                               [ UP | ON UP <uUpAction> ] ;
                               [ DOWN | ON DOWN <uDownAction> ] ;
                               [ PAGEUP | ON PAGEUP <uPgUpAction> ] ;
                               [ PAGEDOWN | ON PAGEDOWN <uPgDownAction> ] ;
                               [ ON THUMBPOS <uPos> ] ;
                               [ PIXEL ] ;
                               [ COLOR | COLORS <nClrFore>;
                               [,<nClrBack>] ] ;
                               [ MESSAGE <cMsg> ] ;
                               [ UPDATE ] ;
                               [ WHEN <WhenFunc> ] ;
                               [ VALID <ValidFunc> ] ;
                               [ DESIGN ] ;
                               [ OF | WINDOW | DIALOG <oDlg> ]

 Creating a ScrollBar        REDEFINE SCROLLBAR [ <oSbr> ] ;
 from resources                [ ID <nID> ] ;
                               [ RANGE <nMin>, <nMax> ] ;
                               [ PAGESTEP <nPgStep> ] ;
                               [ UP | ON UP | ON LEFT <uUpAction> ] ;
                               [ DOWN | ON DOWN | ON RIGHT <uDownAction> ] ;
                               [ PAGEUP | ON PAGEUP <uPgUpAction> ] ;
                               [ PAGEDOWN | ON PAGEDOWN <uPgDownAction> ] ;
                               [ ON THUMBPOS <uPos> ] ;
                               [ COLOR | COLORS <nClrFore>;
                               [,<nClrBack>] ] ;
                               [ OF | WINDOW | DIALOG <oDlg> ]
                               [ MESSAGE <cMsg> ] ;
                               [ UPDATE ] ;
                               [ WHEN <WhenFunc> ] ;
                               [ VALID <ValidFunc> ] ;


 For 'non-true ScrollBars'
 (when using WS_VSCROLL or WS_HSCROLL styles )

                            DEFINE SCROLLBAR [ <oSbr> ] ;
                               [ HORIZONTAL | VERTICAL ] ;
                               [ RANGE <nMin>, <nMax> ] ;
                               [ PAGESTEP <nPgStep> ] ;
                               [ UP | ON UP <uUpAction> ] ;
                               [ DOWN | ON DOWN <uDownAction> ] ;
                               [ PAGEUP | ON PAGEUP <uPgUpAction> ] ;
                               [ PAGEDOWN | ON PAGEDOWN <uPgDownAction> ] ;
                               [ ON THUMBPOS <uPos> ] ;
                               [ COLOR | COLORS <nClrFore>;
                               [,<nClrBack>] ] ;
                               [ MESSAGE <cMsg> ] ;
                               [ WHEN <WhenFunc> ] ;
                               [ VALID <ValidFunc> ] ;
                               [ OF | WINDOW | DIALOG <oDlg> ]


 <nRow>, <nCol>  The coordinates of the ScrollBar.
                 We simulate Text coordinates.

 <oSbr>          A reference to the ScrollBar Object.

 <oDlg>          The container window of the ScrollBar.

 <nMin>, <nMax>  The range of values to be represented by the scrollbar.

 <nPgStep>       The increment of value when PageUp or PageDown is
                 selected on the Scrollbar. That is, when clicking
                 between the thumb and the top arrow or when clicking
                 between the thumb and the bottom arrow.

 <nWidth>        The dimensions in pixels of the ScrollBar.
 <nHeight>

 <uUpAction>     An action to be performed when going up is selected on
                 the scrollbar. That is, when clicking on the top arrow or
                 when pressing the key K_UP.

 <uDownAction>   An action to be performed when going down is selected on
                 the scrollbar. That is, when clicking on the bottom arrow or
                 when pressing the key K_DOWN.

 <uPgUpAction>   An action to be performed when page up is selected on
                 the scrollbar. That is, when clicking between the thumb
                 and the top arrow.

 <uPgDownAction> An action to be performed when page down is selected on
                 the scrollbar. That is, when clicking between the thumb
                 and the bottom arrow.

 <uPos>          An action to be performed when the thumb is moved by the
                 user and left on a different position. The new position
                 is automatically provided as nPos value.

 <nId>           The numeric resource identifier of the Control.

 <nClrFore>      Foreground color as a RGB number, or as a xBase string

 <nClrBack>      Background color as a RGB number

 <ValidFunc>     An expression to validate when the control is going to
                     lose the focus.

 <cMsg>          The associated message of this control

 <WhenFunc>      It is an expression to evaluate indicating if the control is
                     or not enable.



 CLAUSES

 HORIZONTAL      To use a horizontal or vertical scrollbar. Only useful
 VERTICAL        when creating from source code.

 PIXEL           To use pixel coordinates instead of Text coordinates.

 DESIGN         Allows the user to move and resize with the mouse

 UPDATE         This control may be updated from TDialog:Update() METHOD


See Also: TScrollBar FiveWin.ch

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