Chapter Contents |
Previous |
Next |
SAS/AF Software: Class Dictionary |
Key properties to set |
Scrollbar Control: value (default attribute) | Specify the position of the thumb within the scroll bar using a numeric
value. For example, if the scrollbar is going to be used to denote the days
of the week, then the value would be between 1 and 7.
You can also query or set this attribute using SCL. For example, the following line of SCL code sets the scroll bar value to 3: scrollbar1.value = '3'; Note: The following line of code is also valid since the value attribute is the default attribute: scrollbar1 = '3'; The numeric value used may be dependent on the values set for the minimum and maximum attributes. See Setting minimum and maximum attributes for more details. |
Scrollbar Control: orientation | Specify
whether you want the scroll bar oriented horizontally or vertically.
You can also query or set this attribute using SCL. For example, the following line of SCL code sets the scroll bar position to vertical: scrollbar1.orientation = 'vertical'; Note: The orientation attribute is a build-time attribute,
meaning it can only be set at build-time. |
Setting minimum and maximum attributes |
The minimum and maximum attributes control the numeric values associated with a scrollbar. For example, if your scrollbar represents the days of the week that a user can select, then the values would be 1 and 7, respectively.
Keep the following in mind when setting minimum and maximum attribute values:
For example, suppose you want to change the current minimum and maximum attribute values from 100 and 200 to 300 and 400 (respectively). You would have to change the maximum attribute value first. If you attempted to change the minimum value first (from 100 to 300), an error would occur, since the minimum value would be greater than the maximum value.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.