List Info

Thread: How to use wxGLCanvas with XRC?




How to use wxGLCanvas with XRC?
user name
2006-09-06 10:19:12

Hi, I tried to use wxGLCanvas with XRC in FedoraCore 5(wxGTK2.6).
So I make a simple application and get error.
1. Put controls.(dialog, box size, wxGLcanvas)
2. Generate C++ code and XRC resource,(app.cc, app.h, dlg,cc dlg,h foo.xrc)
3. Add code for create dialog instance. (app.cc)
4. Compile (original makefile).
5. Excute and get error
"No handler found for XML node 'object', class 'wxGLCanvas'!"
"Error in resource."

Other controls get no error (panel, button, checkbox, etc..).
I found example code without XRC, and that code get no error.
So I think my environment has no problem.
My code(with XRC) has problem, maybe I misunderstand wxWidgets and DialogBlocks.
How to use wxGLCanvas with XRC?

__._,_.___
.

__,_._,___
How to use wxGLCanvas with XRC?
user name
2006-09-07 07:43:07

ozugi wrote:
> Hi, I tried to use wxGLCanvas with XRC in FedoraCore 5(wxGTK2.6).
> So I make a simple application and get error.
> 1. Put controls.(dialog, box size, wxGLcanvas)
> 2. Generate C++ code and XRC resource,(app.cc, app.h, dlg,cc dlg,h foo.xrc)
> 3. Add code for create dialog instance. (app.cc)
> 4. Compile (original makefile).
> 5. Excute and get error
>; "No handler found for XML node 'object', class 'wxGLCanvas'!"
> "Error in resource."
>
> Other controls get no error (panel, button, checkbox, etc..).
> I found example code without XRC, and that code get no error.
> So I think my environment has no problem.
> My code(with XRC) has problem, maybe I misunderstand wxWidgets and DialogBlocks.
> How to use wxGLCanvas with XRC?
>
Unfortunately there is no XRC handler for wxGLCanvas in wxWidgets. You
could either define your own, or generate for C++ for this dialog. In
Settings/XRC Generation, pull down the "Generation for this element"
menu and select Generate for C++.

Hope that helps.

Regards,

Julian

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )