JVCL Help:DSAMessageDlgEx@Integer@string@string@TGraphic@array of string@array of Integer@Longint@TDlgCenterKind@Integer@Integer@Integer@Integer@TJvDynControlEngine

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

MessageDlg replacement with additional settings and "Don't show again" capabilities.

run\JvDSADialogs.pas


Pascal

 run\JvDSADialogs.pas
 functionDSAMessageDlgEx(constDlgID: Integer; constMsg: string; constDlgType: TMsgDlgType; constButtons: arrayofstring; constResults: arrayofInteger; constHelpCtx: Longint; constCenter: TDlgCenterKind = dckScreen; constTimeout: Integer = 0; constDefaultButton: Integer = 0; constCancelButton: Integer = 1; constHelpButton: Integer = -1; constADynControlEngine: TJvDynControlEngine = nil): Integer; overload;
functionDSAMessageDlgEx(constDlgID: Integer; constCaption: string; constMsg: string; constDlgType: TMsgDlgType; constButtons: arrayofstring; constResults: arrayofInteger; constHelpCtx: Longint; constCenter: TDlgCenterKind = dckScreen; constTimeout: Integer = 0; constDefaultButton: Integer = 0; constCancelButton: Integer = 1; constHelpButton: Integer = -1; constADynControlEngine: TJvDynControlEngine = nil): TModalResult; overload;
functionDSAMessageDlgEx(constDlgID: Integer; constCaption: string; constMsg: string; constPicture: TGraphic; constButtons: arrayofstring; constResults: arrayofInteger; constHelpCtx: Longint; constCenter: TDlgCenterKind = dckScreen; constTimeout: Integer = 0; constDefaultButton: Integer = 0; constCancelButton: Integer = 1; constHelpButton: Integer = -1; constADynControlEngine: TJvDynControlEngine = nil): Integer; overload;


Parameters

Parameters Description
const DlgID: Integer ID of the dialog in the DSA system.
const Msg: string Contains the message to display.
const DlgType: TMsgDlgType The dialog type.
const Buttons: array of string List of button captions.
const Results: array of Integer List of result codes.
const HelpCtx: Longint Help context to use when the help button is clicked or F1 is pressed.
const Center: TDlgCenterKind = dckScreen Indicates how the dialog is to be centered. The default is to center on the screen, but you can specify to center on the main form or the active form.
const Timeout: Integer = 0 Description for this parameter
const DefaultButton: Integer = 0 The button to mark as default. If you do not provide a default button, the first button is marked as default. If you do not want a default button, set this parameter to -1. This parameter is an index into the Buttons/Results array.
const CancelButton: Integer = 1 The button to mark as cancel. If you do not provide a cancel button, the second button is marked as cancel. If you do not want a cancel button, set this parameter to -1. This parameter is an index into the Buttons/Results array.
const HelpButton: Integer = -1 The button to mark as help. If you do not provide a help button, no button will be marked as help. This parameter is an index into the Buttons/Results array.
const ADynControlEngine: TJvDynControlEngine = nil Description for this parameter
const Caption: string The caption of the dialog.
const Picture: TGraphic A TGraphic descendant of the image to show or nil if no image should be shown.

run\JvDSADialogs.pas


Return Value

Returns the modal result of the displayed dialog or the last result if the dialog was suppressed.

run\JvDSADialogs.pas


Description

  1. JVCLInfo

DSAMessageDlgEx is an extension to MessageDlgEx that allow the user to optionally disable the dialog in the future.

run\JvDSADialogs.pas


See Also

DSAMessageDlg, MessageDlgEx

run\JvDSADialogs.pas


About

Notes

If the user presses Ctrl-C in the dialog, the contents of the dialog is copied to the clipboard.

run\JvDSADialogs.pas


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page