Derived from: BTextControl
Declared in: floatControl.h
Library: libBeGUI.so
The FloatControl Class is used to gather floating point numerical data.
Note: This control is not font sensitive. There is no internal test for numerical validity on the entry. I have a separate function which takes the text value, converts it to an floating point number, this does not test for range (see s2f()). This has been replaced by a much more functional FloatGadget (see FloatGadget).
This is the constructor. The parameter paramInitValue is the text (should be a floating point number) with which the gadget initially opens.
The parameter paramName is used to name the gadget--might be useful in scripts--it may be NULL.
The parameter paramLabel is used to label the gadget.
The parameter uparamMsg is the message value which this gadget will pass upon invocation (with a carriage return).
The parameter paramTextViewWidth is best left at 0 (zero). If a non-zero value is supplied it overrides the built-in balance between the label width, container width and overall gadget width. This might be desired if you want to create a table of string entries who's labels are of different lengths, but you still want all the entry containers to line up. You would pre-calculate the longest label, then pass this value in to all the gadgets' paramTextViewWidth.
The parameter paramLayoutMatrix is the LayoutMatrix to which this gadget will be attached.
The parameter paramMakeFocus has a default value of false, and only needs to be set to true when you wish this gadget to have focus immediately upon window creation.
This is the destructor. It does nothing.
This just overrides the BTextControl method to provide color control and to set focus, it calls the inherited version.
for version 1.4.2
Copyright © 1998-1999 Ed Musgrove Be Developer #2076. All rights reserved.
edgar@harbornet.com
emusgrov@linknet.kitsap.lib.wa.us
Last modified March 17, 1999.