How can I correctly determine the size of the checkmark and radiobutton bitmaps used in TCheckBox and TRadiobutton, respectively?
The reason for my question is that, some time ago (
http://www.lazarus.freepascal.org/index.php/topic,17126.0.html), I had extended the SpkToolbar by checkboxes and radiobuttons. I had determined the size of the checkbox and radiobutton icons by calling
GetSystemMetrics(SM_CYMENUCHECK)This works fine for 96 dpi screen resolution (WIn 32), but for 120 dpi the icons are too large and appear pixelated.
TCheckedListBox, TChartListbox and TMenuItem have the same issue.