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

Numericbutton.mui

MUIC_Numericbutton

Superclass

Numeric.mui

Description

Display Numeric Value as a formatted button and edit it through a
temporary horizontal popup. There are no class-specific public
attributes or methods. Use inherited Numeric bounds, Value, Format and
conversion methods. Construction prepends ButtonBack and Button frame;
later caller tags can override them.
The class owns a setup-time background image and any open native popup
window. It borrows strings returned by Numeric_Stringify only while
measuring/drawing. Complete Hide before Cleanup and disposal: Hide
closes an open popup, while Cleanup only releases the image and event
handler. There is no local disposal override that closes a surviving
popup.

Methods

Setup calls Numeric, prepares the background, registers a separate
mouse-button handler and marks size measurement dirty. It returns the
superclass result without reporting image/handler failure. Show shows
the prepared image and returns the superclass result. Cleanup removes
the mouse handler and cleans the image before Numeric Cleanup.
AskMinMax formats every integer from Min through Max when dirty and uses
the widest text and font height. There is no range-size cap and
CheckAllSizes does not control the loop. A large range can block the
application; LONG_MAX can overflow the loop increment. Changes to Min,
Max or Format pointer mark measurement dirty before Numeric's
parent-relayout request. In-place string edits are not detected.
SELECTDOWN inside a drawable button opens the popup if screen geometry
and OpenWindowTags permit. Popup width derives from numeric span and is
capped to screen width. Mouse movement redraws a tentative value without
setting Numeric_Value. SELECTUP closes and commits it with normal
notifications. Other non-SELECTDOWN button events close without commit;
Hide also cancels. HandleEvent always returns zero and does not delegate
to Numeric, whose separate raw-key handler remains installed.

Notes

Popup drawing temporarily redirects the object's RastPort and, for the
background image, its Area box, restoring both afterward. Callbacks and
drawing require a live connected application/window and stable object
lifetime. No public popup object or ownership transfer is exposed.
Bounds, conversion arithmetic and Stringify validity retain Numeric's
limitations. AskMinMax and Draw do not propagate superclass failure;
Draw returns FALSE without full/update flags, otherwise TRUE.