Ticket #12838 (closed defect: fixed)
wxTaskBarIcon does not work under wx 2.9 Cocoa
| Reported by: | mrx3000 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxOSX-Cocoa | Version: | 2.9-svn |
| Keywords: | Cc: | ||
| Blocked By: | Patch: | no | |
| Blocking: |
Description
The following code does not result in any task bar icon being created. CUSTOM_STATUSITEM and DOCK parameters to wxTaskBarIcon were used with no result.
class myTrayIcon : public wxTaskBarIcon {
DECLARE_DYNAMIC_CLASS(myTrayIcon)
DECLARE_EVENT_TABLE()
public:
myTrayIcon() : wxTaskBarIcon(CUSTOM_STATUSITEM) {
wxBitmap bitmap(small1_xpm);
m_Icon = new wxIcon();
m_Icon->CopyFromBitmap(bitmap);
SetIcon(*m_Icon, _T("test"));
}
}
Change History
Note: See
TracTickets for help on using
tickets.
