Derived from: BTextControl
Declared in: floatGadget.h
Library: libBeGUI.so
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 next parameter, paramText is the text (should be a floating point number) with which the gadget initially opens (it may be NULL). The next parameter, ui32paramMsg is the message value which this gadget will pass upon invocation (with a carriage return).
The next 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 next parameter, lpparamLayoutMatrix is the LayoutMatrix to which this gadget will be attached.
The next 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 1.0.1
Copyright © 1998-1999 Ed Musgrove Be Developer #2076. All rights reserved.
edgar@harbornet.com
emusgrov@linknet.kitsap.lib.wa.us
Last modified January 19, 1999.