SetSliderRange -100 to 100
BlitzMax Forums/MaxGUI Module/SetSliderRange -100 to 100
| ||
I could swear this worked fine previously and now doesn't. Am I crazy? In my app the slider that used to go from -100 to 100 now ends up with a range of -100 to -1. |
| ||
This works for me Import MaxGui.Drivers Strict Local window:TGadget=CreateWindow("My Window",10,10,240,100,,WINDOW_TITLEBAR) Local slider:TGadget = CreateSlider(10 , 10 , 220 , 20 , window , SLIDER_HORIZONTAL) SetSliderRange(slider, 10, 210) Local label:TGadget = CreateLabel("Slider Value",50 , 50 , 220 , 20 , window) While WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End Case EVENT_GADGETACTION SetGadgetText(label,SliderValue(slider)-100) End Select Wend |
| ||
Sure, I can work around it by modifying all the slider values -- but I am already doing that to get fractional values, and there are like 30 of them. :P I am just surprised because it used to work. I figured I would post to see if the change was intentional (crossplatformness?) or an oversight in the new MaxGUI drivers, or what. |
| ||
Hi Raph, i changed MaxGui yesterday to 1.30 Now i have the same problem. :-( Must be a BUG SuperStrict Import maxgui.drivers Local slider:TGadget = CreateSlider(0, 0, 100, 10, Desktop()) SetSliderRange(slider, - 255, 255) SetSliderValue(slider, 219) Print "Slider value are now: " + SliderValue(slider) In another Code i use the same values (-255 to 255). In this code i get -1 as current value after setting the value to 219. |
| ||
Yep, same results I get. I am making a post in the MaxGUI Bugs forum. |