- - * - WhiteUnicorn - * - -




* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >


Frequently Asked Questions

Dialogs displaying 'No to all' button instead of mbHelp

Question:

When I upgraded to Delphi 3, some of my dialogs now display a button with a caption title of "No to all" where they used to display the mbHelp button. The Delphi help file and documentation give no mention to this additional button. What is this new button, and how can I prevent this behavior?

Answer:

Delphi 3 introduced two new buttons for the message dialog boxes:
mbNoToAll and mbYesToAll. The new button constants where inserted
where bmHelp used to reside. The most likely cause of the problem is
that you are using a hard coded ordinal value or perhaps are
manipulating the value used to set the button type requested in a non
portable fashion, instead of relying on more portable constants such
as mbHelp.



* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >



- - * - Anastasija aka WhiteUnicorn - * - - LJLiveJournal
PFPhotoFile