Derived from: BTextControl
Declared in: uInt32Control.h
Library: libBeGUI.so
The UInt32Control Class is used to gather simple unsigned integer 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 integer, then test this for range (see s2uint32()). This has been replaced by a much more functional UInt32Gadget (see UInt32Gadget).
This is the constructor. The parameter uparamInitValue is the text (it should be an unsigned integer, in the 32 bit range: 0 to 4294967295l) with which the gadget initially opens.
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 paramPixWidth 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' paramPixWidth.
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.