Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Do Slider limits have maximum values?

$
0
0

I'm using a slider to access data packets in a file. The number of packets is variable, I've had over 1M.

I'm using:

 

GUICtrlSetLimit ($idSliderReplay, $FilePackets-1, 0)

 

to set the slider limits. However, when I return the current slider position using:

 

$FilePos = GUICtrlRead($idSliderReplay)

msgbox(0,$FilePackets-1,$FilePos)
 
I get 30599 returned (the msgbox shows 12575784 in the title) when I slide all the way to the right.
 
The optimum would probably be to set the slider limit to the number of pixels it can slide along, but I don't see a way to find that out. Then I would just multiply the slider position by $FilePackets/$SliderPixels to get my position.
 
Any thoughts? :)
 
 
 

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>