relative position of a target within a group

2010-02-19 Thread Mark Swindell
How does one get the relative position of a button within a group of buttons? I want to put the (relative to group myGroup) number of the target into vMyVar One can say select button 3 of group myGroup without problem. But how would one best do this using the target

Re: relative position of a target within a group

2010-02-19 Thread DunbarX
A group has a rect, and so do the objects inside it. They all have locs as well. So just do a little math and calculate the local position of any object within the group, just as the default functions give you that information relative to the stack window or screen. Best done as a function,

Re: relative position of a target within a group

2010-02-19 Thread DunbarX
Hmmm. Did you mean the layer or number of a button in a group as opposed to its physical location? Craig Newman ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: relative position of a target within a group

2010-02-19 Thread Scott Rossi
Recently, Mark Swindell wrote: How does one get the relative position of a button within a group of buttons? I want to put the (relative to group myGroup) number of the target into vMyVar One can say select button 3 of group myGroup without problem. But how would one best do

Re: relative position of a target within a group

2010-02-19 Thread J. Landman Gay
Mark Swindell wrote: How does one get the relative position of a button within a group of buttons? I want to put the (relative to group myGroup) number of the target into vMyVar One can say select button 3 of group myGroup without problem. But how would one best do this

Re: relative position of a target within a group

2010-02-19 Thread DunbarX
I used a mouseDown handler so that it might not interfere with mouseUp handlers typically already loaded in the button scripts, but you get the idea. In the group script: on mousedown put the number of the target into tNum put the number of btns of grp yourGroup into numBtns repeat

Re: relative position of a target within a group

2010-02-19 Thread DunbarX
Jacques. Adorable, as usual you found a way to use the system to its best advantage, as opposed to my brute force thinking all the time. Craig In a message dated 2/19/10 6:22:44 PM, jac...@hyperactivesw.com writes: on mouseUp    set the hilite of the target to true    get the

Re: relative position of a target within a group

2010-02-19 Thread Mark Swindell
Jaqueline, Scott, and Craig, As always humbled and appreciative of the quick and everclever help Both this and Scott's method work perfectly out of the chute. Craig, your method returns the same result as just using the target does. You're putting the number of the target (relative to the

Re: relative position of a target within a group

2010-02-19 Thread Phil Davis
Hi Mark, Here's one way you can use with any grouped object. on mouseUp -- in a grouped button put the locWithinGroup of me end mouseUp getProp locWithinGroup -- return card-relative loc if target object is not in a group if word 1 of the name of the owner of the target is not group

if the target is in group...

2008-11-23 Thread Mark Swindell
I'm losing it. What's the right syntax for returning whether the target of a mouseclick is a part of a given group? --If the target is in,within,among the objects of, among the controls of, a member of, once palled around with group x Thanks

Re: if the target is in group...

2008-11-23 Thread Dick Kriesel
if the long id of group x is in the long id of control y On 11/23/08 3:49 PM, Mark Swindell [EMAIL PROTECTED] wrote: I'm losing it. What's the right syntax for returning whether the target of a mouseclick is a part of a given group? --If the target is in,within,among the objects

Re: if the target is in group...

2008-11-23 Thread Mark Schonewille
been updated! Get it at http://colorconverter.economy-x-talk.com ! On 24 nov 2008, at 00:49, Mark Swindell wrote: I'm losing it. What's the right syntax for returning whether the target of a mouseclick is a part of a given group? --If the target is in,within,among the objects of, among