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  

stuartclennett@gmail.com

United Kingdom
72 Posts

Posted - Jan 23 2017 :  06:49:51  Show Profile  Reply
Hi,

I just tried to group/ungroup objects which works nicely.

The only change I would like to make is that all the objects in the group are resized. I understand this if the objects are of the same Kind, but it causes issues if they're of a different kind.

For example, the most common request I get is to group a Memo and an Arrow (and even an ellipse on the end of the Arrow).

When moving the end of the arrow as part of this group, it also resizes the memo & this results in the arrow and memo being visually disconnecting from each other. Users have to ungroup, make positional changes and then re-group.

Is there any way to avoid this resizing effect?

Thanks
Stuart

Stuart Clennett
Delphi Berlin 10.1

w2m

USA
1990 Posts

Posted - Jan 23 2017 :  12:28:03  Show Profile  Reply
Yes. Just create a procedure that iterates through the objects to remove the objects from the selected list that you do not want to be grouped, then call GroupObjects(True). GroupObjects(True) determines which objects to include in a group biased on the selected objects.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

stuartclennett@gmail.com

United Kingdom
72 Posts

Posted - Jan 24 2017 :  05:32:12  Show Profile  Reply
Hi Bill,

Thanks for your reply. I already use [un]groupObjects(true) - which works fine.

My problem is actually with the resizing behaviour of the objects whilst grouped.

For instance, a lot of users add a memo and an arrow. The memo describing an issue with a medical photo, and the arrow pointing to the affected area.

They want to group these objects so that they can be moved around together. But I'd like to prevent all objects being resized when one of them is. I.e. moving the end of the arrow in the example:



I would ideally like to prevent the resizing of all objects in a group - and just have the group allow for moving.

Just wondered if there was a way to do that?

Thanks
Stuart

Stuart Clennett
Delphi Berlin 10.1
Go to Top of Page

xequte

38127 Posts

Posted - Jan 26 2017 :  19:23:43  Show Profile  Reply
Hi Stuart.

There is not a way to do it at present, but I will look into making it an option in the future. At any rate, in the coming version, the new TIELineLayers in TImageEnView include their own text.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

stuartclennett@gmail.com

United Kingdom
72 Posts

Posted - Jan 30 2017 :  04:13:43  Show Profile  Reply
Hi Nigel,

Thanks for the response. Look fwd to the new release :)

Cheers

Stuart Clennett
Delphi Berlin 10.1
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: