Having such a simple wxFrame
:
<code>...
wxFrame* mainFrame = new wxFrame(NULL, wxID_ANY, "main frame", wxPoint(10, 20), wxSize(150, 100), wxICONIZE);
mainFrame->SetBackgroundColour(wxColor(80, 50, 100));
mainFrame->SetSize(wxSize(200, 50));
mainFrame->SetPosition(wxPoint(1400, 200));
...
</code>
<code>...
wxFrame* mainFrame = new wxFrame(NULL, wxID_ANY, "main frame", wxPoint(10, 20), wxSize(150, 100), wxICONIZE);
mainFrame->SetBackgroundColour(wxColor(80, 50, 100));
mainFrame->SetSize(wxSize(200, 50));
mainFrame->SetPosition(wxPoint(1400, 200));
...
</code>
...
wxFrame* mainFrame = new wxFrame(NULL, wxID_ANY, "main frame", wxPoint(10, 20), wxSize(150, 100), wxICONIZE);
mainFrame->SetBackgroundColour(wxColor(80, 50, 100));
mainFrame->SetSize(wxSize(200, 50));
mainFrame->SetPosition(wxPoint(1400, 200));
...
the SetPosition
method call does NOTHING! (the frame stays at position set in the constructor: wxPoint(10, 20)
).
When the wxICONIZE
flag is omitted the SetPosition
method do work as expected!
Why does setting the wxICONIZE
flag makes the SetPosition
NOT working?
12