DeterminePosition

>>-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.

Arguments:

The arguments are:

posdata

The position sent with the scroll bar notification messages.

singleStep

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.

pageStep

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.

Return value:

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.