Mar 11, 2020 Replies: 1 Hi guys, I've just changed the XUI Views Library to have Min/Max Properties editable at runtime... @Erel, please include (after correcting) in future versions of the library, thanks. Code: Copy Public Sub setMax (v As Int) if v<0 then return mMax= max(mMin,v) Draw End Sub Public Sub getMax As Int Return mMax End Sub Public Sub setMin (v As Int) if v<0 then return mMin= min(mMax,v) Draw End Sub Public Sub getMin As Int Return mMin End Sub Click to expand...
Hi guys, I've just changed the XUI Views Library to have Min/Max Properties editable at runtime... @Erel, please include (after correcting) in future versions of the library, thanks. Code: Copy Public Sub setMax (v As Int) if v<0 then return mMax= max(mMin,v) Draw End Sub Public Sub getMax As Int Return mMax End Sub Public Sub setMin (v As Int) if v<0 then return mMin= min(mMax,v) Draw End Sub Public Sub getMin As Int Return mMin End Sub
M MbedAndroid Well-Known Member Licensed User Longtime User Aug 13, 2020 #2 yeah, should be modified in the included libs anyway there's a workaround by loading the same class and rename it to RoundSlider1. Then you have access to min/max values
yeah, should be modified in the included libs anyway there's a workaround by loading the same class and rename it to RoundSlider1. Then you have access to min/max values