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? ![:)]()
