>>-aScrollBar~DeterminePosition(--posdata-----------------------> >--+------------------------------------+--)------------------->< +-,--+------------+--+-------------+-+ +-singleStep-+ +-,--pageStep-+
The DeterminePosition method determines the new position of the scroll box based on the position sent with the scroll bar notification messages.
The arguments are:
The position sent with the scroll bar notification messages.
The value by which the scroll box position is increased or decreased when the user performs a single-step event like using the Down or Up arrow keys or clicking on the arrow buttons of the scroll bar.
The value by which the scroll box position is increased or decreased when the user performs a page-step event like using the PgDn or PgUp arrow keys or clicking on an area in the scroll bar that is not occupied by the scroll box or the arrow buttons.
The resulting position based on posdata and the current position.
Note: The position of a scroll bar cannot be modified directly by a user. The Object Rexx program must react to the notification that is the result of the user interaction and set the resulting position of the scroll box using SetPos. Use the DeterminePosition method to determine the resulting position within your notification handler for the scroll bar notification messages.