Daniel Aquino wrote: > 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.
I think, I don't understand what you're trying to archive. If you want to have the log window you do: local log = wx.wxLogWindow( frame, "Log", true, false ) wx.wxLog.SetVerbose(true) If you don't want the log window, you don't do this. This way, you can have calls to wx.wxLogVerbose everywhere in your program. ------------------------------------------------------------------------------ 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