Author Topic: [wxSmith] assert failed when shaped and proportion != 0  (Read 5003 times)

Offline Freem

  • Almost regular
  • **
  • Posts: 219
[wxSmith] assert failed when shaped and proportion != 0
« 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?
« Last Edit: August 27, 2012, 11:36:34 pm by Freem »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: [wxSmith] assert failed when shaped and proportion != 0
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ