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
 Built-in method to fully zoom the curr. selection?

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
PeterPanino Posted - Jul 10 2020 : 17:42:37
Since in TImageEnView.MouseInteractGeneral, both items miSelect and miSelectZoom cannot be selected at the same time (they are mutually exclusive), and I need both functionalities, I would prefer to keep the miSelect item selected and proceed as following:

After having selected an area with the mouse (miSelect), I want to press a key-command or click a button to zoom the selection to the whole image area (what miSelectZoom would have done). Is there such a built-in method to EXTEND the current selection to the whole image area?

Idea/Suggestion: You could add an Option iesoZoomWithDoubleclick to TIESelectionOptions: With this Option activated, double-clicking an existing selection would zoom the selection to the whole image area. - Also, the Selection ContextMenu in this case would have an additional menu-item "Zoom to selection". - Also, pressing the "Z" key would zoom the existing selection to the whole image area.

To make this work, an event OnSelectionDoubleClick would be needed. Please implement OnSelectionDoubleClick, so in the OnSelectionDoubleClick event-handler I could execute TImageEnView.ZoomSelection.

SOLVED:


procedure TformMain.ImageEnView1DblClick(Sender: TObject);
begin
  ImageEnView1.ZoomSelection();
end;


It's as simple as that.
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 11 2020 : 21:52:52
I'll add double-click zooming to a coming update.


https://www.imageen.com/help/TImageEnView.ZoomSelection.html

Nigel
Xequte Software
www.imageen.com