ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Display control
  • 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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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:
  1. On the "Creation" tab, in the "Usual controls" group, expand "Text" and select "Formatted display control".
  2. 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:
  1. Open the control description window ("Description" in the control context menu).
  2. 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).
Notes

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:
    1. On the "Project" tab, in the "Project" group, click "Description".
    2. In the "Languages" tab:
      • select the language to configure.
      • select the "Date" tab.
    3. Click "Dates and Times in natural language...".
    4. 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:
  1. Create a Date formatted display control.
  2. Enter the following code in the initialization process of the control:
    MySelf = fDate(CompleteDir(fExeDir()) + "<Nom de la bibliothèque>.WDL", "", fModify)
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help