void Create(PixelSize size) { SingleWindow::Create(_T("Test"), size); WindowStyle style; style.Disable(); const PixelRect rc = GetClientRect(); close_button.Create(*this, _T("Close"), CLOSE, GetButtonRect(rc)); test_window.Create(*this, rc, style); }
void HorizonWidget::Prepare(ContainerWindow &parent, const PixelRect &rc) { const Look &look = UIGlobals::GetLook(); WindowStyle style; style.Hide(); style.Disable(); HorizonWindow *w = new HorizonWindow(look.horizon); w->Create(parent, rc, style); SetWindow(w); }
void CrossSectionWidget::Prepare(ContainerWindow &parent, const PixelRect &rc) { const Look &look = UIGlobals::GetLook(); WindowStyle style; style.Hide(); style.Disable(); CrossSectionWindow *w = new CrossSectionWindow(look.cross_section, look.map.airspace, look.chart); w->SetAirspaces(&airspace_database); w->SetTerrain(terrain); w->Create(parent, rc, style); SetWindow(w); }