dxMessageDlgPos(string,TMsgDlgType,TMsgDlgButtons,Longint,Integer,Integer,TMsgDlgBtn,TdxMessageDialogHyperlinkClickDelegate,TdxMessageDialogShowHyperlinkHintDelegate) Method
Invokes a modal message dialog box at the specified position on the screen.
Declaration
function dxMessageDlgPos(const AMessage: string; ADialogType: TMsgDlgType; AButtons: TMsgDlgButtons; AHelpContext: Longint; X: Integer; Y: Integer; ADefaultButton: TMsgDlgBtn; const AHyperlinkClickProc: TdxMessageDialogHyperlinkClickDelegate = nil; const AShowHyperlinkHintProc: TdxMessageDialogShowHyperlinkHintDelegate = nil): Integer;
Parameters
Name | Type | Description |
---|---|---|
AMessage | string | Message dialog box content. The The |
ADialogType | TMsgDlgType | A message dialog box type that determines the predefined caption, system icon, and sound of the message dialog box. |
AButtons | TMsgDlgButtons | A set of buttons on the message dialog box form. |
AHelpContext | Longint | A context ID of the help topic that a click on the Help button or the F1 keystroke should invoke while the message box is displayed. |
X | Integer | A horizontal offset (in pixels) of the upper-left form corner from the upper-left screen corner.
|
Y | Integer | A vertical offset (in pixels) of the upper-left form corner from the upper-left screen corner.
|
ADefaultButton | TMsgDlgBtn | A button type. Use this parameter to specify the button that has focus when the message box appears. |
AHyperlinkClickProc | TdxMessageDialogHyperlinkClickDelegate | Optional. Specifies a procedure that handles a click on a hyperlink within the displayed message. The You can define a click handler procedure to identify the clicked hyperlink and prevent certain links from being activated. Tip Refer to the TdxMessageDialogHyperlinkClickDelegate procedural type description for detailed information and a code example. |
AShowHyperlinkHintProc | TdxMessageDialogShowHyperlinkHintDelegate | Optional. Specifies a procedure that handles a hyperlink hint display event. The You can define a hyperlink hint handler procedure to change the predefined hint message (the hyperlink target URI) depending on certain conditions in your application. Tip Refer to the TdxMessageDialogShowHyperlinkHintDelegate procedural type description for detailed information and a code example. |
Returns
Type | Description |
---|---|
Integer | An integer value that indicates the button clicked to close the message box. The Refer to the list of possible returned values in the Remarks section. |
Remarks
Call the dxMessageDlgPos
function to invoke a message dialog box associated with a help topic. The created message dialog box has the mdsMessageDlg style.
Supported BBCode-Inspired Markup Tags
Text Formatting Attribute | Message Text with Tags | Example |
---|---|---|
Bold | '[B]DevExpress[/B]' |
|
Italic | '[I]DevExpress[/I]' |
|
Underscore | '[U]DevExpress[/U]' |
|
Strikeout | '[S]DevExpress[/S]' |
|
Subscript | 'Dev[Sub]Express[/Sub]' |
|
Superscript | 'Dev[Sup]Express[/Sup]' |
|
Custom Font | 'Dev[U][Font=Consolas][Size=12]Express[/U][/Font][/Size]' |
|
Color | '[Color=#E67E22]Dev[/Color][Color=Gray]Express[/Color]' |
|
Background Color | '[BackColor=Orange]DevExpress[/BackColor]' |
|
Hyperlink | '[URL=http://www.devexpress.com/]DevExpress[/URL]' |
|
No Parse | '[NOPARSE][B]DevExpress[/B][/NOPARSE]' |
Returned Values
- IDOK
- A user clicked the OK button to close the message box.
- IDCANCEL
- A user clicked the Cancel button to close the message box.
- IDABORT
- A user clicked the Abort button to close the message box.
- IDRETRY
- A user clicked the Retry button to close the message box.
- IDIGNORE
- A user clicked the Ignore button to close the message box.
- IDYES
- A user clicked the Yes button to close the message box.
- IDNO
- A user clicked the No button to close the message box.
dxMessageDlgPos(System.String,Vcl.Dialogs.TMsgDlgType,Vcl.Dialogs.TMsgDlgButtons,System.Longint,System.Integer,System.Integer,Vcl.Dialogs.TMsgDlgBtn,dxMessageDialog.TdxMessageDialogHyperlinkClickDelegate,dxMessageDialog.TdxMessageDialogShowHyperlinkHintDelegate) Global Function