Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmith development

<< < (28/34) > >>

rickg22:
Hmmmmmmmm.... it seems very much like an uninitialized pointer... have you checked for "this" being nulll and such?

byo:

--- Quote from: rickg22 on October 07, 2005, 05:37:23 pm ---Hmmmmmmmm.... it seems very much like an uninitialized pointer... have you checked for "this" being nulll and such?

--- End quote ---

Whoops :oops:
I had lot of work to do this weekend and I must have missed something important  :(

EDIT: Bugs fixed :)

jmccay:
I added a XRC Dialog, and here is the code produced.


--- Code: --- //(*Initialize(XRCtest)
    wxXmlResource::Get()->LoadDialog(this,parent,_T("XRCtest"));
    FlexGridSizer1 = XRCCTRL(*this,"",wxFlexGridSizer);
    Notebook1 = XRCCTRL(*this,"ID_NOTEBOOK1",wxNotebook);
    Panel3 = XRCCTRL(*this,"ID_PANEL3",wxPanel);
    Panel1 = XRCCTRL(*this,"ID_PANEL1",wxPanel);
    //*)

--- End code ---

Here is the error produced.  This is a standard wxWidgets DLL app with RC2 & wxWidgets 2.6.x & winxp:


--- Code: ---xrctest.cpp:12: error: invalid static_cast from type `wxWindow*' to type `const wxFlexGridSizer*'
Process terminated with status 1 (0 minutes, 1 seconds)
--- End code ---

Any idea what can cause this?  BTW good job on the wxSmith.  It has some issues with repainting when dragging.  It changes the area to black.  Still good job.

jmccay

byo:

--- Quote from: jmccay on October 27, 2005, 03:22:20 am ---I added a XRC Dialog, and here is the code produced.


--- Code: --- //(*Initialize(XRCtest)
    wxXmlResource::Get()->LoadDialog(this,parent,_T("XRCtest"));
    FlexGridSizer1 = XRCCTRL(*this,"",wxFlexGridSizer);
    Notebook1 = XRCCTRL(*this,"ID_NOTEBOOK1",wxNotebook);
    Panel3 = XRCCTRL(*this,"ID_PANEL3",wxPanel);
    Panel1 = XRCCTRL(*this,"ID_PANEL1",wxPanel);
    //*)

--- End code ---

Here is the error produced.  This is a standard wxWidgets DLL app with RC2 & wxWidgets 2.6.x & winxp:


--- Code: ---xrctest.cpp:12: error: invalid static_cast from type `wxWindow*' to type `const wxFlexGridSizer*'
Process terminated with status 1 (0 minutes, 1 seconds)
--- End code ---

Any idea what can cause this?  BTW good job on the wxSmith.  It has some issues with repainting when dragging.  It changes the area to black.  Still good job.

jmccay

--- End quote ---

Yop, I know this bug, Please select FlexGridSizer and unselect "Is Member" property and it should work fine :) I forgot to remove this bug before RC2  :oops:

jmccay:
I have created a page on the wiki under tutorials called "WxSmith Tutorial & Pointers".  I only filled in a pointer, but it's a good starting place for tutorial on using wxSmith.

jmccay

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version