Forum: Object-Pascal / Delphi-Language
Delphi
by Neutral General,
4. Sep 2006
Das stimmt schon was da steht.. nur kommt es halt auf den Typ an. Bei mtInformation steht in der Titelleiste 'Information' bei mtWarning 'Warnung', bei mtError 'Fehler' usw.. du kannst die Caption halt nicht ganz frei wählen...
Forum: Object-Pascal / Delphi-Language
Delphi
by Neutral General,
4. Sep 2006
Naja bei MessageDlg siehts halt so aus:
MessageDlg(Text,Typ (mtInformation,mtError..), Buttons (,...),HelpContext (?.. bei mir immer 0));
bei Application.MessageBox hast du folgende Möglichkeiten:
Application.MessageBox(Text,Caption,Buttons (MB_YES, MB_OK, MB_NO..));
=> MessageDlg mit Bildchen aber ohne Caption. Application.MessageBox ohne Bildchen aber dafür mit Caption :)