#50 TaskBarIcon don't show a popup menu

closed-rejected
None
5
2010-05-20
2009-11-21
Anonymous
No

I try to create a simple interface with a taskBarIcon and a popup menu attached to it.
I use the method taskBarIconPopupMenu, no menu is showed when I click on the ico on task bar.
I am using OS OpsenSuse 11.2, with KDE 4.3.1, GHC 4.10.1 wx-0.11.1.2

On Windows Vista, program crashes , unless I remove the line taskBarIconPopupMenu.

Discussion

  •  
    Attachments
  • Updated and working sample of a task bar icon

     
    Attachments
  • Sample code is incorrect - it is invalid to create the menu in the main frame context. Instead you need to add an event handler to catch TaskBarIconRightDown event and create the menu there before calling taskBarIconPopupMenu.

    See updated sample file which is now in the darcs 'samples' directory. This was tested with wxhaskell tip (0.12.5) on Windows XP.

     
    • assigned_to: nobody --> jodonoghue
    • status: open --> closed-rejected