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
 Finding the Button Click Event in Toolbarbutton in Version 9.1.1
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
158 Posts

Posted - Feb 21 2024 :  10:47:32  Show Profile  Reply
Hey Nigel,

Have the earliest version of the Toolbar for editing ImageenView layers (version 9.1.1). Can you please give me a hint on where the onclick event happens for toolbar buttons. The current imageen handles buttons way differently from the original. Want to hijack a button for my own use and I can't figure out where the button onclick event is.

Thanks for your help,

John

xequte

38706 Posts

Posted - Feb 21 2024 :  16:29:27  Show Profile  Reply
Hi John

The buttons all use a dynamically created ImageEn TAction.

You should just override the OnActionExecute event. Specify your own code and set Handled to true:

https://www.imageen.com/help/TCustomImageEnToolbar.OnActionExecute.html

Or in newer ImageEn you can just add your own buttons:

http://www.imageen.com/help/TCustomImageEnToolbar.OnAddCustomButton.html

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

john_siggy@yahoo.com

USA
158 Posts

Posted - Feb 22 2024 :  12:13:38  Show Profile  Reply
Searched entire 9.1.1 source and there is no OnActionExecute.
This code is 4 year old and I think it precedes your kind help.
The following is in iextoolbar.pas and relates to a button for text align center.

_AddButton( IELayerTextAlignCenter_Button_ID, TIELayerTextAlignCenter.Create(Self), ITBRES_FORMAT_ALIGN_CENTER_24 );

{ TIELayerTextAlignCenter }
constructor TIELayerTextAlignCenter.Create(AOwner: TComponent);
begin
  inherited;
  ImageIndex  := 80;
  fAdjustment := ietaSetAlignment;
  fValue      := ord( iejLeft );
  fActionType := ieaCheckbox;
  //
  UpdateLanguage();
end;

don't see how button gets clicked ??
Go to Top of Page

xequte

38706 Posts

Posted - Feb 22 2024 :  13:12:51  Show Profile  Reply
Yes, sorry, it looks like it wasn't available in v9.1.1. You should email us to see if you are entitled to a newer version.

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