New Group Info?
Mr X
monsieurx at crosscomm.lu
Fri Jan 24 11:34:01 EST 2003
what you can do is:
create that group
get id of last group of this stack (group -1 doesn't work...)
this works for any object created (since HC 1.0? i think...)
> -----Original Message-----
> From: metacard-admin at lists.runrev.com
> [mailto:metacard-admin at lists.runrev.com]On Behalf Of RCS
> Sent: Friday, January 24, 2003 5:00 PM
> To: metacard at lists.runrev.com
> Subject: RE: New Group Info?
>
>
> 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
> > >
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>
More information about the metacard
mailing list