Code::Blocks Forums

User forums => Help => Topic started by: Freem on August 27, 2012, 11:00:05 pm

Title: [wxSmith] assert failed when shaped and proportion != 0
Post by: Freem on August 27, 2012, 11:00:05 pm
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;
as OnInit() implementation. Why set wxsOK at false by default?
Title: Re: [wxSmith] assert failed when shaped and proportion != 0
Post by: MortenMacFly on August 28, 2012, 06:35:01 am
as OnInit() implementation. Why set wxsOK at false by default?
From th wxWidgets docs:
Quote
wxApp::OnInit:
 Return true to continue processing, false to exit the application immediately.
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.