Dear Paul,
How can I set the properties of two scrollbars if the user to adjust two voltages for driving two DC motors. It display in the first textbox the range from minimum -12V to maximum +12V (adjust first scrollbar) and the second textbox it display the range from -15V to maximum +15v (adjust second scrollbar)
that is the input:
==========
SCROLLBAR1
Left (min) â€" 12V
Right (max) + 12V
Large steps : + 2
Small steps : + 1
Position thumb : 0V
Scrollbar 2
Left (min) â€" 15V
Right (max) + 15V
Large steps : + 2
Small steps : + 1
Position thumb : 0V
I Try this for set the properties:
====================
SCROLLBAR1
static lMin as long : lMin -120
static lMax as long : lMax 120
static lPage as long : lPage 2
static lPos as long : lPage 1
Left (min) â€" 12V
Right (max) + 12V
Large steps : + 2
Small steps : + 1
Position thumb : 0V
Scrollbar 2
Left (min) â€" 15V
Right (max) + 15V
Large steps : + 2
Small steps : + 1
Position thumb : 0V
static lMin as long : lMin -150
static lMax as long : lMax 150
static lPage as long : lPage 2
static lPos as long : lPage 1
Can someone help me how I can set the properties with the correct data
Use exactly the same code you had couple days ago. Only change the min to 1 and the max to 25.
The -12 can be translated subtracting 13 to the position of the scrollbar. The MIn of course will be -12 and the max will be 12.