Главная страница | назад





Article #16735: Dialogs displaying 'No to all' button instead of mbHelp

 Question and Answer Database
FAQ1735D.txt Dialogs displaying 'No to all' button instead of mbHelp
Category :VCL
Platform :All
Product :Delphi 3.x
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.
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99