> on mouseUp
> if the owner of the target is me ## make sure the click was in the group
>    put 0 into tVal
>    put the hilitedButton of group 1 after tVal
>    put the hilitedButton of group 2 after tVal
>    put the hilitedButton of group 3 after tVal
>    put the hilitedButton of group 4 after tVal
>    # do whatever with tVal
> end if
> end mouseUp
>
> Then to later retrieve the setting of any group using the
> calculated value:
>
> function getGroupValue pVal, pGroup
> ## pVal is the value calculated above, pGroup is the group number
>    return char pGroup of pVal
> end getGroupValue
>
> I expect there are better and more general solutions, but it should work.
>
Great minds Dave ;-)

I just realised that an id coule easily contain an item delimiter. To make
sure there is no conflict you could make it "-" so an id could be "1-1-1-1"
or
"10-10-10-10" then you just set the itemdel to "-" to extract the hilited
buttons if needed.


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to