Page 1 of 1

OSX wxGenericNotificationMessage not found

Posted: Mon Feb 10, 2020 3:55 pm
by cutecode

Code: Select all

#include <wx/notifmsg.h>

void GrvSvrDialog::showbaloon(wxString szTitle, wxString szMessage)
{
#if defined(__WXMSW__) && wxUSE_TASKBARICON_BALLOONS
	m_taskBarIcon->ShowBalloon(szTitle, szMessage, 10000, wxICON_INFORMATION);
#else
    wxGenericNotificationMessage nmsg(szTitle, szMessage, this, wxICON_INFORMATION);
    nmsg.Show(10);
#endif // __WXMSW__/!__WXMSW__
}

|error: unknown type name 'wxGenericNotificationMessage'; did you mean 'wxNotificationMessage'?|

Re: OSX wxGenericNotificationMessage not found

Posted: Mon Feb 10, 2020 4:15 pm
by ONEEYEMAN
Hi,
Did you include an appropriate header from the "wx/generic" folder?

Thank you.

Re: OSX wxGenericNotificationMessage not found

Posted: Mon Feb 10, 2020 4:27 pm
by cutecode
thank you