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
 Questions about the TImageEnView Toolbar
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

860 Posts

Posted - Jul 05 2020 :  13:51:22  Show Profile  Reply
1. I have assigned a popup menu to ImageEnView1.PoupMenu. Unfortunately, each time I right-click on ImageEnView1 to show the popup menu, the Toolbar also shows up. This is rather annoying. Is there a way to show the Toolbar only with LEFT-CLICK and not with RIGHT-CLICK?

2. I have set ImageEnView1.MouseInteractGeneral.miSelect to TRUE. I also set these AutoToolbars properties:



Now, each time I try to make a SELECTION with the left mouse button, the big toolbar comes up for the fraction of a second. An then, after having finished the selection, the Selection Toolbar comes up:



Then, to hide the selection, I click again on the image. But this makes the big toolbar reappear, which is unwanted.

How can I avoid all these unwanted toolbar appearances?

xequte

38182 Posts

Posted - Jul 05 2020 :  20:13:19  Show Profile  Reply
Hi

The question is, why is the toolbar not showing up already. It appears when you click on the TImageEnView (right, left or selecting) because it focuses the control. What is the focused control before that? We might need to tweak the algorithm...



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

PeterPanino

860 Posts

Posted - Jul 06 2020 :  02:16:01  Show Profile  Reply
Because of these issues, I have decided to get rid of the Auto-Toolbar feature and rather make use of the built-in context-popup-menus:



... and embedded toolbars.

Ideally, a CMCK (Context Menu Construction Kit) and an ETCK (Embedded Toolbar Construction Kit) would help to build completely customized context-menus and embedded-toolbars, where every single command on these context-menus and embedded-toolbars could be customized ...
Go to Top of Page

PeterPanino

860 Posts

Posted - Jul 06 2020 :  04:05:44  Show Profile  Reply
Discovered the ImageEnViewToolbar demo:

\Demos\Other\ImageEnViewToolbar

...which contains a sort of ETCK (Embedded Toolbar Construction Kit) for the Developer, but not for the common user: When exposing an Embedded-Toolbar customization UI to the common user, a check-list containing names like "Open Image" instead of "ivbImageOpen" would be preferable.

The BUTTON CAPTIONS could be used for that purpose. But how to get the button captions?

This one gets the internal button-name:

System.TypInfo.GetEnumName(System.TypeInfo(TImageEnViewButton), enum);


But how to get the button caption?

For example, when building a Toolbar Customize Contextmenu filled with all the Button Captions. Would be nice if it would be BUILT-IN.

Could you give a hint on how to achieve that?
Go to Top of Page

xequte

38182 Posts

Posted - Jul 07 2020 :  01:18:23  Show Profile  Reply
Hi Peter

We considered whether we should expose the customization functionality of the toolbars and popup menus, but decided against it. It seems to be much less common for users to customize their toolbar buttons these days.

If customers disagree with me on this point, I'm happy to reconsider.

Unfortunately there is not a good way to access an array of all available buttons and their captions. Please take a look at iexToolbars.pas to see what I mean. In most cases they are ImageEn actions, so the caption localization is handled by the TAction code.



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

PeterPanino

860 Posts

Posted - Jul 07 2020 :  03:45:31  Show Profile  Reply
 
If customers disagree with me on this point, I'm happy to reconsider.


I strongly disagree. I am building productivity tools for "power users". They are very much interested in customizing their toolbars and context menus.

A built-in customization menu would also have the advantage to be shown in the chosen language.

Customization of toolbars is a very common feature in many applications: Right-click the toolbar and click on "Customize...". It should be that simple for the user (and for the developer).
Go to Top of Page

xequte

38182 Posts

Posted - Jul 07 2020 :  19:49:29  Show Profile  Reply
OK, I'll look into it for a future version.



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

xequte

38182 Posts

Posted - Mar 06 2022 :  23:11:03  Show Profile  Reply
From v10.3.5, both toolbar and popup menus support customization.

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

yogiyang

India
725 Posts

Posted - Mar 09 2022 :  07:03:24  Show Profile  Reply
When will this update (10.3.5) be released?

Yogi Yang
Go to Top of Page

xequte

38182 Posts

Posted - Mar 09 2022 :  20:57:23  Show Profile  Reply
In the next week or so.

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