Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
SLIDER - Invert a Slider
INVERTA SLIDER
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 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|