FancySlider:
Filter:
FancySlider/Classes (extension) | GUI > Views

FancySlider
ExtensionExtension

An efficient Slider which substitutes a user view for a slider

Description

This should respond just like a slider. See the documentation for Slider. You can also customize the colors of the slider, and you can even customize the draw function. See drawFunc below. EZFancySlider will wrap a FancySlider just like EZSlider does with a Slider.

Class Methods

.new

Instance Methods

.drawFunc

A user definable function for drawing the widget. You can also add a Function in order to enhance the existing function:

The amount by which the value will changed when -increment or -decrement is called, or when related keys are pressed.

.sliderColor

.knobColor

.frameColor

.thumbSize

The size of the handle - its width or height, depending on -orientation.

Arguments:

An Integer amount of pixels.

.step

The amount by which the value will changed when -increment or -decrement is called, or when related keys are pressed.

Arguments:

A Float.

.value

Numerical value between 0 and 1, represented by the handle position within the groove.

Arguments:

A Float.

.valueAction

Sets -value and triggers -action.

Examples