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

Knob.mui

MUIC_Knob

Superclass

Numeric.mui

Description

Show Numeric Value as a marker on a rotary control. There are no
class-specific public attributes or methods. ValueToScale maps the
current value to zero through 270 degrees; Numeric_Reverse reverses this
mapping. The artwork is a built-in 25 by 25 pixel pattern. A framed
label area is painted, but no numeric text is drawn there;
Numeric_Format does not change that rendering.
Construction prepends FillArea FALSE. Setup calls Numeric then registers
a separate mouse handler; Cleanup removes it before Numeric Cleanup. No
separately allocated knob image or native gadget is owned.

Methods

AskMinMax adds 33 pixels in width and 47 pixels in height to all
superclass size fields and returns TRUE. Full Draw paints frame,
background and marker; update Draw erases the old marker and draws the
new one. Draw returns FALSE without full/update flags, otherwise TRUE;
drawing statuses are ignored.
SELECTDOWN inside the object enables mouse-move events. Any other button
code disables them. A delivered mouse move calculates an absolute angle
from the pointer around the knob center, clamps it to 0..270 and sets
Numeric_Value through ScaleToValue. It is not a relative drag
accumulator. The handler returns zero and does not delegate; Numeric
separately handles raw keys. There is no local pressed/drag flag check
on mouse moves, so callers must preserve the normal event-registration
lifecycle.

Notes

Use valid Numeric bounds and normal Setup/Show/Hide/Cleanup ordering.
Hit testing uses current geometry and WORD intermediates. Formatting,
export/import and numeric methods remain inherited even though the class
does not draw a value string. Reverse changes alone inherit Numeric's
lack of an automatic redraw request.