void wxRibbonPanel::OnSize(wxSizeEvent& evt) { if(GetAutoLayout()) Layout(); evt.Skip(); }
void wxPanel::OnSize(wxSizeEvent& event) { if (GetAutoLayout()) Layout(); #if wxUSE_CONSTRAINTS #if defined(__WXPM__) && 0 else { // Need to properly move child windows under OS/2 PSWP pWinSwp = GetSwp(); if (pWinSwp->cx == 0 && pWinSwp->cy == 0 && pWinSwp->fl == 0) { // Uninitialized ::WinQueryWindowPos(GetHWND(), pWinSwp); } else { SWP vSwp; int nYDiff; ::WinQueryWindowPos(GetHWND(), &vSwp); nYDiff = pWinSwp->cy - vSwp.cy; MoveChildren(nYDiff); pWinSwp->cx = vSwp.cx; pWinSwp->cy = vSwp.cy; } } #endif #endif // wxUSE_CONSTRAINTS event.Skip(); }
void wxScrolledWindow::DoSetVirtualSize( int x, int y ) { wxPanel::DoSetVirtualSize( x, y ); AdjustScrollbars(); if (GetAutoLayout()) Layout(); }
void dlgSchema::OnChangeSize(wxSizeEvent &ev) { SetPrivilegesLayout(); if (GetAutoLayout()) { Layout(); } }
void dlgTablespace::OnChangeSize(wxSizeEvent &ev) { SetPrivilegesLayout(); if (GetAutoLayout()) { Layout(); } }
void dlgSchedule::OnChangeSize(wxSizeEvent &ev) { lstExceptions->SetSize(wxDefaultCoord, wxDefaultCoord, ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 350); if (GetAutoLayout()) { Layout(); } }
void dlgColumn::OnChangeSize(wxSizeEvent &ev) { securityPage->lbPrivileges->SetSize(wxDefaultCoord, wxDefaultCoord, ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 550); if (GetAutoLayout()) { Layout(); } }
void dlgIndex::OnChangeSize(wxSizeEvent &ev) { lstColumns->SetSize(wxDefaultCoord, wxDefaultCoord, ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 700); if (GetAutoLayout()) { Layout(); } }
void dlgRole::OnChangeSize(wxSizeEvent &ev) { lstVariables->SetSize(wxDefaultCoord, wxDefaultCoord, ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 350); if (GetAutoLayout()) { Layout(); } }
void wxToolBar::OnSize ( wxSizeEvent& WXUNUSED(rEvent) ) { #if wxUSE_CONSTRAINTS if (GetAutoLayout()) Layout(); #endif } // end of wxToolBar::OnSize
void dlgTextSearchDictionary::OnChangeSize(wxSizeEvent &ev) { lstOptions->SetSize(wxDefaultCoord, wxDefaultCoord, ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 350); if (GetAutoLayout()) { Layout(); } }
void dlgEditGridOptions::OnChangeSize(wxSizeEvent &ev) { if (lstSortCols) lstSortCols->SetSize(wxDefaultCoord, wxDefaultCoord, ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 350); if (GetAutoLayout()) { Layout(); } }
void dlgJob::OnChangeSize(wxSizeEvent &ev) { lstSteps->SetSize(wxDefaultCoord, wxDefaultCoord, ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 350); lstSchedules->SetSize(wxDefaultCoord, wxDefaultCoord, ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 350); if (GetAutoLayout()) { Layout(); } }
// default resizing behaviour - if only ONE subwindow, resize to fill the // whole client area void wxTopLevelWindowBase::DoLayout() { // if we're using constraints or sizers - do use them if ( GetAutoLayout() ) { Layout(); } else { // do we have _exactly_ one child? wxWindow *child = (wxWindow *)NULL; for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst(); node; node = node->GetNext() ) { wxWindow *win = node->GetData(); // exclude top level and managed windows (status bar isn't // currently in the children list except under wxMac anyhow, but // it makes no harm to test for it) if ( !win->IsTopLevel() && !IsOneOfBars(win) ) { if ( child ) { return; // it's our second subwindow - nothing to do } child = win; } } // do we have any children at all? if ( child ) { // exactly one child - set it's size to fill the whole frame int clientW, clientH; DoGetClientSize(&clientW, &clientH); // for whatever reasons, wxGTK wants to have a small offset - it // probably looks better with it? #ifdef __WXGTK__ static const int ofs = 1; #else static const int ofs = 0; #endif child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs); } } }
void wxMDIParentFrame::OnSize(wxSizeEvent& WXUNUSED(event)) { #if wxUSE_CONSTRAINTS if (GetAutoLayout()) Layout(); #endif int x = 0; int y = 0; int width, height; GetClientSize(&width, &height); if ( GetClientWindow() ) GetClientWindow()->SetSize(x, y, width, height); }
// default resizing behaviour - if only ONE subwindow, resize to fill the // whole client area void wxTopLevelWindowBase::DoLayout() { // if we're using constraints or sizers - do use them if ( GetAutoLayout() ) { Layout(); } else { // do we have _exactly_ one child? wxWindow *child = NULL; for ( wxWindowList::compatibility_iterator node = GetChildren().GetFirst(); node; node = node->GetNext() ) { wxWindow *win = node->GetData(); // exclude top level and managed windows (status bar isn't // currently in the children list except under wxMac anyhow, but // it makes no harm to test for it) if ( !win->IsTopLevel() && !IsOneOfBars(win) ) { if ( child ) { return; // it's our second subwindow - nothing to do } child = win; } } // do we have any children at all? if ( child && child->IsShown() ) { // exactly one child - set it's size to fill the whole frame int clientW, clientH; DoGetClientSize(&clientW, &clientH); child->SetSize(0, 0, clientW, clientH); } } }
void wxPickerBase::OnSize(wxSizeEvent &event) { if (GetAutoLayout()) Layout(); event.Skip(); }
/// Lay out the controls void wxRichTextStyleListCtrl::OnSize(wxSizeEvent& WXUNUSED(event)) { if (GetAutoLayout()) Layout(); }