how to use slider.release ?

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

how to use slider.release ?

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

....
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: how to use slider.release ?

Post by airsoftsoftwair »

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

Code: Select all

Case "Release"
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: how to use slider.release ?

Post by xabierpayet »

perfect, is working now, thanks
Post Reply