We help IT Professionals succeed at work.
Get Started

Open a file in my notepad application with a specific fontname/size as default (part2)

Peter Kiers
Peter Kiers asked
Last Modified: 2010-04-05
Dear Experts,

In my previous question I got the comment that I had to be more specific about my problem.
My appologies.

I am Dutch and my English isn't very well. So I try to explain my problem:

I have made a Notepad that uses a TRichEdit. I want that when a user open's a text-file
(.doc . txt .rft) with my Notepad-application. The file will be showned in my Trichedit with
a default Fontname Arial and FontSize 14. And that the user can change the default fontname
and size in a MainMenu-item called Change default font.

I hope I have explaint my problem better this time.

I have received a good solution on my previous question, but I don´t know how to implement it.
Could someone help with it...


procedure TForm1.LoadInRichEdit(FileName: string);
  RichEdit1.Font.Name := 'Arial';
  RichEdit1.Font.Size := 14;

Open in new window

Watch Question
Oracle dba
Top Expert 2009
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE