Forum > LCL

Strange behaviour of TCheckBox and Windows Menu settings

<< < (2/6) > >>

wp:
I don't understand these screenshots. You say the left one is with font size 9, and the right one is with font size 12. But the texts in both images have the same size. Please post unmanipulated screenshots.

Do you work with auto-sizing and anchors? You must if you change fonts. What looks correct with one font will be awfully off with another font otherwise.

It seems to me that the radiogroup is not auto-sized. Usually AutoFill=true and AutoSize=true are the correct settings for a radiogroup.

Tharon:
The screenshots are not manipulated, i've only put them one near each other.

The font size i was refering isn't the one of the text, but the size of the "menu" font in windows.

As i've said in my first post, i've changed the menu font size from the Windows theme settings to have more readable menu text in Windows. After doing this the check boxes of all my lazarus programs changed size too, even at design time, even already compiled one.

No DPI have been changed in my system, and i'm not changing font in the software.
The setting i'm talking about is the one in the screenshot.

The two screenshot shows the same program (not two different version, it's the same executable) running with the two windows menu settings.

The issue isn't the radiogroup not autosized... the individuals checkboxes height of the checkboxed changed accordly to the Windows menu text size. It happens on every checkbox, not only the ones inside a radiogroup.

wp:
OK, I understand now. Which Windows version is this? I've not seen a possibility to change the menu font for a long time (or it's buried deeply in Windows 10).

Does the RadioGroup have AutoFill=true and AutoSize=true?

Tharon:
Windows 7, but happen in Windows 10 too if the system font is enlarged in the "ease of access" settings.

Tharon:
Here. This is Lazarus with the program launched first with the default Windows menu text size, and then with increased Windows menu text size. I didn't change anything, only launched lazarus and loaded the project file.

The size of the checkbox height automatically changed from 19 to 25 and can't be manually resized. This happen on the compiled executable too. It doesn't matter if i compiled it when the height is 19, if i change the Windows menu text size the checkbox height changes too.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version