Derived from: BTextControl
Declared in: floatGadget.h
Library: not currently in a library--someday I hope!
The FloatGadget Class is used to gather floating point numerical data.
This is the constructor. The first parameter, cparamLabel is used to label the gadget. The second parameter, paramText is the text (should be a floating point number) with which the gadget initially opens (it may be NULL). The third parameter, ui32paramMsg is the message value which this gadget will pass upon invocation (with a carriage return). The fourth parameter, ui32paramMode is the mode. The fifth parameter, ui32paramFlags are the flags. These values are all passed directly on to the BTextControl base class.
The sixth parameter, fparamPixWidth 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' fparamPixWidth.
The seventh parameter, lpparamLayoutMatrix is the LayoutMatrix to which this gadget will be attached.
The eighth parameter, bparamMakeFocus 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 0.4.2
Copyright © 1998 Ed Musgrove Be Developer #2076. All rights reserved.
edgar@harbornet.com
emusgrov@linknet.kitsap.lib.wa.us
Last modified November 25, 1998.