[Gambas-user] A Beginner's Guide to Gambas
ron
ronstk at ...239...
Mon Jul 2 23:05:01 CEST 2007
On Monday 02 July 2007 22:52, Scott Castaline wrote:
> PUBLIC SUB hButton_Click()
> Button.Hide
> Label.Text = "Hey! Watch that!"
> WAIT 2.0
> Button.Show
> Label.Text = "Ahh! So good!"
> END
>
'Button' is the type 'name' the controll object.
You created it however with code as:
hButton = NEW Button (ME) AS "hButton"
How to difference eight buttons in code placed on the formt ?
Now 'hButton' is your friend to act on.
The sub routine should be where hButton is the symbolic name.
PUBLIC SUB hButton_Click()
hButton.Hide '<--- see the 'h' in front
Label.Text = "Hey! Watch that!"
WAIT 2.0
hButton.Show '<--- same
Label.Text = "Ahh! So good!"
END
--
Ron
More information about the User
mailing list