> Jeremy Coulter wrote:
>
> Hi all. I am SURE this has been asked before, BUT, is there away to set
> the default button in a messagedlg ? or am I better to write my own and do
> it that way?
You mean MessageBox()? You can use the MB_DEFBUTTONx (x is 1 to 4) flags to
change which of the buttons is default. I often use MB_DEFBUTTON2 with
MB_YESNO to select 'No' as the default.
--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"