Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
WXSmith : WxFrame/wxDocParentFrame and Document/view architecture
Feneck91:
Hi !
I'm trying to use WxSmith to make frame, but the main frame is not a wxFrame object but wxDocParentFrame.
The code that is generate is :
--- Code: --- //(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
wxXmlResource::Get()->InitAllHandlers();
wxsOK = wxsOK && wxXmlResource::Get()->Load(_T("TTGestMainFrame.xrc"));
if ( wxsOK )
{
TTGestMainFrame* Frame = new TTGestMainFrame(0);
Frame->Show();
SetTopWindow(Frame);
}
//*)
--- End code ---
But this code is not compatible with wxDocParentFrame, it should be :
--- Code: ---wxDocParentFramepFrame = new wxDocParentFrame(&m_DocManager, NULL);
--- End code ---
Any idea to make wxSmith work with this kind of window ?
Strange, I see few peaple that work with document/view architecture.
Alexis:
--- Quote ---Strange, I see few peaple that work with document/view architecture.
--- End quote ---
I do ! At least, we are two! :D
I wrote a post for the same thing some time ago. Here is the thread :
http://forums.codeblocks.org/index.php/topic,8320.0.html
Regards,
lexis:
I am third. And I have the same problem...
byo:
Hmm, looks like I should look into this problem more closely ;)
Now the quick workaround is:
* Remove the "//(*AppInitialize" and "//*)" lines from the application code (any commenting won't work ;) ) - this will prevent wxSmith from future modifications of that part but will also turn off the possibility to adjust the application in the wxSmith->Configure... menu
* Adjust the code which was previously between removed lines to make the app compile
Regards
BYO
lexis:
Yes, I had done so, but lost a control of wxSmith over my project resources... (if I right understand) :-(
It will be great to adjust wxSmith to work with doc/view!
Navigation
[0] Message Index
[#] Next page
Go to full version