Solved

change the font style color of a selected text of richedit

Posted on 2003-11-14
5
672 Views
Last Modified: 2013-12-03
i asked a question about 10 minuts ago kretzschmar answer it
here is another question from the same project

i have a richedit and i want to be able to change the font style or color
and not changing  all the text in it

more detail:
i hilight some text from the document and i have a button when i push it for example it will change the selected text to bold or chang its color to green .
0
Comment
Question by:amjedmsa
  • 3
5 Comments
 

Accepted Solution

by:
Kumao earned 85 total points
ID: 9746013
procedure TForm1.Button1Click(Sender: TObject);
begin
  with RichEdit1.SelAttributes do begin
    Style := [fsBold];
    Color := clGreen;
  end;
end;
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9746016
hi, itsme again :-))

procedure TForm1.Button3Click(Sender: TObject);
begin
  richedit1.SelAttributes.Style := [fsBold];
  richedit1.SelAttributes.Color := clGreen;
end;

meikl ;-)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9746019
puuuh, too late :-((
0
 

Author Comment

by:amjedmsa
ID: 9746041
kretzschmar i am very sorry i cant give  it to u he came first how ever i realy like ur first answer u rock man
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9746069
:-)) its ok
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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

930 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

10 Experts available now in Live!

Get 1:1 Help Now