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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Grouping Objects

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
stuartclennett@gmail.com Posted - Jan 23 2017 : 06:49:51
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
4   L A T E S T    R E P L I E S    (Newest First)
stuartclennett@gmail.com Posted - Jan 30 2017 : 04:13:43
Hi Nigel,

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

Cheers

Stuart Clennett
Delphi Berlin 10.1
xequte Posted - Jan 26 2017 : 19:23:43
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
stuartclennett@gmail.com Posted - Jan 24 2017 : 05:32:12
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
w2m Posted - Jan 23 2017 : 12:28:03
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