PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Warning
From version 17, this feature is no longer available.
Displays a message containing a title, a text, an icon and a combination of buttons.
Note: A standard message box is displayed if the agent is invisible.
Example
// Displays a message
ResMessage = AgentMessage("Do you want to open this document?", ...
"Opening the document", ...
agtB_OKC + agtI_Question + agtMODALYES)
Syntax
<Result> = AgentMessage(<Message Text> , <Message Title> , <Message Style>)
<Result>: Integer constant
Return constant used to identify the button selected by the user or -1 if an error occurred.
agtR_OKOK
agtR_CANCELCancel
agtR_ABORTAbandon
agtR_RETRYRetry
agtR_IGNOREIgnore
agtR_YESYes
agtR_NONo
<Message Text>: Character string
Multiline text of message.
<Message Title>: Character string
Multiline title of message.
<Message Style>: Combination of Integer constants
Specifies the message style:
  • The buttons:
    agtB_OKOK
    agtB_OKCOK and Cancel
    agtB_ARIAbort, Retry, Ignore
    agtB_YNCYes, No, Cancel
    agtB_YNYes, No
    agtB_RCRetry, Cancel
  • The icons:
    agtI_HANDWhite cross, red backgroundAgentBeep: emergency stop sound
    agtI_QUESTIONQuestion markAgentBeep: interrogation sound
    agtI_EXCLAMATIONExclamation markAgentBeep: exclamation sound
    agtI_ASTERISKThe "i" of informationAgentBeep: asterisk sound
    agtI_WARNINGExclamation markAgentBeep: exclamation sound
    agtI_ERRORExclamation markAgentBeep: exclamation sound
    agtI_INFORMATIONThe "i" of informationAgentBeep: asterisk sound
    agtI_STOPExclamation markAgentBeep: exclamation sound
  • The mode:
    agtMODALYESThe message is a modal message (the application is stopped)
    agtMODALNOThe message is not modal (the application continues to run)
Components
WINDEVReports and Queries wd160agt.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment