Solved

Change fonts in ShowMessage / MessageDlg

Posted on 1998-03-22
3
2,221 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 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

12 Experts available now in Live!

Get 1:1 Help Now