Recent

Author Topic: Images in TMainMenu/TMenuItem not working  (Read 4200 times)

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Images in TMainMenu/TMenuItem not working
« on: April 28, 2018, 11:52:08 am »
When creating a menu (Cocoa widgetset, 64 bit, Lazarus 1.9.0 r57735M FPC 3.0.4), it seems that one cannot add icons/images in front of menu items. This affects TMainMenu and TPopupMenu obviously.


For testing, I compiled attached example project with Carbon and Cocoa.
Under Carbon the icons appear just fine, under Cocoa however no icon will be shown (see screenshot).


Is this a limitation of Cocoa or is this something I should report as a bug?

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Images in TMainMenu/TMenuItem not working
« Reply #1 on: April 28, 2018, 02:07:30 pm »
Additional side note on Cocoa;


It seems that hovering over a menu item also triggers the onClick event of the TMenuItem.
This stops after having hovered over every item at least once ...

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Images in TMainMenu/TMenuItem not working
« Reply #2 on: April 29, 2018, 09:28:41 am »
I've posted this as a bug report in Bugtracker:)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Images in TMainMenu/TMenuItem not working
« Reply #3 on: September 06, 2018, 06:46:06 am »
It seems that hovering over a menu item also triggers the onClick event of the TMenuItem.
This stops after having hovered over every item at least once ...
cannot confirm that.

but icons would show up now.

 

TinyPortal © 2005-2018