News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[wxSmith] assert failed when shaped and proportion != 0

Started by Freem, August 27, 2012, 11:00:05 PM

Previous topic - Next topic

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

    //(*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?

MortenMacFly

Quote from: Freem on August 27, 2012, 11:00:05 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]