Jump to content
PeterPanettone

Automatically show the Quick Edit dialog?

Recommended Posts

image.thumb.png.4d230477f4b51ea245cbad5c385dcf3b.png

 

I want to achieve this design time automation: Whenever a new object is created (either from the Palette or by pasting an object from the clipboard), the Quick Edit dialog for the new object is automatically shown. Is there a way to achieve this with GExperts?

Edited by PeterPanettone

Share this post


Link to post

No. But you could instead have it automatically open the Rename Component expert dialog, which can be configured to give you most of these options (not the color though, which is pretty much useless without also setting the StyleElements property).

 

image.thumb.png.0d2d55f51bc75d3204d1a9709d595ebf.png

 

For the Text property edit to be shown, you need to add Text to the Additional Properties in the Expert's configuration dialog.

image.thumb.png.6e095abd0127fdc223f5e464ff038ff8.png

 

Share this post


Link to post

Hello Thomas,

 

Thanks for the information. The GExperts Rename Component expert is indeed useful when changing only the name.

 

However, with multiple properties, the layout is broken and inconsistent:

 

image.png.a60b0b3f312790480269c29210bf0fae.png    image.png.0fa0f28774d84ecc5174743090177394.png    

 

 

Share this post


Link to post
31 minutes ago, PeterPanettone said:

Thanks for the information. The GExperts Rename Component expert is indeed useful when changing only the name.

 

However, with multiple properties, the layout is broken and inconsistent:

 

image.png.a60b0b3f312790480269c29210bf0fae.png    image.png.0fa0f28774d84ecc5174743090177394.png    

 

 

As far as I am aware this dialog should work with multiple additional properties.

Which version of Delphi and GExperts are we talking about?

And if a HighDPI aware IDE is involved: What is your monitor setup?

Share this post


Link to post
32 minutes ago, dummzeuch said:

As far as I am aware this dialog should work with multiple additional properties.

Dear Thomas! Can you please post a screenshot with multiple properties? Thank you! And a happy new year! 🎈🙋‍♂️

Edited by PeterPanettone

Share this post


Link to post
11 minutes ago, PeterPanettone said:

Can you please post a screenshot with multiple properties? Thank you! And a happy new year! 🎈🙋‍♂️

here you go:

image.thumb.png.5658f6f7b4f772dcb5e7294eb70a70c7.png

Share this post


Link to post

I use Delphi 12.2 in Windows 11 and have just now downloaded and compiled version r-4418:

 

image.thumb.png.50fa6cc611a1c7b8baf0e331e099846a.png

 

1. you should not trust the GExperts users to use the same DPI settings as you when they compile the GExperts source code.
2. you should prioritize LAYOUT over blindly trusting that your DPI settings will work for the users when they compile the GExperts source code.

 

Following rule #2, I have now moved the main dialog buttons down to the bottom into a separate panel, which creates a more logical layout:

 

image.png.0b5a68c9f3c8677a0dd5a6f8a7a354c8.png

 

In the next step, I will adjust the layout logic for multiple properties.

Edited by PeterPanettone

Share this post


Link to post
2 minutes ago, PeterPanettone said:

1. you should not trust the GExperts users to use the same DPI settings as you when they compile the GExperts source code.

I don't. But I suggest using the _build_project.cmd script in the sub-directory under Projects matching the Delphi version. But even when using the IDE the DPI settings should not make a difference unless you open all the forms and safe them again.

 

7 minutes ago, PeterPanettone said:

2. you should prioritize layout over blindly trusting that your DPI settings will work for the users when they compile the GExperts source code.

No comment, I don't want to get rude.

Share this post


Link to post

It is yet another bloody per monitor scaling issue and depends on how the monitor(s) is/are configured:

It does not occur if there is one monitor with scaling set to 100, even if another monitor is set to scaling > 100. It also does not occur over Remote Desktop (at least not in my tests).

Since I have got a High DPI monitor and a HD monitor, it does not happen on my system. I had to turn off the HD monitor to reproduce the problem.

Share this post


Link to post
20 minutes ago, dummzeuch said:

It is yet another bloody per monitor scaling issue and depends on how the monitor(s) is/are configured:

It does not occur if there is one monitor with scaling set to 100, even if another monitor is set to scaling > 100. It also does not occur over Remote Desktop (at least not in my tests).

Since I have got a High DPI monitor and a HD monitor, it does not happen on my system. I had to turn off the HD monitor to reproduce the problem.

Dear Thomas, you are completely right! But all these DPI problems can be OVERRIDDEN by using an optimal LAYOUT. The logical error is to focus only on one issue (the DPI settings) while ignoring the broader context of responsive design and layout adaptability.

Edited by PeterPanettone

Share this post


Link to post
4 minutes ago, dummzeuch said:

Thanks for your suggestion.

I have YOU to thank for such an ingenious product as GExperts!

 

I could not take over the maintenance of GExperts. YOU are the leading expert for GExperts!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×