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
 Add Actions to the Selection Popup Menu?

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 - Oct 03 2022 : 10:11:43
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/...
- ...


4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 10 2022 : 17:27:07
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
PeterPanino Posted - Oct 10 2022 : 07:05:51
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;
PeterPanino Posted - Oct 10 2022 : 06:09:49
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.
xequte Posted - Oct 03 2022 : 20:42:24
Hi Peter

Please see:

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

Nigel
Xequte Software
www.imageen.com