Recent

Author Topic: Size of checkmark/radiobutton icon  (Read 3048 times)

wp

  • Hero Member
  • *****
  • Posts: 13264
Size of checkmark/radiobutton icon
« on: January 28, 2013, 03:37:46 pm »
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
Code: [Select]
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.
« Last Edit: January 28, 2013, 10:20:15 pm by wp »

 

TinyPortal © 2005-2018