Scrollbar problems - 04/02/03 10:44 PM
I have made a small dialog thing which adjusts the volume using 2 scrollbars controlling the mp3 volume and the main volume.
The scrollbars have max and min values of 10 - 0
When position 0 is selected the volume goes to max and then sets %vol1 as 10 , position 10 sets the volume as min and %vol1 as 0...
What i want to happen is that as the %variable is set and remembered, the next time the dialog is opened for the scrollbar to be at the relevant position between the max and min values eg..
on *:dialog:vol:init:*: {
if (%vol1 == 10) { }
}
but the problem and question is... how can i move the scroll bar as the dialog initiates...?
thanks.
The scrollbars have max and min values of 10 - 0
When position 0 is selected the volume goes to max and then sets %vol1 as 10 , position 10 sets the volume as min and %vol1 as 0...
What i want to happen is that as the %variable is set and remembered, the next time the dialog is opened for the scrollbar to be at the relevant position between the max and min values eg..
on *:dialog:vol:init:*: {
if (%vol1 == 10) { }
}
but the problem and question is... how can i move the scroll bar as the dialog initiates...?
thanks.