MMCC MASTHEAD


INDEX

v1.10
Mid-Michigan Computer Consultants, Inc.
509 Center
Bay City, Michigan

Sales (989) 892-9242             Support (989) 686-8860


ANSI Standard PL/B Language
Manually coded SCROLL BARS
Updated April 3, 2002

SCROLL BARS
A number of objects include scroll bars. Sometimes you need to have a scroll bar which is not associtaed with, or part of, a specific object.

PLBWIN provides both vertical and horizontal scroll bar objects. You can put them anywhere on the screen and can control the size and apperance on your own.

The easy way to do a scroll bar is to use the designer. The problem is that the PLBWIN manual only gives examples and notes on a "hand coded" scroll bar. These don't work the same way that one done in the designer works.

When you place a scroll bar on a form from the designer, you need to control it from the CHANGE event. The designer provided several local variables to the form which provide information about the events that happen to the scroll bar.
  • In the designer, you need to code for the CHANGE event.

  • Capture or process these local variables:

    #EventMod: Which returns a code for the what was done as follows:

    • 1 = The "down" or "right" button on the bottom, or right, of the bar was clicked.

    • 2 = The "up" or "left" button on the top, or left, of the bar was clicked.

    • 4 = The area between the slider and the bottom, or right, of the scroll bar was clicked

    • 8 = The area between the slider and the top, or left, of the scrool bar was clicked.

    • 16 = The slider button was clicked or moved

    • 34 = The "up" or "left" button on the top of the bar was clicked but the slider is already at the top, or left, of the bar now.

    • 65 = The "down" or "right" button on the bottom of the bar was clicked but the slider is already at the bottom, or right, of the bar now.


    #EventResult: Which returns the "position".

    • This is the position as a PERCENT of the scroll bar.

INDEX

v1.10
Send e-mail to MMCC.

Write to MMCC Technical Support at:
MMCC, Inc.
600 W. Midland
Bay City, MI 48708
(989) 686-8860
| Home   |

© 1997 MMCC, Inc. All Rights Reserved.

Report problems or suggestions to support@mmcctech.com
Since 09/15/1998