Skip to main content
Version: 21 R3

DISPLAY NOTIFICATION

DISPLAY NOTIFICATION ( title : Text ; text : Text {; duration : Integer} )

ParameterTypeDescription
titleText→Notification title
textText→Notification text
durationInteger→Display duration in seconds
History
ReleaseChanges
14Modified
2004Created

Description​

The DISPLAY NOTIFICATION command displays a notification message to the user.

Usually this kind of message is used by the OS or an application to inform the user of an external event (network disconnection, availability of an upgrade, etc.).

  • Under Windows, the message appears in the notification area of the taskbar:
  • Under macOS (version 10.8 minimum), the message appears in a small sliding window in the top right corner of the screen.

    Note that in compliance with Apple specifications, the notification is only displayed when the application is not in the foreground. However, the message still appears in the "notification center" list.

In title and text, pass the title and the text of the message to display (in our example, the title is “4D Export”). You can enter up to 255 characters.

Under Windows, the message window remains displayed as long as no activity has been detected on the machine, or until the user clicks on the close box. The optional duration parameter modifies the default display duration. Note that the display of notifications depends on the system configuration.

Example​

 DISPLAY NOTIFICATION("4D Export";"The data is ready to export.")

See also​

ALERT

Properties​

Command number910
Thread safeno