Delphi 정보상자 관련 함수

4678 단어 Delphi

//ShowMessage:
begin
  ShowMessage('    ');      {       ,  : Proect1}

  Application.Title := '  ';  {        ...}
  ShowMessage('    ');      {   '  '}

  ShowMessage('   ' + #13#10 + '   ');  {      }
  ShowMessage('   '#13'   ');     {   }
end;

 
//InputBox: var s: string; begin s := InputBox(' ',' ',' '); ShowMessage(s); // end;
//InputQuery: var s: string; begin InputQuery(' ',' ',s); // S , ShowMessage(s); // end;
//MessageBox: var i: Integer; begin i := MessageBox(0,' ',' ',mrOk); // Self.Handle, 0 // //mrNone //mrOk //mrCancel //mrAbort //mrRetry //mrIgnore //mrYes //mrNo //mrAll //mrNoToAll //mrYesToAll ShowMessage(IntToStr(i)); // : MessageBox(0,' ',' ',mrOk + MB_ICONHAND); //MB_ICONHAND //MB_ICONQUESTION //MB_ICONEXCLAMATION //MB_ICONASTERISK //MB_USERICON //MB_ICONWARNING //MB_ICONERROR //MB_ICONINFORMATION //MB_ICONSTOP end; // , API : { } MB_OK = $00000000; MB_OKCANCEL = $00000001; MB_ABORTRETRYIGNORE = $00000002; MB_YESNOCANCEL = $00000003; MB_YESNO = $00000004; MB_RETRYCANCEL = $00000005; MB_ICONHAND = $00000010; MB_ICONQUESTION = $00000020; MB_ICONEXCLAMATION = $00000030; MB_ICONASTERISK = $00000040; MB_USERICON = $00000080; MB_ICONWARNING = MB_ICONEXCLAMATION; MB_ICONERROR = MB_ICONHAND; MB_ICONINFORMATION = MB_ICONASTERISK; MB_ICONSTOP = MB_ICONHAND; MB_DEFBUTTON1 = $00000000; MB_DEFBUTTON2 = $00000100; MB_DEFBUTTON3 = $00000200; MB_DEFBUTTON4 = $00000300; MB_APPLMODAL = $00000000; MB_SYSTEMMODAL = $00001000; MB_TASKMODAL = $00002000; MB_HELP = $00004000; MB_NOFOCUS = $00008000; MB_SETFOREGROUND = $00010000; MB_DEFAULT_DESKTOP_ONLY = $00020000; MB_TOPMOST = $00040000; MB_RIGHT = $00080000; MB_RTLREADING = $00100000; MB_SERVICE_NOTIFICATION = $00200000; MB_SERVICE_NOTIFICATION_NT3X = $00040000; MB_TYPEMASK = $0000000F; MB_ICONMASK = $000000F0; MB_DEFMASK = $00000F00; MB_MODEMASK = $00003000; MB_MISCMASK = $0000C000; { } IDOK = 1; ID_OK = IDOK; IDCANCEL = 2; ID_CANCEL = IDCANCEL; IDABORT = 3; ID_ABORT = IDABORT; IDRETRY = 4; ID_RETRY = IDRETRY; IDIGNORE = 5; ID_IGNORE = IDIGNORE; IDYES = 6; ID_YES = IDYES; IDNO = 7; ID_NO = IDNO; IDCLOSE = 8; ID_CLOSE = IDCLOSE; IDHELP = 9; ID_HELP = IDHELP; IDTRYAGAIN = 10; IDCONTINUE = 11;
//MessageDlg: var i: Integer; begin MessageDlg(' ',mtWarning,mbYesNo,0); // : //mtWarning //mtError //mtInformation //mtConfirmation //mtCustom // : //mbYesNo = [mbYes, mbNo]; //mbYesNoCancel = [mbYes, mbNo, mbCancel]; //mbYesAllNoAllCancel = [mbYes, mbYesToAll, mbNo, mbNoToAll, mbCancel]; //mbOKCancel = [mbOK, mbCancel]; //mbAbortRetryIgnore = [mbAbort, mbRetry, mbIgnore]; //mbAbortIgnore = [mbAbort, mbIgnore]; // , : MessageDlg('aaa',mtWarning,[mbYes],1); // ID, 0 // 5 // , MessageBox end;
//MessageDlgPos: begin MessageDlgPos(' ',mtCustom,mbYesNoCancel,0,400,100); // MessageDlg end;

좋은 웹페이지 즐겨찾기