contents up previous next

wxlogwindow

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

wxlogpassthrough

include files

<wx/log.h>

see also

wxlogtextctrl

members

wxlogwindow::wxlogwindow
wxlogwindow::show
wxlogwindow::getframe
wxlogwindow::onframecreate
wxlogwindow::onframeclose
wxlogwindow::onframedelete


wxlogwindow::wxlogwindow

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


wxlogwindow::show

void show(bool show = true)

shows or hides the frame.


wxlogwindow::getframe

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.


wxlogwindow::onframecreate

virtual void onframecreate(wxframe *frame)

called immediately after the log frame creation allowing for any extra initializations.


wxlogwindow::onframeclose

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

wxlogwindow::onframedelete


wxlogwindow::onframedelete

virtual void onframedelete(wxframe *frame)

called right before the log frame is going to be deleted: will always be called unlike onframeclose().