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
 Add Actions to the Selection Popup Menu?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Oct 03 2022 :  10:11:43  Show Profile  Reply
The default Selection Popup Menu has only these commands:



How can I add other Actions to the Selection Popup Menu? For example:

- DeSelect
- InvertSelection
- MouseSelect/Circle/Lasso/...
- ...


xequte

38608 Posts

Posted - Oct 03 2022 :  20:42:24  Show Profile  Reply
Hi Peter

Please see:

https://www.imageen.com/help/TIEGlobalSettings.ImageSelectionPopupMenu.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

933 Posts

Posted - Oct 10 2022 :  06:09:49  Show Profile  Reply
Is there a demo on how to add a command to the Selection Popup menu? I need to add "Zoom to Selection" below the "Crop to Selection" item.
Go to Top of Page

PeterPanino

933 Posts

Posted - Oct 10 2022 :  07:05:51  Show Profile  Reply
I have set this in FormCreate:

IEGlobalSettings().OnAddPopupMenuItem := ImageEnViewPopupMenuAddItem;


...and then the implementation:

procedure TformMain.ImageEnViewPopupMenuAddItem(Sender: TObject; ToolbarID: Integer; ButtonID: Integer; var Include: Boolean);
begin
  // Could not find a ButtonID for "Zoom to Selection"
end;
Go to Top of Page

xequte

38608 Posts

Posted - Oct 10 2022 :  17:27:07  Show Profile  Reply
Hi Peter

There is no built in button for Zoom selection:

http://www.imageen.com/help/ImageEn_Toolbar_Button_IDs.html

You would need to add your own button using the OnAddCustomPopupMenuItem event:

http://www.imageen.com/help/TIEGlobalSettings.OnAddCustomPopupMenuItem.html

There is a demo at:

\Demos\Other\ImageEnViewToolbar\Toolbar.dpr


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