New Group Info?

RCS rcs at rcsprogramming.com
Fri Jan 24 11:05:01 EST 2003


  Yes, 'create group' does indeed create an empty group, and return the id
in the variable 'it'. The 'group' command also creates a new group, but it
does not return anything. The 'group' command is better because you can
select several objects, call 'group', and create a new group with the
selected controls all in one shot...but you have no reference to what the id
of the new group is.

  The id that is assigned using 'group'  is the very next id in line for
groups, so I suppose you could call 'create group'...get that id...call
'group'...and then use the next id for your group (and delete the other
group afterwards). I detest workarounds though...

JR


> Message: 9
> From: "Ken Ray" <kray at sonsothunder.com>
> To: <metacard at lists.runrev.com>
> Subject: Re: New Group info?
> Date: Wed, 22 Jan 2003 12:27:26 -0600
> Organization: Sons of Thunder Software
> Reply-To: metacard at lists.runrev.com
>
> JR,
>
> Here's what I tried that worked for me - see if you can get it to do the
> same thing:
>
> on mouseUp
>   create group
>   put the long id of it
> end mouseUp
>
> => This put "group id 1001 of ..." in the message box.
>
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
> ----- Original Message -----
> From: "RCS" <rcs at rcsprogramming.com>
> To: <metacard at lists.runrev.com>
> Sent: Wednesday, January 22, 2003 12:22 PM
> Subject: New Group info?
>
>
> > Hello,
> >
> >   I do not seem to be able to get any information when a new group is
> > created (in the variable 'it' or anything else). I also tried handling
the
> > 'newGroup' message to no avail (using 'it', 'selObj', selectedObjects',
> > etc.).
> >
> > Thanks,
> > JR
> >




More information about the metacard mailing list