Public Member Functions | |
virtual Menu | CreatePopupMenu () |
bool | PopupMenu (Menu menu) |
bool | RemoveIcon () |
bool | SetIcon (Icon icon, string tooltip) |
TaskBarIcon (IntPtr wxObject) | |
TaskBarIcon () | |
Protected Member Functions | |
override void | CallDTor () |
Properties | |
bool | IsIconInstalled [get] |
bool | IsOk [get] |
wx.Utils.Exit()
instead where appropriate.freedesktop.org
(WMs used by modern desktop environments such as GNOME >= 2, KDE >= 3 and XFCE >= 4 all do) or the older methods used in GNOME 1.2 and KDE 1 and 2. If it doesn't, the icon will appear as a toplevel window on user's desktop.
EVT_TASKBAR_MOVE(func)
Process a wxEVT_TASKBAR_MOVE
event. EVT_TASKBAR_LEFT_DOWN(func)
Process a wxEVT_TASKBAR_LEFT_DOWN
event. EVT_TASKBAR_LEFT_UP(func)
Process a wxEVT_TASKBAR_LEFT_UP
event. EVT_TASKBAR_RIGHT_DOWN(func)
Process a wxEVT_TASKBAR_RIGHT_DOWN
event. EVT_TASKBAR_RIGHT_UP(func)
Process a wxEVT_TASKBAR_RIGHT_UP
event. EVT_TASKBAR_LEFT_DCLICK(func)
Process a wxEVT_TASKBAR_LEFT_DCLICK
event. EVT_TASKBAR_RIGHT_DCLICK(func)
Process a wxEVT_TASKBAR_RIGHT_DCLICK
event. EVT_TASKBAR_CLICK(func)
This is a synonym for either EVT_TASKBAR_RIGHT_DOWN
or UP
depending on the platform, use this event macro to catch the event which should result in the menu being displayed on the current platform.wx.TaskBarIcon.TaskBarIcon | ( | ) |
wx.TaskBarIcon.TaskBarIcon | ( | IntPtr | wxObject | ) |
override void wx.TaskBarIcon.CallDTor | ( | ) | [protected, virtual] |
virtual Menu wx.TaskBarIcon.CreatePopupMenu | ( | ) | [virtual] |
This method is called by the library when the user requests popup menu (on Windows and Unix platforms, this is when the user right-clicks the icon). Override this function in order to provide popup menu associated with the icon.
If CreatePopupMenu returns null
(this happens by default), no menu is shown, otherwise the menu is displayed and then deleted by the library as soon as the user dismisses it. The events can be handled by a class derived from wx.TaskBarIcon.
Note, that the returned wrapper will loose ownership of the native wx menu immediately after this method has been finished.
bool wx.TaskBarIcon.PopupMenu | ( | Menu | menu | ) |
Pops up a menu at the current mouse position. The events can be handled by a class derived from wx.TaskBarIcon.
CreatePopupMenu()
callback instead of calling this method from event handler, because some ports (e.g. wxCocoa) may not implement PopupMenu()
and mouse click events at all. bool wx.TaskBarIcon.RemoveIcon | ( | ) |
This will remove the icon from the task bar.
bool wx.TaskBarIcon.SetIcon | ( | Icon | icon, | |
string | tooltip | |||
) |
Defines icon and optional tool tip to be presented inthe task bar. Call RemoveIcon() to remove the icon from the task bar.
bool wx.TaskBarIcon.IsIconInstalled [get] |
True iff icon is presented in the task bar. Call RemoveIcon() to remove the icon from the task bar.
bool wx.TaskBarIcon.IsOk [get] |