Board index » delphi » MessageDlg function

MessageDlg function

Hi,

Is it possible to include custom button in MessageDlg?
For example button OK with different text on its face (' Send').

Simon

 

Re:MessageDlg function


Quote
Simon Hribernik wrote:

> Hi,

> Is it possible to include custom button in MessageDlg?
> For example button OK with different text on its face (' Send').

> Simon

===================================================================

No, you can't do this, but if you have the Delphi professional and
have the source code, it's fairly easy to copy the code
(it's in Dialogs.Pas) and create a new function of your own that
uses such custom buttons.

Good luck!

Bill Dekleris

Re:MessageDlg function


Quote
Bill Dekleris <qua...@prometheus.hol.gr> wrote:
>Simon Hribernik wrote:

>> Hi,

>> Is it possible to include custom button in MessageDlg?
>> For example button OK with different text on its face (' Send').

>> Simon
>===================================================================
>No, you can't do this, but if you have the Delphi professional and
>have the source code, it's fairly easy to copy the code
>(it's in Dialogs.Pas) and create a new function of your own that
>uses such custom buttons.
>Good luck!
>Bill Dekleris

Good solution.  It gets at a real problem in Delphi.   The glyphs in
dialogs.pas uniquely brand your application as Delphi, and if you want
your application  to have a custom look, you will want to ditch them
altogether.  So consider modifying Dialogs.pas itself to either ditch
the glyphs or add your own to achieve a custom look.
---------
Bob Peticolas

Other Threads