"mouseover" for taskbar?

I'm writing a program that uses has an icon in the taskbar, and no other window, using TaskBarIcon. I need to change that icon to a different one when the user moves their mouse over the icon: my initial hope was that there'd be a WX.EVT_TASKBAR_MOUSEOVER, but that doesn't seem to be the case. I then tried doing something with EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW but given it's the taskbar icon and not the window, it doesn't seem to be working. Can anyone suggest a solution?

Thank you

j

From what I understand, this TaskBarIcon-thing is a systray-icon on

Windows. I don't know about other platforms (manual says TaskBarIcon
is supported on Windows and the newer X window managers), but on
Windows, I don't believe one is supposed to be able to do what you are
seeking to do.

The only thing that is supposed to happen on mouse-over is tooltip
show/hide. And you can set the tooltip string using
wxTaskBarIcon::SetIcon.

//Jonatan

···

On Tue, 28 Dec 2004 04:44:41 -0500, Jofish <python@jofish.com> wrote:

I'm writing a program that uses has an icon in the taskbar, and no other
window, using TaskBarIcon. I need to change that icon to a different
one when the user moves their mouse over the icon: my initial hope was
that there'd be a WX.EVT_TASKBAR_MOUSEOVER, but that doesn't seem to be
the case. I then tried doing something with EVT_ENTER_WINDOW and
EVT_LEAVE_WINDOW but given it's the taskbar icon and not the window, it
doesn't seem to be working. Can anyone suggest a solution?

Thank you

j

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Jofish wrote:

I'm writing a program that uses has an icon in the taskbar, and no other window, using TaskBarIcon. I need to change that icon to a different one when the user moves their mouse over the icon: my initial hope was that there'd be a WX.EVT_TASKBAR_MOUSEOVER, but that doesn't seem to be the case. I then tried doing something with EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW but given it's the taskbar icon and not the window, it doesn't seem to be working. Can anyone suggest a solution?

Have you tried EVT_TASKBAR_MOVE? What is the purpose of changing the icon on mouseover? Perhaps something different could be done to get a similar effect and still fulfill the purpose?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!