[Gambas-user] control groups
Christopher Brian Jack
brian at ...1334...
Mon Dec 4 05:11:54 CET 2006
On Sun, 3 Dec 2006, Eldon Eller wrote:
> Please forgive a dumb question. I have grouped a bunch of buttons under
> the name "dates". An event handler, dates_click(), along with "last"
> works as expected. Now I would like to step through all the buttons in
> dates, and take some action based on the properties of the button. I do
> not know how to do this, and I could not find anything helpful in the
> documentation. It may be there, but if so, I missed it.
Set the Tag property in the form designer on each button in the group to a
unique word and use SELECT ... END SELECT:
SELECT last.Tag
CASE "NameOf1stButton"
...
CASE "NameOf2ndButton"
...
CASE ...
...
...
...
DEFAULT
...
END SELECT
To choose the code to run (based on the button) in the event handler for
the group.
.=================================================.
| Christopher BRIAN Jack aka "Gau of the Veldt" |
+================================================='
| oevna at ...1543...
`=================================================-
Hi Spambots, my email address is sputnik at ...1334...
Hi Humans, my email address uses rot13 cipher
More information about the User
mailing list