On 1/19/06, klaas.holwerda <[EMAIL PROTECTED]> wrote: > I uploaded what i tested today ( with the latest namespace changes and > such ). > > http://www.xs4all.nl/~kholwerd/tmp/wxLua2.zip
I'm using gtk2 in unicode w/ wxWidgets CVS head.
1) Unicode fix, add wxT(""), cancom.cpp line 48
wxlMoveObjectCmd::wxlMoveObjectCmd( wxlCanObj* object, double x, double y )
:wxCommand( true, wxT("drag object") )
2) In gtk2 I get an invalid bitmap assert in wxlCan
in canslm.cpp
MyFrame::MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
...
// give it some initial size to make it happy
mainCan = m_canvas = new wxlCan( this, wxID_ANY, wxPoint(0,0),
wxSize(10,10) );
...
// else this code asserts when it tries to use wxlCan::m_bitmap
m_canvas->SetYaxis( false ); //true );
//defines the minimum x and y to show and the number of world
units per pixel in x and y
m_canvas->SetMappingUpp( m_xOrigin, m_yOrigin, m_xScale, m_yScale );
> The sample works a little because i changed the order of registering
> bindings,
> but this does not solve anything.
It works well for me after regenerating the bindings (I removed the
wx_XXX stuff), I haven't tested everything though or look too much at
the code. I've attached my Makefile (using wx-config) and an updated
wxlcan.rules.in file that uses simpler paths, just "." will suffice
since you want them in the current dir anyway. See also the genwxbind
tag in the Makefile, eg "$make genwxbind" to generate them.
It looks really great, no flicker at all!
> I think that the problem of all is the Itag that is coupled to each class.
> This must be unique, since this Itag result in calling functions for
> __gc etc.
> Now with two bindings the same Itag is used for two different classes,
> and depending on what is registered first one of them works or not. With
> the same namespace into two bindings there is the problem with a table
> with the same name created i think.
> How to organize it better i do not see yet, it looks like the m_lastTag
> should move up a bit, to make it unique for all classes in all bindings??
Let me know if things work for you now, I'll try my best to try it
again in windows tomorrow. I just got a newer (but still old) machine
that seems a little flaky, but I managed to get VC Express 2005 on it.
Regards,
John Labenski
Makefile
Description: Binary data
wxluacan.rules.in
Description: Binary data
