Re: Script references to objects in groups?

2000-01-02 Thread Raymond E. Griffith

Oh, boy! Just what I was looking for, too!

> 
> You could loop over all the buttons and set their hilites to false,
> but the easy way to do this is:
> set the hilitedButtonName of grp "mButtons" to empty
> Scott

Thanks, Scott! 

Thanks David, for asking. I had done the loop bit, but I went back and
changed it.

Do I love this group, or what?

Happy New Year!

Raymond


This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Re: Script references to objects in groups?

2000-01-01 Thread Scott Raney

On Fri, 31 Dec 1999, David Cramer wrote:

> What is the correct scripting syntax for referring to the objects in a group?
> 
> In a current situation, I have a group of buttons in a stack menu 
> panel. If one of the buttons is hilited when the user presses the 
> escape key, that button is still hilited the next time the menu 
> opens. So I'd like to say something like:
> 
>  set the hilite of all the buttons in grp "mButtons" to false
> 
> But this doesn't seem to work, although it seems to me I read of 
> something like this earlier this year. If not, I can loop through the 
> objects, but even then I can't find the syntax in the reference 
> stacks. What am I missing?

You could loop over all the buttons and set their hilites to false,
but the easy way to do this is:
set the hilitedButtonName of grp "mButtons" to empty
  Scott

> Happy New Year/Millennium!
> 
> David
> -- 
> David Cramer, Process Innovation Evangelist  87-1313 Border Street
> PBSC Computer Training Centres (an IBM company)  Winnipeg MB R3H 0X4
> Corporate Office Research & Development  Canada
> 
> This is the MetaCard mailing list.
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> 


Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Script references to objects in groups?

1999-12-31 Thread David Cramer

What is the correct scripting syntax for referring to the objects in a group?

In a current situation, I have a group of buttons in a stack menu 
panel. If one of the buttons is hilited when the user presses the 
escape key, that button is still hilited the next time the menu 
opens. So I'd like to say something like:

 set the hilite of all the buttons in grp "mButtons" to false

But this doesn't seem to work, although it seems to me I read of 
something like this earlier this year. If not, I can loop through the 
objects, but even then I can't find the syntax in the reference 
stacks. What am I missing?

Happy New Year/Millennium!

David
-- 
David Cramer, Process Innovation Evangelist  87-1313 Border Street
PBSC Computer Training Centres (an IBM company)  Winnipeg MB R3H 0X4
Corporate Office Research & Development  Canada

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm