Well there comes a new question about slider
If I change the slider's max value in a function
Code:
GUI.elms.myslider.max=value
Actually it was changed successfully. But I don't know how to "refresh" or "update" the slider. Seems I only changed the value but couldn't change the graphic. Any idea of this?
UPDATE: Seems like I need the redraw method, but I tried
Code:
function GUI.elms.myslider:redraw()
GUI.Slider.redraw(self)
self.max=newvalue
end
GUI.elms.myslider:redraw()
But nothing happened