When I am designing my GUI of my plug-in, I am using the wxSmith to do this.
My dialog has a wxBoxSizer, which in turn contains a wxStaticBoxSizer.
My goals is to change the label at runtime of the staticBoxSizer (?if this is possible?), I first started out with constructs like :
m_Comments = XRCCTRL(*this, "ID_TEXTCTRL_COMMENTS", wxTextCtrl)->GetValue();
This one is for a textctrl, but when I try this for the sizer it fails.
So , let's try to make it a member of the dialog and see what we can do then.
BUT when in wxSmith I make my wxBoxSizer (or my wxStaticBoxSizer) a member, wxSmith creates code in the constructor of the dialog like this :
BoxSizer1 = XRCCTRL(*this,"",wxBoxSizer);
But that does not compile, I get the following error on that line :
Ccdialog.cpp:15: error: invalid static_cast from type `wxWindow*' to type `const wxBoxSizer*'
Bug in wxSmith or am I doing something wrong ?
I know that wxSizer does not derive from wxWindow, so maybe the whole construct created is illegal ?
Any ideas welcome,
many thanks,
Lieven