Tom Mueller 5 Posted October 7, 2021 Hello Has anyone noticed that in Delphi 11.0 the indentation of the form caption is larger than in Delphi 10.4? Especially under Windows 11 the small indent with Delphi 10.4 is irritating. 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
Lars Fosdal 1792 Posted October 7, 2021 OwnerDraw? Edit: i.e. handle WM_NCPAINT and WM_NCACTIVATE, etc. yourself. Share this post Link to post
Tom Mueller 5 Posted October 7, 2021 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
Uwe Raabe 2057 Posted October 7, 2021 A fresh VCL forms application shows a Delphi icon in front of the window title. What did you do to remove that? Share this post Link to post
Tom Mueller 5 Posted October 7, 2021 Set the forms BorderStyle to bsDialog, bsToolWindow or bsSizeToolWin. Sorry, forgot to mention that. Share this post Link to post
aehimself 396 Posted October 11, 2021 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! 4 Share this post Link to post
Attila Kovacs 629 Posted October 11, 2021 1 hour ago, aehimself said: Form 652. That's a pretty extended hello world collection! I heard that he is starting every day over! 1 Share this post Link to post
David Heffernan 2345 Posted October 12, 2021 (edited) 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 October 12, 2021 by David Heffernan Share this post Link to post
everybyte 7 Posted October 25, 2021 Also the caption height of the form with BorderStyle = bsDialog is bigger in Delphi 11 compared to 10.4, while form height is smaller: Share this post Link to post
mvanrijnen 123 Posted October 25, 2021 (edited) strange, delphi is not drawing these forms itself? vcl is just a door to the underlaying windows api? or does this depends wether you'r using vcl styles or something similar? Edited October 25, 2021 by mvanrijnen 1 Share this post Link to post
Lars Fosdal 1792 Posted October 25, 2021 It's a nightmare when you have 350+ frames and forms that may need a touch-up, and you still can't be sure they won't be f'd up if two people with different DPI settings edit them. Share this post Link to post
Lars Fosdal 1792 Posted October 25, 2021 5 minutes ago, mvanrijnen said: vcl is just a door to the underlaying windows api Mostly, yes. Share this post Link to post
Turan Can 3 Posted October 30, 2021 You have to design it yourself, On click form properties... BorderStyle : bsNone OnPaint procedure TForm1.FormPaint(Sender: TObject); begin OnBasePaint(ClientWidth, ClientHeight, Canvas); end; procedure TfmMain1.OnBasePaint(ClientWidth, ClientHeight: Integer; Canvas: TCanvas); var Rect: TRect; begin Rect.Left := 0; Rect.Top := 0; Rect.Bottom := ClientHeight; Rect.Right := ClientWidth; with Canvas do begin // Pen.Width := 2; // Brush.Color := $00000000; // Pen.Color := $006B6B6B; // Rectangle(0, 0, ClientWidth, ClientHeight); end; end; Share this post Link to post
Doug Rudd 2 Posted November 10, 2021 The Delphi 11 version looks better. Share this post Link to post