how to use slider.release ?

Discuss GUI programming with the RapaGUI plugin here
Post Reply
xabierpayet
Posts: 168
Joined: Fri Feb 24, 2012 10:34 am

how to use slider.release ?

Post by xabierpayet » Tue Aug 22, 2017 2:31 am

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")

....

User avatar
airsoftsoftwair
Posts: 2572
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: how to use slider.release ?

Post by airsoftsoftwair » Tue Aug 22, 2017 5:18 pm

The attribute names are case sensitive, so you have to use:

Code: Select all

Case "Release"

xabierpayet
Posts: 168
Joined: Fri Feb 24, 2012 10:34 am

Re: how to use slider.release ?

Post by xabierpayet » Tue Aug 22, 2017 6:16 pm

perfect, is working now, thanks

Post Reply