Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
SLIDER - Invert a Slider
INVERTA SLIDER

invertslider.png
It is necessary per hap to invert a slider value. That's mean the top value of the slider is the Max value.
I propose to explain with this very easy code to invert the value :
' Gambas class file
PUBLIC SUB _new()
END

PUBLIC SUB Form_Open()
ME.Center
Slider2.Value = 100
END

PUBLIC SUB Button1_Click()
ME.Close
END

PUBLIC SUB Slider1_Change()
Label1.Text = Slider1.Value
END

PUBLIC SUB Slider2_Change()
Label2.Text = NOT (Slider2.Value - 100) + 1
END

The tip of the day is the green code.
Thanks for your attention


DOWNLOAD EXAMPLE HERE

Creation date : 02/07/2010 @ 15:35
Last update : 02/07/2010 @ 15:35
Category : SLIDER
Page read 5133 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^