void ButtonsExample::ButtonToggle() { // When the ToggleButton is active hide the window's titlebar. if( m_toggle_button->IsActive() ) { m_window->SetStyle( m_window->GetStyle() & ~sfg::Window::TITLEBAR ); } else { m_window->SetStyle( m_window->GetStyle() | sfg::Window::TITLEBAR ); } }
void ButtonsExample::ButtonCheck() { // When the CheckButton is active hide the window's background. if( m_check_button->IsActive() ) { m_window->SetStyle( m_window->GetStyle() & ~sfg::Window::BACKGROUND ); } else { m_window->SetStyle( m_window->GetStyle() | sfg::Window::BACKGROUND ); } }
void SampleApp::OnToggleTitlebarClick() { m_wndmain->SetStyle( m_wndmain->GetStyle() ^ sfg::Window::TITLEBAR ); }