Skip to content

entryfiled

DevGeniusCode edited this page Mar 14, 2025 · 1 revision

EntryField Control

The EntryField control is used for creating single-line text input fields where users can enter text. You can define the position, size, and appearance of the entry field, as well as set various input restrictions.

Available Tags

In addition to the default control tags, the EntryField control has the following unique tag:

TagDescription
TEXTENTRYDATADefines specific properties of the entry field, such as input limits, and allowed input types.

Default Values and Usage

The following section list the default values and available textures for each tag:

Click to expand

TEXTENTRYDATA

  • MAXLEN: An integer that defines the maximum length of the input text. (e.g. 64)
  • SECRETTEXT: A Boolean value that defines if input text should be hidden. (0 = normal, 1 = hidden, displayed as asterisks).
  • NUMERICALONLY: A Boolean value that defines if the entry field allows only numbers. (0 = allows all characters, 1 = only numbers).
  • ALPHANUMERICALONLY: A Boolean value that defines if the entry field allows only letters and numbers. (0 = allows all characters, 1 = only letters and numbers).
  • ASCIIONLY: A Boolean value that defines if the entry field allows only ASCII characters. (0 = allows non-ASCII, 1 = only ASCII).

ENABLEDDRAWDATA

  • TextEntryEnabledLeftEnd
  • TextEntryEnabledRightEnd
  • TextEntryEnabledRepeatingCenter
  • TextEntryEnabledSmallRepeatingCenter

DISABLEDDRAWDATA

  • TextEntryDisabledLeftEnd
  • TextEntryDisabledRightEnd
  • TextEntryDisabledRepeatingCenter
  • TextEntryDisabledSmallRepeatingCenter

HILITEDRAWDATA

  • TextEntryHiliteLeftEnd
  • TextEntryHiliteRightEnd
  • TextEntryHiliteRepeatingCenter
  • TextEntryHiliteSmallRepeatingCenter

Example

Here's an example from the OptionsMenu.wnd file:

Click to expand
WINDOW WINDOWTYPE = ENTRYFIELD; SCREENRECT = UPPERLEFT: 520372, BOTTOMRIGHT: 640397, CREATIONRESOLUTION: 800600; NAME = "OptionsMenu.wnd:TextEntryHTTPProxy"; STATUS = ENABLED+IMAGE; STYLE = ENTRYFIELD+MOUSETRACK; SYSTEMCALLBACK = "[None]"; INPUTCALLBACK = "[None]"; TOOLTIPCALLBACK = "[None]"; DRAWCALLBACK = "[None]"; FONT = NAME: "Arial", SIZE: 10, BOLD: 0; HEADERTEMPLATE = "TextEntry"; TOOLTIPTEXT = "TOOLTIP:HTTPProxy"; TOOLTIPDELAY = -1; TEXT = "Entry"; TEXTCOLOR = ENABLED: 254254254255, ENABLEDBORDER: 000255, DISABLED: 192192192255, DISABLEDBORDER: 646464255, HILITE: 16825512255, HILITEBORDER: 00128255; ENABLEDDRAWDATA = IMAGE: TextEntryEnabledLeftEnd, COLOR: 000255, BORDERCOLOR: 000255, IMAGE: TextEntryEnabledRightEnd, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: TextEntryEnabledRepeatingCenter, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: TextEntryEnabledSmallRepeatingCenter, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; DISABLEDDRAWDATA = IMAGE: TextEntryDisabledLeftEnd, COLOR: 00128255, BORDERCOLOR: 000255, IMAGE: TextEntryDisabledRightEnd, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: TextEntryDisabledRepeatingCenter, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: TextEntryDisabledSmallRepeatingCenter, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; HILITEDRAWDATA = IMAGE: TextEntryHiliteLeftEnd, COLOR: 000255, BORDERCOLOR: 000255, IMAGE: TextEntryHiliteRightEnd, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: TextEntryHiliteRepeatingCenter, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: TextEntryHiliteSmallRepeatingCenter, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; TEXTENTRYDATA = MAXLEN: 64, SECRETTEXT: 0, NUMERICALONLY: 0, ALPHANUMERICALONLY: 0, ASCIIONLY: 1;END

See also

Category:Controls

Clone this wiki locally