can a group act like a family?

erik hansen erikhans08 at yahoo.com
Tue Oct 21 00:32:45 EDT 2003


can a group act like a family?
or "radio cluster"?

families are indexed by numbers:
<set the family of button "Choice #1" to 3>
which can, of course, correspond to group names,
but that seems awkward. in browser mode,
is there a was to make a group
hilite a clicked button and dehilite 
whichever button was previously hilited?

right now i have code which can go 2 ways:
1. store the name of the prev hilited btn
2. run down the list and dehilite all btns
<the target> is then hilited by more code.

can this be done automatically?
as with a "radio cluster",
as when the pointer tool is selected
and the selectGroupedControls is true?

a related question...
say you want to change not only the hilite,
but the style, width, etc. of a btn. when
clicked.
this can be done with code (as above) but is
there a way to link the hilited property
to a few other property settings?

this is another case of struggling to write
code of which one is enormously proud, then
wondering whether all that code can be avoided...

thanks,

Erik




=====
erik at erikhansen.org    http://www.erikhansen.org

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


More information about the Use-livecode mailing list