티스토리 뷰

Delphi

function MessageDlg(const Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; HelpCtx: Longint): Integer;

function MessageDlg(const Msg: string; DlgType: TMsgDlgType; Buttons: TMsgDlgButtons; HelpCtx: Longint; DefaultButton: TMsgDlgBtn): Integer; overload;

C++

extern PACKAGE int __fastcall MessageDlg(const System::UnicodeString Msg, System::Uitypes::TMsgDlgType DlgType, System::Uitypes::TMsgDlgButtons Buttons, int HelpCtx)/* overload */;

Properties

Type

Visibility

Source

Unit

Parent

function

public

Vcl.Dialogs.pas

Vcl.Dialogs.hpp

Vcl.Dialogs

Vcl.Dialogs

Description

Displays a message dialog box in the center of the screen.

Call MessageDlg to bring up a message box and obtain the user's response.

Msg is the content of the message that appears.

DlgType indicates the purpose of the dialog:
Buttons is a set of buttons and indicates what buttons should appear in the message box.

The buttons appear in same order as they appear in the Buttons set.

HelpCtx specifies the context ID for the help topic that should appear when the user clicks the help button or presses F1 while the dialog is displayed.

 

화면 중앙에 메시지 대화 상자를 표시합니다.

MessageDlg를 호출하여 메시지 상자를 띄워서 사용자의 응답을 얻습니다.

Msg는 나타나는 메시지의 내용입니다.

DlgType은 대화 상자의 용도를 나타냅니다.

Buttons은 일련의 단추이며, 메시지 상자에 표시할 단추를 나타냅니다.

버튼은 버튼 세트에 표시된 동일한 순서대로 나타납니다.

HelpCtx는 사용자가 도움말 버튼을 클릭하거나, 대화 상자가 표시된 상태에서 F1을 누르면 나타나는 도움말 항목의 컨텍스트 ID를 지정합니다.

 

DefaultBtn specifies which button from among those specified by Buttons is the default button for the dialog.

MessageDlg returns the value of the button the user selected.

See the table on the Vcl.Dialogs.TMsgDlgBtn page for values for each type of button that can appear in the message box, and the corresponding value that is returned if the user selects that button.

The following table lists the TMsgDlgBtn values for each type of button that can appear in the message box, and the corresponding value that is returned if the user selects that button:

Note: If the user types Ctrl+C in the message box, the text of the message is copied to the clipboard.

 

DefaultBtnButtons에 지정된 단추 중 대화 상자의 기본 단추를 지정합니다.

MessageDlg는 사용자가 선택한 버튼의 값을 반환합니다.

메시지 상자에 나타날 수 있는 각 버튼 유형의 버튼 값과 사용자가 해당 버튼을 선택한 경우 반환되는 해당 값은 Vcl.Dialogs.TMsgDlgBtn 페이지의 표를 보십시오.

다음 표에는 메시지 상자에 나타날 수 있는 각 버튼 유형에 대한 TMsgDlgBtn 값과 사용자가 해당 버튼을 선택한 경우 반환되는 해당 값이 나열되어 있습니다.

참고: 사용자가 메시지 상자에 Ctrl + C를 입력하면 메시지의 텍스트가 클립 보드로 복사됩니다.

 

TMsgDlgBtn Value

Corresponding return value

mbOK

mrOk

mbCancel

mrCancel

mbYes

mrYes

mbNo

mrNo

mbAbort

mrAbort

mbRetry

mrRetry

mbIgnore

mrIgnore

mbAll

mrAll

mbNoToAll

mrNoToAll

mbYesToAll

mrYesToAll

mbClose

mrClose

 

bring something up

1. (화제를) 꺼내다
2.
토하다, 게우다
3. (
컴퓨터 화면에) 띄우다

 indicate 미국·영국 [|ɪndɪkeɪt] 

1. (사실임・존재함을) 나타내다
2. (
조짐・가능성을) 나타내다
3. (
특히 간접적으로) 내비치다

purpose 미국식 [|p3:rpəs] 

1. (이루고자 하는・이루어야 할) 목적
2. (
특정 상황에서 무엇을) 하기 위함, 용도, 의도
3. (
삶에 의미를 주는) 목적

context 미국식 [|kɑ:ntekst] 

1. (어떤 일의) 맥락, 전후 사정
2. (
글의) 맥락, 문맥

among 미국·영국 [ə|mʌŋ] 

1. …에 둘러싸인, …의 가운데에
2.
…중에
3. (
셋 이상이 관련된 분배・선택 시) …간에, …중에서

corresponding 미국식 [|kɔ:rə|spɑ:ndɪŋ;|kɑ:-]

(~) 해당하는

correspond 미국식 [|kɔ:rə|spɑ:nd;|kɑ:-] 

1. 일치하다, 부합하다
2. (~
) 해당하다
3. (~
) 서신을 주고받다

 

출처: http://docwiki.embarcadero.com/Libraries/XE2/en/Vcl.Dialogs.MessageDlg

'프로그래밍 언어 > Delphi' 카테고리의 다른 글

[Reference] System.SysUtils.Format  (0) 2017.02.20
[Reference] Vcl.Dialogs.ShowMessagePos  (0) 2017.02.19
[Reference] System.High  (0) 2017.02.17
[Reference] System.SysUtils.StrCopy  (0) 2017.02.16
[Reference] System.Pi  (0) 2017.02.15
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함