News:

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

Main Menu

wxSmith bug: can't apply param?

Started by Loaden, February 05, 2009, 08:07:25 AM

Previous topic - Next topic

Loaden

Is wxSmith bug?


[attachment deleted by admin]

Jenna

Quote from: Loaden on February 05, 2009, 08:07:25 AM
Is wxSmith bug?


No.

Create is inherited from wxFrame (parent-class).

QuotewxFrame::Create
bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame")

Used in two-step frame construction. See wxFrame::wxFrame for further details.
Quote from wxWidgets-documentation.

Loaden

But have a question: why to set this option ? how to use? it's can't work!
like this code:bool _App::OnInit()
{
    NewFrame* frame = new NewFrame(0L, wxID_ANY, wxPoint(50, 30), wxSize(700, 500), 0);
    frame->SetIcon(wxICON(aaaa)); // To Set App Icon
    frame->Show();

    return true;
}

Jenna

Quote from: Loaden on February 05, 2009, 10:38:31 AM
But have a question: why to set this option ? how to use? it's can't work!
like this code:bool _App::OnInit()
{
    NewFrame* frame = new NewFrame(0L, wxID_ANY, wxPoint(50, 30), wxSize(700, 500), 0);
    frame->SetIcon(wxICON(aaaa)); // To Set App Icon
    frame->Show();

    return true;
}


You are partly right.
In wxSmith you have to check "Use xxx from argument", otherwise default values should be used.

That seems to work correctly for parent and id, but not for position and size.

byo

There's some bug in wxSmith I haven't invcestigated so far which causes the "Use xxx from argument" options to be overwritten somehow.  Sorry for the inconvenience. I''l try ti fix this asap.

Regards
   BYO