|
Formatted Text Field |
Top Previous Next |
Here is what a formatted text field looks like:
Common Properties Width, Height, Bindings, Enabled, Visible, Foreground, Background, Opaque, Border, Font, Tooltip Custom Properties Text (Default Property) Default text in the text field. Property name: text Property type: String Editable This flag indicates that text in the text field can be changed. The primary difference between non-editable and non-enabled components is that text in a non-editable component is not grayed out and may be selected using the mouse. Alignment Horizontal alignment of text within label display area. Possible values:
Property name: horizontalAlignment Property type: Integer Validation Mode Select regular expression or mask field validation. Possible values:
Property name: validationMode Property type: Integer
Mask Mask validation pattern. This parameter specifies the set of characters that can be typed at each position in the field. The following characters can be specified:
Property name: mask Property type: String Valid Characters A list of characters that will be valid in any position of final value. Thus, if Valid Characters is non-null, symbol will be valid if it appears inside Valid Characters string and matches the mask. Property name: validCharacters Property type: String Invalid Characters A list of characters that will not be valid in any position of final value independently to the Mask. Property name: invalidCharacters Property type: String Placeholder The string to use if the value does not completely fill in the mask. A NULL value implies the Placeholder Character should be used. When initially formatting a value if the length of the string is less than the length of the mask, two things can happen. Either the Placeholder string will be used, or the Placeholder Character will be used. Precedence is given to the placeholder string. The placeholder String is only used on the initial format, on subsequent formats only the placeholder character will be used. Property name: placeholder Property type: String Placeholder Character The character to use in place of characters that are not present in the value, i.e. the user must fill them in. The default value is a space. This is only applicable if the Placeholder string has not been specified, or does not completely fill in the mask. Property name: placeholderCharacter Property type: String Regular Expression The regular expression pattern to use for value validation if Validation Mode is set to Regular Expression. Property name: regEx Property type: String Overwrites Text Configures the behavior when inserting characters. If this parameter is true, new characters overwrite existing characters in the field. Property name: overwritesText Property type: Boolean Focus Lost Behaviour Controls what happens when formatted text field loses focus.
Property name: focusLostBehaviour Property type: Boolean Common Events Hidden, Shown, Moved, Resized, Mouse Clicked, Mouse Pressed, Mouse Released, Mouse Entered, Mouse Exited, Mouse Moved, Mouse Wheel Moved, Key Typed, Key Pressed, Key Released, Focus Gained, Focus Lost |