Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

Large fonts in inherited forms (Delphi 10 Seattle)

$
0
0

Hi,

I am encountering a problem with large fonts in Delphi 10 Seattle and inherited forms.

The two images below come from the same application, first executed in normal Windows fonts, then in large fonts (125%). To understand what's going on :

  • The normal font weight controls are created in a parent form. The bold font controls are created in a form inheriting the parent form.
  • The green panels come from a frame (the left frame is created by the parent form, the right one is created by the child form).
  • The blue panel is in a TGridPanel with absolute row height and absolute column width, into the parent form.
  • The captions of the panels display their dimensions (width x height).
  • The captions of the buttons display their positions (left, top).
  • The captions of the labels display their font size.

Here are the images :

Normal fonts (D10 Seattle)

Large fonts (D10 Seattle)

As the images show, the controls created in the inherited form are not resized, and their fonts are not adjusted. Note that the blue panel, however created in the parent form, is not resized (absolute column widths and row heights in TGridPanel are not changed).

Tested under Delphi 2006, the same sources are pretty properly managed (with the exception of the blue panel) :

Large fonts (D2006)

Is this problem known, and is there a way to get around it?

If it can help, I also join the sources of the two projects (D10 Seattle and D2006) :

LargeFonts

thank you in advance,

Adrien


Viewing all articles
Browse latest Browse all 1963

Trending Articles