Recent

Author Topic: Checked menu items with associated icons  (Read 3588 times)

wp

  • Hero Member
  • *****
  • Posts: 13270
Checked menu items with associated icons
« on: November 24, 2012, 11:33:11 pm »
In Delphi, it is possible to distinguish when a menu item having an icon is checked or not. This is not true for Lazarus. The icon is always drawn in the same way, and it is not possible to tell from the menu item whether it is checked or not. If the menu item does not have an icon a checkmark is drawn as expected.

Is there a simple fix for this behavior, or should I report this as a bug?
« Last Edit: November 25, 2012, 11:46:09 am by wp »

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Checked menu items with associated icons
« Reply #1 on: November 25, 2012, 02:07:54 pm »
Each menu item has property "ShowAlwaysCheckable". When it is True, then checkbox is always drawn.
Also, I don't agree that  icon is always drawn in the same way. It is a little different (at least here on Qt). Icon of checked menuitem has other (lowered) background.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

wp

  • Hero Member
  • *****
  • Posts: 13270
Re: Checked menu items with associated icons
« Reply #2 on: November 25, 2012, 06:15:13 pm »
On Windows the checked state cannot be identified from the icon even if ShowAlwaysCheckable is true (which does not seem to have any effect).

 

TinyPortal © 2005-2018