Solved

Change fonts in ShowMessage / MessageDlg

Posted on 1998-03-22
3
2,241 Views
Last Modified: 2013-12-03
I need a way to change the fonts in ShowMessage and MessageDlg functions.
0
Comment
Question by:loucks
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
Socrates050697 earned 100 total points
ID: 1360707
If you have the Delphi VCL source code :-

They both use a function in Dialogs.Pas called 'CreateMessageDialog'. This sets up the dialog box, including the fonts that they use. You could alter this to make it show the font that you want.

Socrates
0
 

Author Comment

by:loucks
ID: 1360708
Well, I do have the source code, but it looks hard...  :)  I guess maybe I will just copy it and modify it to show a particular font in my one application.

Can I make a declaration that overrides the declaration in dialogs.pas or would I have to create a new dialogs.pas and use that instead of the supplied dialogs.pas?
0
 
LVL 1

Expert Comment

by:Socrates050697
ID: 1360709
The easiest thing to do is to copy the relavent functions - ie CreateMessageDialog, ShowMessage, and MessageDlg - and paste them into your own app. Rename them to MyShowMessage or whatever and then your're free to do what you want with them. Alternatively if you don't rename them, they will automatically overide the ones in dialogs.pas.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi exception 7 63
Multiple image collision 13 69
how to update exe applicatio from internet ? 6 68
Unique identifier on a terminal server (rdp) 4 46
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now