PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview of the formatted display control
  • Control in a dynamic page
  • Creating a formatted display control
  • Configuring a formatted display control
  • Notes
  • Notes
  • Tip: Displaying the date of site update
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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, ...
The formatted display controls are mainly used in the loopers.
Creating a formatted display control
To create a formatted display control:
  1. In the page editor, click (or select "Insert .. Control .. Formatted display").On the "Creation" pane, in the "Usual controls" group, expand "Text" and select "Formatted Display control".
  2. Click the position where the control will be created in the page. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.

Configuring a formatted display control

To configure a formatted display control:
  1. Display the description window of the control ("Description" in the popup menu of the control).
  2. In the "General" tab, specify:
    • the type of data displayed.
    • the display mask used.
    • the programming format if necessary. The programming format is used to define the format handled by the program (format of the items displayed in the control for example).
Notes

Notes

Versions 18 and later
  • For the Date formatted display controls, you have the ability to select the "Relative duration" display mask. This format is used to express the duration passed (or the future duration) between the date of the day and the date displayed in the control. This format is expressed in natural en language. The different formulations used can be configured in the project description for the current language:
    1. On the "Project" pane, in the "Project" group, click "Description".
    2. In the "Languages" tab:
      • select the language to configure.
      • select the "Date" tab.
    3. Click the "Dates and Times in natural language" button.
    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.
New in version 18
  • For the Date formatted display controls, you have the ability to select the "Relative duration" display mask. This format is used to express the duration passed (or the future duration) between the date of the day and the date displayed in the control. This format is expressed in natural en language. The different formulations used can be configured in the project description for the current language:
    1. On the "Project" pane, in the "Project" group, click "Description".
    2. In the "Languages" tab:
      • select the language to configure.
      • select the "Date" tab.
    3. Click the "Dates and Times in natural language" button.
    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.
  • For the Date formatted display controls, you have the ability to select the "Relative duration" display mask. This format is used to express the duration passed (or the future duration) between the date of the day and the date displayed in the control. This format is expressed in natural en language. The different formulations used can be configured in the project description for the current language:
    1. On the "Project" pane, in the "Project" group, click "Description".
    2. In the "Languages" tab:
      • select the language to configure.
      • select the "Date" tab.
    3. Click the "Dates and Times in natural language" button.
    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 found in a data file. In this case, the control is used to view the content of an item of records found in the data file.
  • The content of a formatted display control can only be defined by programming.

Tip: Displaying the date of site update

To display the date of site update:
  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 required version
  • Version 9
Comments
Click [Add] to post a comment