This is a very old bug. I hit upon it just recently.
If an item in a TsCheckListBox is marked as a Header, the font is wrong (default Tahoma 8 pt), That’s because the line is written from a TBitmap in which the Canvas.Font property was not initialized.
The following code fixes this:
Module sChackListBox, line 461:
(******* Preserve Font Info *********************) (** DB **)
bmp.Canvas.Font.Assign(Font); (** DB **)
(************************************************) (** DB **)
if (HeaderSkin <> '') and SkinData.Skinned then begin
.
.
While you’re at it, it might be a nice addition to introduce a HeaderFont property, to enable, for instance, italic text in headers.
-
This topic was modified 4 years, 6 months ago by HeDiBo.
-
This topic was modified 4 years, 6 months ago by HeDiBo.