Bogusław Brandys
2004-08-30 11:19:09 UTC
Hello,
Is there any FlashWindow multiplatform in wxWidgets ?
FlashWindow in Windows just flashes current visible program window makeing
it repatedly on top and bacground for a while and beeps throught speaker.
this is fine way to alert about background errors which are supposed to
not broke program flow but user should be mentioned about it.
How to make it multiplatform (I'm interested in Windows /Linux version
only)?
Another question is threads related: I want to log errors to a file but
also to show it using standard wxLogGui in main thread. But in working
thread all errors should be only logged to a file and flash main window. I
suppose i must use something to send message to main window and use
wxLogChain to suspend messages to wxLogGui in that case , right ? Any
example ?
When is default wxLogGui created ? Can I put something like that in my
wxApp::OnInit():
wxString LogPath = AppPath + "/log/" + datf + ".txt";
m_pLogFile = fopen( LogPath.c_str(), "a+" );
wxLog::SetActiveTarget(new wxLogStderr(m_pLogFile));
chain = new wxLogChain(new wxLogGui);
wxLog::SetLogLevel(wxLOG_Message);
to change creation order ? What about default wxLogGui class in this case
: is created or no ?
I appreciate any answer.
Is there any FlashWindow multiplatform in wxWidgets ?
FlashWindow in Windows just flashes current visible program window makeing
it repatedly on top and bacground for a while and beeps throught speaker.
this is fine way to alert about background errors which are supposed to
not broke program flow but user should be mentioned about it.
How to make it multiplatform (I'm interested in Windows /Linux version
only)?
Another question is threads related: I want to log errors to a file but
also to show it using standard wxLogGui in main thread. But in working
thread all errors should be only logged to a file and flash main window. I
suppose i must use something to send message to main window and use
wxLogChain to suspend messages to wxLogGui in that case , right ? Any
example ?
When is default wxLogGui created ? Can I put something like that in my
wxApp::OnInit():
wxString LogPath = AppPath + "/log/" + datf + ".txt";
m_pLogFile = fopen( LogPath.c_str(), "a+" );
wxLog::SetActiveTarget(new wxLogStderr(m_pLogFile));
chain = new wxLogChain(new wxLogGui);
wxLog::SetLogLevel(wxLOG_Message);
to change creation order ? What about default wxLogGui class in this case
: is created or no ?
I appreciate any answer.
--
Best Regards
Bogusław Brandys
Best Regards
Bogusław Brandys