How do I use a Tabbed Button???
Klaus Major
klaus at major-k.de
Sun Apr 4 13:50:32 EDT 2004
Hi David,
> Hi,
>
> I have created a "Tabbed Button" and I'm now trying to figure out how
> to use it!
:-)
> I can't seem to find any information on this anywhere, could someone
> point me in the right direction please?
It is somewhere in the dox, but i did not find it yet ;-)
> I just want a number of tabs running across the top of the window with
> a number of controls in each Tab.
> When the user presses a Tab, I want those controls to become active.
>
> Also how can I draw a "Group Box", I would like something like this:
What do you mean with "group box"?
Probably not "the showborder" of groups?!
> +--Group1 Name------------------------------------+
> ...
> All in the same "Tab".
Sorry, don't get this one...
Anyway, the basic message for dealing with tabbed buttons is:
on menuPick newTab,oldTab
-- do something
end menuPick
Tabbed buttons receive these 2 arguments with the "menupick" message...
(...and ONLY tabbed buttons!)
So if i understand you right, your TABS are supposed to enable/disable
the appropriate groups?
Then you should name your groups after your tabs (or vice versa :-)
and script your button:
on menupick newTab, oldTAb
lock screen
## just in case you have LOTS of controls in your groups ;-)
disable group oldTab
enable grp newTab
unlock screen
end menupick
That will do the trick...
Drop a line in case i misunderstood you completely ;-)
Hope that helps...
> Thanks in Advance
> Dave
Regards
Klaus Major
klaus at major-k.de
www.major-k.de
More information about the use-livecode
mailing list