Bay City, Michigan
Sales (989) 892-9242             Support (989) 686-8860
Updated April 3, 2002
SCROLL BARSA 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.
Since 09/15/1998Send e-mail to MMCC.