eneate
asked on
How to control how the slider bar applied the commands
Hi
I am adding a slider bar to an application. Is there a way that I can tell when the value has changed and exh time it changes it undoes the last function and applies the new one. The code I am using looks like this
Dim text1 As String
Dim text2 As String
Dim title2 As String * 13
Dim sliderval As Integer
ret = IpDocGetStr(INF_NAME, DOCSEL_ACTIVE, title)
text1 = title
text2 = orig
If text1 = text2 Then
sliderval = Guihigh.Slider1.Value
ret = IpWsOverlay(overlay, sliderval, 0)
I need the slider val to be one function between two images at the moment it changes each time it is moved but then keeps applying the function rather than just changing it.
Any help appreciated.
I am adding a slider bar to an application. Is there a way that I can tell when the value has changed and exh time it changes it undoes the last function and applies the new one. The code I am using looks like this
Dim text1 As String
Dim text2 As String
Dim title2 As String * 13
Dim sliderval As Integer
ret = IpDocGetStr(INF_NAME, DOCSEL_ACTIVE, title)
text1 = title
text2 = orig
If text1 = text2 Then
sliderval = Guihigh.Slider1.Value
ret = IpWsOverlay(overlay, sliderval, 0)
I need the slider val to be one function between two images at the moment it changes each time it is moved but then keeps applying the function rather than just changing it.
Any help appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the feedback. It 's all now working fine and you gave me some new ideas.