Floating-point controls

A floating point control allows the user to specify variable settings, like a volume or color component. The standard control for manipulating floating-point data is the slider control shown below in Figure 43.


A slider control presents a track with a thumb that the user can drag with the mouse to continuously manipulate a floating-point value. Sliders can present an optional ruler with specified ruler coordinates, number formatting, text styles and layout.

A floating-point control state records a persistent floating-point state value, minimum and maximum bounds, and an increment interval. By default, the minimum value is zero and the maximum value is 1. If the interval is non-zero, the floating-point state value is constrained to integral multiples of the interval that fall within the minimum and maximum bounds. If the interval is zero (the default), the floating-point state value can have any floating-point value within the minimum and maximum bounds.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker