DdsCharField.InputStyle Property

Gets or sets the control style used to specify the field as a TextBox, Multi-line Textbox, Password, or a Checkbox.


BegProp InputStyle Access(*Public) Type(InputStyles)
   BegGet;  BegSet

Property Values

InputStyles references the style control for the field.


The default is Textbox, which accepts any values from the user. However, use the Values property to enter the valid values that the application can accept from the user. If the user may not know what the values mean, also use the ValuesText property to indicate text for each of the entries in the Values property. However, for the entries in Values and/or the ValuesText to display for the user, use the ValuesStyle property to specify whether just the Values or the ValuesText displays, or whether you want both of them to display in a drop-down box. Please note that this also applies to a Multi-line textbox.

When the field is set to display as a Checkbox, you will need to know what the valid values for the field are, and determine if you will specify the accepted values when the Checkbox is checked or unchecked. To do this, specify entries in either the CheckedValue or UnCheckedValue properties.

When set to Multiline the browser will render the contents using multiple lines (HTML <textarea>), otherwise it will show it as a long single-line field (HTML <input>). If a field is using multiple-lines the browser always wraps the content on a blank, in that sense, the WRDWRAP keyword is always enabled; there is no way to have the contents wrap in the middle of a word (like in 5250).

The Wings import feature sets the DdsCharField InputStyle property to Multiline only when the CNTFLD keyword is present in DDS. The WRDWRAP will be ignored always (because it is implied).

To set this property at design time, click on the arrow on the right side of the property window and choose one of the options shown in the drop-down box.


Namespace: ASNA.Monarch.WebDspF

Assembly: ASNA.Monarch.WebDspF.DLL

Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro