|
|
|
|
|
- Overview of the formatted display control
- Control in a dynamic page
- Creating a formatted display control
- Configuring a formatted display control
- Notes
- Remarks
- Tip: Display a site's update date
The formatted display control
Overview of the formatted display control Control in a dynamic page This control can be used to display dates, times and monetary values for example, respecting the corresponding display format. A formatted display control is a static control used to display the following types: - text,
- numeric,
- date,
- hour,
- currency, etc.
Formatted display controls are mainly used in loopers. Creating a formatted display control To create a formatted display control: - On the "Creation" tab, in the "Usual controls" group, expand "Text" and select "Formatted display control".
- Click where you want to create the control in the page. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu. Configuring a formatted display control To configure a formatted display control: - Open the control description window ("Description" in the control context menu).
- On the "General" tab, specify:
- the type of data displayed.
- the display mask used ("Input mask", only used for display in the case of the formatted display control).
- the programming format if necessary ("Returned value"). The programming format allows you to define the format used by the program (format of the items displayed in the control for example).
Remarks - For the Date formatted display controls, you have the ability to select the "Relative duration" display mask. This format is used to express the time between the current date and the date displayed in the control. This format is expressed in natural language. The different formulations used can be configured in the project description for the current language:
- On the "Project" tab, in the "Project" group, click "Description".
- In the "Languages" tab:
- select the language to configure.
- select the "Date" tab.
- Click "Dates and Times in natural language...".
- Define (if necessary) the custom captions to use. These captions will be used:
- for the result of DateToString.
- for the controls that use the "Relative duration" display mask.
- A formatted display control can be linked (or not) to a data file item. In this case, the control is used to display the content of an item of the data file.
- The content of a formatted display control can only be defined programmatically.
Tip: Display a site's update date To display a site update date: - Create a Date formatted display control.
- Enter the following code in the initialization process of the control:
MySelf = fDate(CompleteDir(fExeDir()) + "<Nom de la bibliothèque>.WDL", "", fModify)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|