User forums > Help
[wxSmith] assert failed when shaped and proportion != 0
(1/1)
Freem:
This is not a question, as I already have resolved the problem, but simply a feature request:
could it be possible to make wxSmith to disable (and remove related code) the proportion box when shaped is checked?
WxWidgets assertion checking system is not really nice (it does not say which control have the problem) and so avoiding to generate problems with the RAD would be nice.
Note:
I do not think the following remark is important enough for a new thread, so... by default, C::B generate this
--- Code: --- //(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
if ( wxsOK )
{
singleAppDialog Dlg(0);
SetTopWindow(&Dlg);
Dlg.ShowModal();
wxsOK = false;
}
//*)
return wxsOK;
--- End code ---
as OnInit() implementation. Why set wxsOK at false by default?
MortenMacFly:
--- Quote from: Freem on August 27, 2012, 11:00:05 pm ---as OnInit() implementation. Why set wxsOK at false by default?
--- End quote ---
From th wxWidgets docs:
--- Quote ---wxApp::OnInit:
Return true to continue processing, false to exit the application immediately.
--- End quote ---
Ad the main dialog in your sample was shown modal and returned, there is no need to continue processing. Therefore it returns false here. Feel free to change the logic if you need a different behaviour.
Navigation
[0] Message Index
Go to full version