티스토리 뷰

Up to Parent: Vcl.Dialogs

Delphi

procedure ShowMessage(const Msg: string);

C++

extern PACKAGE void __fastcall ShowMessage(const System::UnicodeString Msg);

Properties

Type

Visibility

Source

Unit

Parent

procedure

function

public

Vcl.Dialogs.pas

Vcl.Dialogs.hpp

Vcl.Dialogs

Vcl.Dialogs

Description

Displays a message box with an OK button.

Call ShowMessage to display a simple message box with an OK button.

The name of the application's executable file appears as the caption of the message box.

Msg parameter is the message string that appears in the message box.

Params lists the values to insert into Msg if the Msg string includes formatting specifiers.

For more information about how messages are formatted, see Format Strings.

Params_size is the index of the last value in Params (one less than the number of elements).

Note: To display a message in a message box with other buttons, or with an icon, use the MessageDlg function.

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

 

OK 버튼이 있는 메시지 상자를 표시합니다.

ShowMessage를 호출하여 OK 버튼이 있는 간단한 메시지 상자를 표시합니다.

응용 프로그램의 실행 파일 이름이 메시지 상자의 캡션으로 나타납니다.

Msg 매개 변수는 메시지 상자에 나타나는 메시지 문자열입니다.

Params는 메시지 문자열에 서식 지정자가 포함되어 있으면 메시지에 삽입할 값을 나열합니다.

메시지의 서식 지정 방법에 대한 자세한 내용은 문자열 서식 지정을 참조하십시오.

Params_sizeParams의 마지막 값의 인덱스입니다 (요소의 개수보다 하나적음).

참고: 다른 버튼들 또는 아이콘이 있는 메시지 상자에 메시지를 표시하려면 MessageDlg 함수를 사용하십시오.

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

 

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

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
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
글 보관함