how to use slider.release ?

Discuss GUI programming with the RapaGUI plugin here

how to use slider.release ?

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

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

Re: how to use slider.release ?

Postby airsoftsoftwair » Tue Aug 22, 2017 5:18 pm

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

Code: Select all
Case "Release"
User avatar
airsoftsoftwair
 
Posts: 2415
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: how to use slider.release ?

Postby xabierpayet » Tue Aug 22, 2017 6:16 pm

perfect, is working now, thanks
xabierpayet
 
Posts: 160
Joined: Fri Feb 24, 2012 10:34 am


Return to RapaGUI

Who is online

Users browsing this forum: No registered users and 2 guests

cron