Slider pop-up

The Slider pop-up component can be used for situations where a value is changed with a slider, for example when changing zoom or volume level. The common Slider pop-up component has a set of elements from which to select and modify the slider in question (for example, value ranges, whether to have current value as text included, or additional icons related to the slider).

For application-specific slider pop-up the application may define ways to open the pop-up. For common pop-up such as Volume Control, ways to open the pop-up are defined. The Slider pop-up has default time-out after which it disappears, but this time-out can be overridden by the application if there is a good reason.

Instead of using the pop-up, the application may define the slider to be always visible (fixed in the layout). If slider is fixed in the layout, the pop-up is not shown.

The orientation of the slider pop-up can be either horizontal or vertical. The orientation and location are always the same across applications, unless application uses the slider as fixed in the layout. The direction of growth/increase in the slider value is always either up or right depending on the Slider orientation in the UI.

Using slider pop-ups in applications

The API to use for the slider pop-up is the Slider API.

To use a slider pop-up in your application, create an instance of the class CAknSlider.

Use the method CAknSlider::SetValueL() to set the slider handle's position. To set the range of acceptable values, use the method CAknSlider::SetRange(). To set the step size, use the method CAknSlider::SetStepSize().

To set the texts for the minimum and maximum values, use the methods CAknSlider::SetMinimumTextL() and CAknSlider::SetMaximumTextL().

To enable drag events in the slider, use the method CAknSlider::EnableDrag().

To use a custom graphic in your slider component, use the method CAknSlider::SetGraphics().