WinEditCtrl
(Engine-Level Function)
Description: | Windows native edit control. This function returns a value indicating the status of an edit field. |
Returns: | Numeric |
Usage: | Steady State only. |
Function Groups: | Graphics |
Related to: | DropList | Edit | WinComboCtrl | ZEditField |
Format: | WinEditCtrl(X0, Y0, X1, Y1, Style, Data [, FocusID, MaxCharacters, Font, BackgroundColor, ForegroundColor, PlaceholderText]) |
Parameters: |
X0, Y0, X1, Y1 | ||||||||||||||||||||||||||||||||||||||||
Required. Coordinates. | ||||||||||||||||||||||||||||||||||||||||
Style | ||||||||||||||||||||||||||||||||||||||||
Optional. Default 0. Comprised of a combination of bit values to yield the desired effects. Note that some combinations should not be used as they could be mutually exclusive. For example converting input to all uppercase and to all lowercase (bits 2 and 3 both set). Bits 0 and 1 are reserved for bit compatibility with WinComboCtrl, and should be set to "0". Bits 2, 3 and 4 define input character handling. It is reasonable to set bit 2 and 4 or 3 and 4, but not bits 2 and 3. If not set, input is used exactly as typed. (See: Bitwise Parameters & Operations)
|
Data |
Required. The data to display and possibly edited. |
FocusID |
An optional parameter from 0 to 32767 specifying the focus id. If Invalid, negative, or zero, no user interaction is permitted. This value is held in a short. |
MaxCharacters |
An optional parameter specifying the maximum number of characters permitted for input. Can not exceed 65535 or be less than 0. Defaults to 32767. |
Font |
An optional parameter specifying the font to use. Note that underlining is not supported. |
BackGroundColor |
An optional numeric parameter specifying the background color. Uses an unsigned integer, therefore system colors with negative values may not be specified here. May be any of:
|
ForegroundColor |
An optional numeric parameter specifying the foreground color. Like BackgroundColor, may not be negative. |
PlaceholderText |
Optional text that will be shown in the control as a prompt to the user. Vanishes when the user begins entering a value. |
Comments: | The return value for WinEditCtrl can be one of the following:
If FocusID is Invalid or less than or equal to "0", the current selection cannot be modified. |