<--- Cannot embed stylesheet: [Errno 2] No such file or directory: '../../../../aros.css' --->

Slider.mui

MUIA_Slider_Horiz

Function

Select horizontal orientation when true; vertical otherwise. Default
TRUE.

Inputs

BOOL; initialize, set and get.

Notes

Getter normalizes to TRUE/FALSE. Runtime setting immediately
recalculates knob dimensions using font and application preferences,
invalidates caches and requests a full redraw. Perform it with valid
setup/connection state; it does not itself request parent relayout.
Construction stores the flag without that runtime calculation.

MUIA_Slider_Level

Function

Obsolete name with the same attribute ID as MUIA_Numeric_Value.

Inputs

Available in the header only when MUI_OBSOLETE is enabled. Same type and
access as Numeric_Value.

Notes

Use MUIA_Numeric_Value in new code. There is no separate Slider state or
conversion for this alias; inherited Numeric behavior and limitations
apply.

MUIA_Slider_Max

Function

Obsolete name with the same attribute ID as MUIA_Numeric_Max.

Inputs

Available in the header only when MUI_OBSOLETE is enabled. Same type and
access as Numeric_Max.

Notes

Use MUIA_Numeric_Max in new code. There is no separate Slider state or
conversion for this alias; inherited Numeric behavior and limitations
apply.

MUIA_Slider_Min

Function

Obsolete name with the same attribute ID as MUIA_Numeric_Min.

Inputs

Available in the header only when MUI_OBSOLETE is enabled. Same type and
access as Numeric_Min.

Notes

Use MUIA_Numeric_Min in new code. There is no separate Slider state or
conversion for this alias; inherited Numeric behavior and limitations
apply.

MUIA_Slider_Quiet

Function

Suppress drawing the text inside the knob. Default FALSE.

Inputs

BOOL; initialize only. No local getter or runtime setter.

Notes

Value changes and notifications continue normally. Knob dimensions are
still calculated by formatting the selected value range. Quiet does not
mean release-only updates or notification suppression.

MUIA_Slider_Reverse

Function

Obsolete name with the same attribute ID as MUIA_Numeric_Reverse.

Inputs

Available in the header only when MUI_OBSOLETE is enabled. Same type and
access as Numeric_Reverse.

Notes

Use MUIA_Numeric_Reverse in new code. There is no separate Slider state
or conversion for this alias; inherited Numeric behavior and limitations
apply.

MUIC_Slider

Superclass

Numeric.mui

Description

Display Numeric Value with a custom drawn knob and optional text.
Default orientation is horizontal; Quiet defaults FALSE. Construction
prepends SliderBack, Knob font and Slider frame before caller tags. This
class is a Numeric subclass and does not own a Prop child or native
proportional gadget.
Setup calls Numeric, prepares a knob background image and calculates
knob dimensions, then registers a mouse handler. Cleanup releases the
background and removes the handler before Numeric Cleanup. Show shows
the prepared image and returns one regardless of superclass result; Hide
hides it and invalidates the cached position. Dispose frees owned copied
display text, then Numeric. Complete Hide/Cleanup first.

Methods

Knob sizing calls Stringify for every value from Min to Max. If the
computed span exceeds MUI_MAXMAX it instead scans zero through
MUI_MAXMAX, which can miss wide strings for the real range.
CheckAllSizes is ignored by this scan. Signed span/loop arithmetic is
unchecked; a maximum at LONG_MAX can overflow the loop increment.
Draw maps Value to pixel offset and caches both offset and a copied
Stringify result. Text-copy allocation is unchecked before strlen. Setup
does not turn knob-background preparation failure into FALSE. Mouse
handling requires geometry established by drawing and a nonnegative
travel length.
A non-shift click on the knob starts dragging and sets Pressed. A
background click changes Value by one with Reverse honored. A later
non-SELECTDOWN button event ends a pressed drag. Mouse moves map offset
through ScaleToValue on a zero-based scale and use the Numeric setter
directly to preserve pixel offset. Notifications remain enabled even in
Quiet mode.

Notes

Slider HandleEvent handles mouse events only and does not delegate to
Numeric. Numeric Setup separately installs its raw-key handler with the
Numeric class. Keep normal event registration intact; direct calls to
Slider HandleEvent are not a substitute for that handler.
Value/Min/Max/Format setters invalidate cached position/text, but only
orientation setting explicitly recalculates knob dimensions after Setup.
Thus live format/bound changes can leave stale measured knob size
despite Numeric requesting parent relayout. Reverse alone does not
invalidate the position cache. Quiet hides text only; it does not reduce
the knob-size scan or suppress notifications.