$szTitle = "wxlogwindow"; include "./_header.inc"; ?>
this class represents a background log window: to be precise, it collects all log messages in the log frame which it manages but also passes them on to the log target which was active at the moment of its creation. this allows, for example, to show all the log messages in a frame but still continue to process them normally by showing the standard log dialog.
derived from
include files
<wx/log.h>
see also
members
wxlogwindow::wxlogwindow
wxlogwindow::show
wxlogwindow::getframe
wxlogwindow::onframecreate
wxlogwindow::onframeclose
wxlogwindow::onframedelete
wxlogwindow(wxframe *parent, const wxchar *title, bool show = true, bool passtoold = true)
creates the log frame window and starts collecting the messages in it.
parameters
parent
title
show
passtoold
void show(bool show = true)
shows or hides the frame.
wxframe * getframe() const
returns the associated log frame window. this may be used to position or resize it but use wxlogwindow::show to show or hide it.
virtual void onframecreate(wxframe *frame)
called immediately after the log frame creation allowing for any extra initializations.
virtual bool onframeclose(wxframe *frame)
called if the user closes the window interactively, will not be called if it is destroyed for another reason (such as when program exits).
return true from here to allow the frame to close, false to prevent this from happening.
see also
virtual void onframedelete(wxframe *frame)
called right before the log frame is going to be deleted: will always be called unlike onframeclose().
include "./_footer.inc"; ?>