Jump to content
Tom Mueller

Delphi 11.0 has a different form Caption offset than Delphi 10.4

Recommended Posts

Hello

 

Has anyone noticed that in Delphi 11.0 the indentation of the form caption is larger than in Delphi 10.4?

image.png.e4f98b5042ca7e565d1b7d6d315ca610.png
 

Especially under Windows 11 the small indent with Delphi 10.4 is irritating.

image.png.52a4a700ea2ad733353b0d72eaf7fe87.png

IMO Delphi 11.0 makes the better indentation.

 

Is there a way in Delphi 10.4 to adjust the intent of the form caption (without using Styles)?

 

Best regards

Tom

 

Share this post


Link to post

OwnerDraw?

Edit: i.e. handle WM_NCPAINT and WM_NCACTIVATE, etc. yourself.

Share this post


Link to post

Yes, OwnerDraw would probably work - if I use a base form for all the forms in an application.

I hoped that there is a more simple way to I just adjust the intent of the caption.

Share this post


Link to post

A fresh VCL forms application shows a Delphi icon in front of the window title. What did you do to remove that?

image.png.03c71aaa753bb7d79d78b769ede5299c.png

Share this post


Link to post

Set the forms BorderStyle to bsDialog, bsToolWindow or bsSizeToolWin.

Sorry, forgot to mention that.

Share this post


Link to post
On 10/7/2021 at 12:39 PM, Uwe Raabe said:

A fresh VCL forms application shows a Delphi icon in front of the window title. What did you do to remove that?

Form 652. That's a pretty extended hello world collection!

  • Haha 4

Share this post


Link to post
1 hour ago, aehimself said:

Form 652. That's a pretty extended hello world collection!

I heard that he is starting every day over!

  • Haha 1

Share this post


Link to post

Why has this changed? Is the VCL code custom drawing in Delphi 11 where previously it let the system do it? Or vice versa? Or both custom drawing and the code has changed? 

Edited by David Heffernan

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

×