On Jan 7, 2008 4:00 PM, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > On Jan 7, 2008 2:27 PM, John Labenski <[EMAIL PROTECTED]> wrote: > > > These are common in wxWidgets in GTK even with C++ code. All it means > > in this case is that the wxSizer is trying to size the wxFrame or > > wxButton before it had a chance to get a valid size so it's using > > wx.wxDefaultSize = (-1, -1). > > OK. How come the application just doesn't work?
Your code works for me in Ubuntu and Mandriva without any warnings. The Gtk-CRITICAL have never caused me problems in the past, but I do try to rearrange the code to make them go away. > > > Here is a bit more information. It displays the frame as a very small > frame > > > or as a VERY long titlebar only. It displays the errors in the terminal > when > > > I run it. If I comment out the SetSizeHints() I get the frame to show up > > > correctly, but it only has the menu. I don't see the controls. This > works on > > > Windows, but not on Linux. I hope I am doing something wrong. > > > > Not really, but you might want to provide some positive initial size > > for the wxFrame to get rid of the warnings. > > I already tried this and it didn't work either. I send another email about > wxSizer::Add() in Windows not functioning correctly when wxLua is used as a > Lua module. I wonder if this has anything to do with that. Maybe, I don't use wxLua as a module, but I can't see any reason why it should behave any differently. What Linux do you use? Regards, John ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users