Article # 681, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
How to create scrollbars without GenView.
Q. How do I make vertical and horizontal scrollbars? Maybe you could tell me what's wrong with this one. I tried all the normal values first without any visible success. @object GenValueClass HorizontalIndicator = { GVLI_value = { 1.0 }; GVLI_maximum = { 10.0 }; HINT_VALUE_DISPLAYS_RANGE = MakeWWFixed( 25.0 ); HINT_VALUE_Y_SCROLLER; } A. You're doing the right thing by using HINT_VALUE_Y_SCROLLER to create a vertical scrollbar. And the use of the hint HINT_VALUE_DISPLAYS_RANGE to set the size of the scroller is also good. However, the values you've set up in the GenValue are unacceptable and thus it doesn't draw itself. The range you've set in the hint is larger than the maximum range that is possible (your min is 0 and max is 10). Fix that and the scroller will work. Also, note that horizontal scrollbars are not supported on the Nokia 9000, so the hint HINT_VALUE_X_SCROLLBAR will not draw anything.