| 1450 | } |
| 1451 | |
| 1452 | wxString LWSlider::GetStringValue() const |
| 1453 | { |
| 1454 | switch(mStyle) |
| 1455 | { |
| 1456 | case FRAC_SLIDER: |
| 1457 | return wxString::Format(wxT("%.0f"), mCurrentValue * 100); |
| 1458 | case PERCENT_SLIDER: |
| 1459 | return wxString::Format(wxT("%.0f%%"), mCurrentValue * 100.0f); |
| 1460 | case DB_SLIDER: |
| 1461 | return wxString::Format(wxT("%.0f"), mCurrentValue); |
| 1462 | case PAN_SLIDER: |
| 1463 | return wxString::Format(wxT("%.0f"), mCurrentValue * 100); |
| 1464 | case SPEED_SLIDER: |
| 1465 | return wxString::Format(wxT("%.0f"), mCurrentValue * 100 ); |
| 1466 | case VEL_SLIDER: |
| 1467 | return wxString::Format(wxT("%.0f"), mCurrentValue); |
| 1468 | default: |
| 1469 | return {}; |
| 1470 | } |
| 1471 | } |
| 1472 | |
| 1473 | void LWSlider::OnKillFocus() |
| 1474 | { |