#50 TaskBarIcon don't show a popup menu


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-

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


  • Jeremy O\'Donoghue

    Updated and working sample of a task bar icon

  • Jeremy O\'Donoghue

    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.

  • Jeremy O\'Donoghue

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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks