View Single Post
Old 11-13-2018, 03:59 AM   #345
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 565
Default

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

Last edited by dsyrock; 11-13-2018 at 02:41 PM.
dsyrock is offline   Reply With Quote