README :envelope: Message Box Sample
Flag List
txt Copy
MB_OK
MB_OKCANCEL
MB_ABORTRETRYIGNORE
MB_YESNOCANCEL
MB_YESNO
MB_RETRYCANCEL
MB_HELP
Icon List
txt Copy
MB_ICONEXCLAMATION //Alert
MB_ICONWARNING //Alert
MB_ICONINFORMATION //Info
MB_ICONASTERISK //Info
MB_ICONQUESTION //Question
MB_ICONSTOP //Question
MB_ICONERROR //Error
MB_ICONHAND //Error
Default Button on MessageBox
txt Copy
MB_DEFBUTTON1 //first button
MB_DEFBUTTON2 //second button
MB_DEFBUTTON3 //third button
MB_DEFBUTTON4 //fourth button
The Returned Value of the Message Box
txt Copy
IDOK //Ok Button
IDCANCEL //Cancel Button
IDABORT //Abort Button
IDRETRY //Retry Button
IDIGNORE //Ignore Button
IDYES //Yes Button
IDNO //No Button
Sample Use
pascal Copy
if Application. MessageBox( 'Message Text' , 'Caption' , MB_YESNOCANCEL or MB_ICONEXCLAMATION or MB_DEFBUTTON1) = IDYES then
begin
ShowMessage( 'You Clicked "Yes Button"!' ) ;
end ;
Name MessageBox_Sample Address github.com/miguelhp373/messagebox_sample Kind Other Works with Delphi Forge GitHub Owner miguelhp373 Status Quiet Created 8-6-2022 Last pushed 8-6-2022 Last seen (UTC) 2026-11-06T01:57:21Z GitHub stars 1 Forks 1 Learning and Examples
Topics: delphi messagebox
Found by: GitHub