4D v16.3

DISPLAY NOTIFICATION

Home

 
4D v16.3
DISPLAY NOTIFICATION

DISPLAY NOTIFICATION 


 

DISPLAY NOTIFICATION ( title ; text {; duration} ) 
Parameter Type   Description
title  Alpha in Notification title
text  Alpha in Notification text
duration  Longint in Display duration in seconds

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 OS X (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 

Product: 4D
Theme: Messages
Number: 910

This command has platform-specific behaviorThis command has platform-specific behavior

 
HISTORY 

Created: 4D 2004
Modified: 4D v14

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)