when gadget is detached from window
| 2479 | |
| 2480 | // when gadget is detached from window |
| 2481 | void newuiSlider::OnDetachFromWindow() { |
| 2482 | if (m_plus_btn.IsCreated()) { |
| 2483 | DetachSlaveGadget(&m_plus_btn); |
| 2484 | m_plus_btn.Destroy(); |
| 2485 | } |
| 2486 | if (m_minus_btn.IsCreated()) { |
| 2487 | DetachSlaveGadget(&m_minus_btn); |
| 2488 | m_minus_btn.Destroy(); |
| 2489 | } |
| 2490 | } |
| 2491 | |
| 2492 | void newuiSlider::SetUnits(tSliderSettings *settings) { |
| 2493 | if (settings == NULL) { |
no test coverage detected