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
 Toolbar issues and suggestions

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 - Feb 04 2025 : 14:59:30
Toolbar issues and suggestions:

1. When a toolbar button shows a dialog (e.g., the Brush Properties dialog, etc.) and the Form owning the ImageEn toolbar has FormStyle = fsStayOnTop, then the dialog shown by the toolbar button is RANDOMLY hidden behind the Form. To prevent this, such internal dialogs should be shown by using a mechanism like the following one:

var OldSelfFormStyle := Self.FormStyle;
Self.FormStyle := fsNormal;
try
  SHOWINTERNALDIALOG;     
finally
  Self.FormStyle := OldSelfFormStyle;
end;


2. Apply suitable toolbar button actions to the selection if a selection exists:
For example, if a selection exists, then the actions from this toolbar menu should be applied to the selection:



3. Although ImageEnViewToolbar.Wrapable = True, the toolbar does not wrap around.
When I set ImageEnViewToolbar.AutoSize= True then the ImageEnViewToolbar at design-time extends to the whole form (although only a few buttons are checked in the Buttons property):



This is my ImageEn Toolbar:

object ImageEnViewToolbar1: TImageEnViewToolbar
  Left = 0
  Top = 0
  Width = 987
  Height = 1290
  Margins.Left = 5
  Margins.Top = 5
  Margins.Right = 5
  Margins.Bottom = 5
  AutoSize = True
  ButtonHeight = 215
  ButtonWidth = 221
  Caption = 'ImageEnViewToolbar1'
  TabOrder = 4
  Buttons = [ivbImagePrint, ivbMouseSelect, ivbImageEditRotate, ivbImageEditFlip, 
            ivbImageEditOther, ivbImageEditDialogPreview, ivbImageEditColors, ivbImageEditColorPreview, 
            ivbImageEditTools, ivbImageEditUndo]
  AttachedImageEnView = ImageEnViewInternalImage
end


Obviously, the button sizes are automatically set to an unreasonable size by Autosize. It seems the auto-size behavior is flawed.
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 10 2025 : 16:12:31
Hi

We have added the OnHoverToolbar event to handle show, hide and reposition of the hover toolbar. Please email me for the latest beta.

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Feb 10 2025 : 11:54:43
Hi Nigel,

You wrote: "We'd need to add a lot of code to workaround that, so I'd like to avoid that."

You could easily avoid this burden by implementing these events in TImageEnViewToolbar:

OnBeforeShowModalDialog
OnAfterShowModalDialog


The developer could use these event handlers to implement Self.FormStyle adjustments accordingly.

This would be a straightforward solution to the problem. What do you think?

PeterPanino Posted - Feb 06 2025 : 04:47:05
1. I am not using fsStayOnTop just for fun. If this property is set, it is an ESSENTIAL FUNCTIONALITY REQUIREMENT.
xequte Posted - Feb 05 2025 : 22:33:02
Hi

1. fsStayOnTop will clash if that is used by the calling form. They should not be used together. We'd need to add a lot of code to workaround that, so I'd like to avoid that unless we here from others using hover toolbars with form using fsStayOnTop (which should be avoided).

2. Those are all retouch functions, so I think it would be confusing to make them double as selection functions

3. Are you able to reproduce that in one of our demos:

\Demos\Other\ImageEnViewToolbar\IEToolbar.dpr

What version of Delphi is this?

Nigel
Xequte Software
www.imageen.com