wxSashLayoutWindow 5 sashes
Posted: Wed Feb 28, 2018 3:45 pm
I have a MDI frame with 2 wxSashLayoutWindow shown in red and blue in the attached image
done with the code below
the red is aligned to the left and the blue to bottom
I want to do a new green in the image below the red and a new yellow at right of the red and on top of the blue
thanks
[img] [/img]
this is the code for the red and blue
done with the code below
the red is aligned to the left and the blue to bottom
I want to do a new green in the image below the red and a new yellow at right of the red and on top of the blue
thanks
[img] [/img]
this is the code for the red and blue
Code: Select all
int w, h;
GetClientSize(&w, &h);
wxSashInput* ws;
ws = new wxSashInput(this, ID_WINDOW_SASH);
ws->SetDefaultSize(wxSize(850, h));
ws->SetOrientation(wxLAYOUT_VERTICAL);
ws->SetAlignment(wxLAYOUT_LEFT);
ws->SetSashVisible(wxSASH_RIGHT, true);
ws->SetExtraBorderSize(10);
ws->SetMinimumSizeX(300);
ws->SetBackgroundColour(*wxRED);
m_sash_connect = ws;
wxSashLayoutWindow* win;
win = new wxSashLayoutWindow(this, ID_WINDOW_LOG, wxDefaultPosition, wxDefaultSize,
wxNO_BORDER | wxSW_3D | wxCLIP_CHILDREN);
win->SetDefaultSize(wxSize(w, 100));
win->SetOrientation(wxLAYOUT_HORIZONTAL);
win->SetAlignment(wxLAYOUT_BOTTOM);
win->SetSashVisible(wxSASH_TOP, true);
win->SetExtraBorderSize(10);
win->SetMinimumSizeX(100);
win->SetBackgroundColour(*wxBLUE);
m_sash_log = win;