ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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 update date
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview of the formatted display control

Control in a dynamic page

This control can be used to display dates, times and currency values while 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 popup menu).
  2. In 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 is used to define the format handled 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 expressions in the current language can be configured in the project description:
    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 an item of a data file. 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 through programming.

Tip: Display a site 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()) + "<Library name>.WDL", "", fModify)
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 06/23/2022

Send a report | Local help