yea but that means you have to create the window.

I guess at that point you could write a small wrapper function that
would only call wxLogVerbose if the window has been opened...

But I was going for the simple approach of having wxLogVerbose lines
in my app which only took affect if the window was open...

This would seem clean and the way I would have designed it.

On Mon, Aug 24, 2009 at 7:44 PM, Andreas Krinke<andreas.kri...@gmx.de> wrote:
> Daniel Aquino wrote:
>> but I was referring to , "web browser alert style boxes" vs "a log
>> window".  If the log window is closed it should not produce, "web
>> browser alert style boxes"
>
> Setting the last parameter of wx.wxLogWindow() to false seems to solve
> the problem:
>
> local log = wx.wxLogWindow( frame, "Log", true, false )
> wx.wxLog.SetVerbose(true)
>
> After that, any call to wx.wxLogVerbose() will produce output in the log
> window. If it's closed, nothing happens.
>
> The last option is "passToOld":
> (see http://docs.wxwidgets.org/stable/wx_wxlogwindow.html)
>
> Setting it to false means every log message is processed by the log
> window only. Therefore the default handler which shows a message box for
> wx.wxLogVerbose is ignored.
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> wxlua-users mailing list
> wxlua-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to