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" frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "Example frame") TEST=1 if TEST==1 then text = wx.wxStaticText(wx.NULL, wx.wxID_ANY, "foo bar") text:Reparent(frame) elseif TEST==2 then text = wx.wxStaticText(frame, wx.wxID_ANY, "foo bar") end sizer = wx.wxBoxSizer(wx.wxVERTICAL) sizer:Add(text, 0, wx.wxEXPAND, 0) frame:SetSizer(sizer) sizer:SetSizeHints(frame) frame:Show() wx.wxGetApp():MainLoop() ---- END I'm not sure if the problem is with wxLua, or with wxWidgets in general, but I'm not comfortable now to compile the whole wxWidgets + write some simple program just to test this small functionality - maybe someone with wx libs at hand and experience in wx programming could set up such a sample quickly and report his results? I'd be very thankful. I'm in strong need to use Reparent(), as I'd like to create widgets first, and add them to the layout & proper parent later. In more general terms, I'm setting up some classes and methods which would make it easier to use wxLua, in an IUP-like way. I intend to share that with the community when it is a bit more useful, but if I were not to use Reparent(), I'd have to change the internal code to a more complicated approach. So if anyone could help me, I'd be very grateful. Greetings Mateusz Czaplinski ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users