Depends on what you are trying to do.  Use the following :_

    Form := CreateMessageDialog (Msg,AType,Abuttons);

That gives you a form, not yet visible of teh standard message box.  I have
a version, which is coloured differently based on whether its a
confirmation, information, warning etc.  And it scales the box to twice the
height and width (including all components and font).  I also have a
facility to default to the selected button when the answer should normaly be
that.

Just cycle through the components on it to find what you want.  You can add
more components or whatever.  Then use the following to display it.

Result := Form.Showmodal;

----- Original Message -----
From: "Alex Kouznetsov" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, 12 October 2000 14:49
Subject: [DUG]: Costomised MessageBox


> Has anyone seen any code around how to customize MessageBox function.
>
> I need to be able to change buttons size and locations, and also process
> some extra keys presses.
>
> It could be Delphi-written MessageBox function, like built-in MessageDlg,
> but with the same parameters and results returned as
Application.MessageBox
> function.
>
> Or it could be a sample on how to subclass standard Windows MessageBox and
> be able to change some of its behavier. I did it before, but yet again it
> was C and long time ago.
>
> Thanks
> Alex
>
> --------------------------------------------------------------------------
-
>     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"
>

---------------------------------------------------------------------------
    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"

Reply via email to