Re: [wxlua-users] Troubles with NULL parent followed by Reparent()

2009-11-03 Thread Mateusz Czaplinski
On Tue, Nov 3, 2009 at 6:16 AM, John Labenski wrote: > On Mon, Nov 2, 2009 at 5:12 PM, Mateusz Czaplinski > wrote: >> Hi, >> I'm having troubles with the following reduced sample program. When I >> [...] > > Top level windows such as wxFrames and wxDialogs do not require a > parent, but ALL chil

Re: [wxlua-users] Troubles with NULL parent followed by Reparent()

2009-11-03 Thread John Labenski
On Tue, Nov 3, 2009 at 4:12 PM, Mateusz Czaplinski wrote: ... >> creation code in a Lua table and call it as appropriate. Don't forget >> to use wxWindow::Destroy() to delete the topmost old one and it will >> take care of its children. On the other hand if you are creating >> wxListCtrls with man

Re: [wxlua-users] Troubles with NULL parent followed by Reparent()

2009-11-02 Thread John Labenski
On Mon, Nov 2, 2009 at 5:12 PM, Mateusz Czaplinski wrote: > Hi, > I'm having troubles with the following reduced sample program. When I > set TEST=2, everything is OK, but with TEST=1, the "foo bar" text does > not display (strangely, the frame size is calculated properly). I have > also tried wit

[wxlua-users] Troubles with NULL parent followed by Reparent()

2009-11-02 Thread Mateusz Czaplinski
Hi, I'm having troubles with the following reduced sample program. When I set TEST=2, everything is OK, but with TEST=1, the "foo bar" text does not display (strangely, the frame size is calculated properly). I have also tried with a wxTextCtrl, with the same results. BEGIN require "wx" fram