JVCL Help:MessageDlgEx@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 extension with additional settings.

run\JvDSADialogs.pas


Pascal

 run\JvDSADialogs.pas
 functionMessageDlgEx(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;
functionMessageDlgEx(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;
functionMessageDlgEx(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): TModalResult; overload;


Parameters

Parameters Description
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 Result Returns the modal result of the displayed dialog.
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


Description

  1. JVCLInfo

MessageDlgEx is an extension of Delphi's MessageDlg function and an extension of JvDSADialog's MessageDlg that gives you more control over the appearance of the dialog.
MessageDlgEx allows to specify custom button captions and result codes for the dialog. Just as JvDSADialog's MessageDlg, MessageDlgEx has three forms that allow you to customize its appearance.

run\JvDSADialogs.pas


See Also

DSAMessageDlgEx, MessageDlg

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