|
|
|
|
|
- Edit control overview
- Create an "Edit" control
- Main features of the "General" tab
- Type of an Edit control
- Types and masks
- Specific HTML 5 features
- Main features of the "UI" tab
- Initial state
- Parameters
- Validation of Edit controls via the Enter key
- Buttons integrated into the input area
- Main features of the "Details" tab
- Customizing the alphanumeric keypad
- Main features of the "Help" tab
- Displaying a hint text in an Edit control
- Main features of the "Style" tab
- Edit control style
- Converting an Edit control to a Static Text control
The Edit control allows users to enter data. This control can also be used to view information.
Create an "Edit" control To create an "Edit" control: - On the "Creation" tab, in the "Usual controls" group, click .
- Click where the control will be created in the window or page. The control appears in the editor.
Remark: It is also possible to create an Edit control from a list of predefined fields supplied as standard by selecting "Edit control".. The list of available controls is displayed with the project skin template. Simply click the control you want to create in the editor. To view the control characteristics, select "Description" in the context menu. Report editor: It is also possible to create an Edit control in a report. For more details, see Input in the reports. Main features of the "General" tab Type of an Edit control The format of an Edit control depends on the type of information displayed or entered. The following types of edit controls can be created: Main features of the "UI" tab Initial state The initial state of an Edit control is the default state of the control when the window or page is opened. The following states are available:
Main features of the "Details" tab An Edit control can: - be used to perform a drag-and-drop operation. For more details, see Drag and Drop.
- be in assisted entry: when the field is entered, the application automatically proposes the corresponding value present in the HFSQL key item linked to the field..
For example, in the "City" control, "London" is automatically proposed once "Lo" is typed. This feature can only be used with key items and Text items. Input suggestions cannot be used with non-key items, numeric items, or if an input mask is used for dates. For more details, see Input suggestions in an Edit control
An Edit control can also include: - a spelling checker that uses:
- the OpenOffice dictionary installed on the computer, or a spelling and grammar checker that uses the Word dictionary.
- an integrated spelling checker (based on Hunspell dictionaries).
- an history of entries: When entering data in the field, the list of previous values entered in this field is automatically proposed.. This input history is not available for multiline controls. For more details, see Saving entered data (AAF).
Main features of the "Help" tab Main features of the "Style" tab Edit control style The "Style" tab allows you to customize the appearance of all the elements in the Edit control. You can apply styles to different elements: - Field label: You can define the font, position and color of the label.
- The outside border.
- The text in the input area.
- The input field: For example, you can define the background color, the color of the frame, and so on., ...
Note: The "Margins" button is used to define the margins between the text and the edge of the input field.. - The hint text.
- The tokens (if any).
- Invalid or required input indicators.
- ...
Converting an Edit control to a Static Text control
Related Examples:
|
Unit examples (WINDEV): The special characters
[ + ] Handling special characters in an RTF control and viewing the ASCII and ANSI codes.
|
|
Unit examples (WINDEV): The voice recognition functions
[ + ] Using the voice recognition functions. The voice commands of Windows Vista (or Windows XP, with a specific software) are used to control WINDEV applications with the voice. A WINDEV application already responds to the voice when the user dictates in an edit control or spells out the caption of a button. You also have the ability to program a specific voice command to perform a specific action.
|
|
Unit examples (WINDEV): Advanced input mask
[ + ] Handling the input masks in WINDEV: - Defining the format of positive/negative number in a numeric edit control - Defining how negative numbers will be displayed in a numeric edit control - Defining how the value 0 will be displayed in a numeric edit control - Using a regular expression to prevent from typing characters other than 1, 2, 3, 4, 5 and 6. - Using a regular expression to "regulate" the input of a French registration number
|
|
Training (WINDEV): WD Search Control
[ + ] This example explains how to manage an edit control used to perform FullText searches of "google" type in your database.
|
|
Complete examples (WEBDEV): WW_Rewali
[ + ] This example is a site for travel booking. It proposes travels at very attractive prices. You have the ability to choose the travel duration, the start dates, then validate the purchase until the payment via Paypal. It is using the "scrolling banner" control and the planes.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|