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
 Built-in method to fully zoom the curr. selection?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

862 Posts

Posted - Jul 10 2020 :  17:42:37  Show Profile  Reply
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.

xequte

38189 Posts

Posted - Jul 11 2020 :  21:52:52  Show Profile  Reply
I'll add double-click zooming to a coming update.


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

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: