JVCL Help:DSAMessageDlg@Integer@string@string@TGraphic@TMsgDlgButtons@Longint@TDlgCenterKind@Integer@TMsgDlgBtn@TMsgDlgBtn@TMsgDlgBtn@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
 functionDSAMessageDlg(constDlgID: Integer; constMsg: string; constDlgType: TMsgDlgType; constButtons: TMsgDlgButtons; constHelpCtx: Longint; constCenter: TDlgCenterKind = dckScreen; constTimeout: Integer = 0; constDefaultButton: TMsgDlgBtn = mbDefault; constCancelButton: TMsgDlgBtn = mbDefault; constHelpButton: TMsgDlgBtn = mbHelp; constADynControlEngine: TJvDynControlEngine = nil): TModalResult; overload;
functionDSAMessageDlg(constDlgID: Integer; constCaption: string; constMsg: string; constDlgType: TMsgDlgType; constButtons: TMsgDlgButtons; constHelpCtx: Longint; constCenter: TDlgCenterKind = dckScreen; constTimeout: Integer = 0; constDefaultButton: TMsgDlgBtn = mbDefault; constCancelButton: TMsgDlgBtn = mbDefault; constHelpButton: TMsgDlgBtn = mbHelp; constADynControlEngine: TJvDynControlEngine = nil): TModalResult; overload;
functionDSAMessageDlg(constDlgID: Integer; constCaption: string; constMsg: string; constPicture: TGraphic; constButtons: TMsgDlgButtons; constHelpCtx: Longint; constCenter: TDlgCenterKind = dckScreen; constTimeout: Integer = 0; constDefaultButton: TMsgDlgBtn = mbDefault; constCancelButton: TMsgDlgBtn = mbDefault; constHelpButton: TMsgDlgBtn = mbHelp; constADynControlEngine: TJvDynControlEngine = nil): TModalResult; 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: TMsgDlgButtons A list of buttons to display.
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: TMsgDlgBtn = mbDefault The button to mark as default. If you do not provide a default button, the MessageDlg mechanism is used to determine the default button.
const CancelButton: TMsgDlgBtn = mbDefault The button to mark as cancel. If you do not provide a cancel button, the MessageDlg mechanism is used to determine the cancel button.
const HelpButton: TMsgDlgBtn = mbHelp The button to mark as help. If you do not provide a help button, the button mbHelp will be used. If such a button does not exist, no button will be marked as help.
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

DSAMessageDlg is a replacement for Delphi's MessageDlg function and an extension to