Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 21531, Setting MessageDlg button properties

by Peter Laman Email: Anonymous


The uDialogsExt unit provides setting button properties for the Message dialogs of Delphi (such as the default button)
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 6.0  to 6.0 335 downloads
Copyright: Commercial use requires permission


Size: 2,777 bytes
Updated on Thu, 11 Mar 2004 01:35:08 GMT
Originally uploaded on Wed, 10 Mar 2004 23:47:20 GMT
SHA1 Hash: 904B2FDE4861A30DCFC6E59A5A53592CBD1BCB20
MD5 Hash: EF5CCED9A9E96AC7A04EBCBDF21690AA

    Explore the files in this upload

Description
The MessageDlg function of Delphi 6 does not support setting the default button, or any other customization on the dialog. The uDialogsExt unit provides some functions to do so. The caller must first create the dialog using CreateMessageDlg (in unit Dialogs) and then he can use the functions in the uDialogsExt unit to access the various buttons and properties, like:
- SetDefaultButton sets the default button of the dialog
- FindButton looks up a button, based on its modal result
- NextButton can be used to traverse all buttons in the dialog

See attached demo program (which also uses the uDialogsExt unit).

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03