On Thu, Nov 19, 2009 at 3:01 PM, Mark Rushakoff
<mrushak...@lafayetteinstrument.com> wrote:
>
> What I'm doing now -- and this is certainly one of the uglier hacks I've done 
> -- is I'm creating widgets in C++, and passing the widget's ID to Lua; then, 
> in Lua, I'm using FindWindowById and DynamicCast, and the widgets are placed 
> correctly.
>
> When I place a "C++" button side-by-side with a "Lua" (invisible) button, I 
> get
>
> C++ X,Y:                 0,  1241184
> C++ Width, Height:      75, -1241176
>
> Lua X,Y:           1241152,  1241184
> Lua Width, Height: 3261761, -1241176
>
> So it looks like Lua is placing the X and the Width out in Never-Never Land, 
> but the Y and Height are fine.

You have something seriously wrong with your build I believe. Even
your C++ created controls are all wrong. The position and size values
should be in pixels from the upper left corner of the window.

I recommend cleaning everything and rebuilding from scratch. You
should also run your Lua program that prints out the positions of the
windows in wxLua or wxLuaFreeze to see if you have the problem there.

Regards,
    John

------------------------------------------------------------------------------
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