Page 1 of 1

how to use slider.release ?

Posted: Tue Aug 22, 2017 2:31 am
by xabierpayet
I´m using RAPA GUI and it´s very great, i need check if the user release the
thumb of the slider, but i don´t see how do it, can you help me?

in the xml i´m using this piece of code
...
<slider id="sliderro" min="0" max="360" level="0" notify="level; release"/>
...

and in the code part

Function p_EventFunc(msg)
Switch msg.action
Case "RapaGUI"
Switch msg.attribute
Case "release":
Switch msg.id
Case "sliderro":
debugprint("blahblah")

....

Re: how to use slider.release ?

Posted: Tue Aug 22, 2017 5:18 pm
by airsoftsoftwair
The attribute names are case sensitive, so you have to use:

Code: Select all

Case "Release"

Re: how to use slider.release ?

Posted: Tue Aug 22, 2017 6:16 pm
by xabierpayet
perfect, is working now, thanks