ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 grouping objects
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
499 Posts

Posted - May 15 2013 :  06:01:46  Show Profile  Reply
is there a way to group objects to be able to move and re-size them all at the same time?
P

w2m

USA
1990 Posts

Posted - May 15 2013 :  13:53:27  Show Profile  Reply
Press and hold the SHIFT key and select an object with the mouse. When both objects are selected you can move and resize the objects as one.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - May 16 2013 :  00:30:16  Show Profile  Reply
Yes, but i would like to do it with code. I am creating registration mark and I Would like in a click to drop a circle with a cross inside.
Then, i do not want the user to have to use shift to move or resize both objects.
i looked for a group command but could not find that.
Thanks.
PO
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 16 2013 :  06:49:38  Show Profile  Reply
You can not group objects but you can select more than one object similar to SHIFT click:
Use AddSelObject to insert the hobj object into the selected objects list.
procedure TForm1.SelectObjects1Click(Sender: TObject);
{ Select objects 0 and 1 }
var
  i: integer;
begin
  for i := 0 to ImageEnVect1.ObjectsCount - 1 do
    if (ImageEnVect1.ObjID[i] = 0) or (ImageEnVect1.ObjID[i] = 1) then
    ImageEnVect1.AddSelObject(i);
end;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: