Hi Richard,
On 11/05/14 18:03, Richard Faasen wrote:
I've been trying to get Wx::TaskBarIcon to work on OS X. I got the
icon to show up in the menubar, but I can't get a popup menu to show.
I understand none of the events are working on OS X so I've created a
subclass to override CreatePopupMenu but it doesn't get called either.
Am I doing something obvious wrong? I'm using wxWidgets 2.9.4, wxPerl:
0.9922.
Don't you need have some code like this line?
Wx::Event::EVT_TASKBAR_CLICK( $self, $self->{TaskBarIcon},
\&MyTaskBarIcon::CreatePopupMenu);
But EVT_TASKBAR_CLICK would still have to be wrapped. It's not hard to
do, just browse this list and there are plenty of examples of wrapping.
But the doc doesn't say it's not wrapped, are you sure?
http://docs.wxwidgets.org/trunk/classwx_task_bar_icon.html
I guess it would be in wxPerl/XS/TaskBarIcon.xs
If it still doesn't work, come back to the list and I'm sure we can help
wrap it.
Sorry I don't have OS X.
Regards
Steve