• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

Tmemo component properties

I would like to know more about Tmemo component properties
example
perform(EM_LINEFROMCHAR,SelStart,0);
what is the description for this function.
and other function also.

0
tankergoblin
Asked:
tankergoblin
  • 4
  • 3
  • 3
1 Solution
 
MerijnBSr. Software EngineerCommented:
0
 
tankergoblinAuthor Commented:
how about rich edit
can give me more info on rich edit

0
 
MerijnBSr. Software EngineerCommented:
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
Geert GOracle dbaCommented:
the richedit is on the component pallet and described in the Delphi help

what is exactly you are trying to accomplish ?

you want to format your sql text ?
try the synedit component
http://synedit.sourceforge.net/
0
 
tankergoblinAuthor Commented:
Actually i try to put different color on my  font

say example i have text below

I would like to know more..

and i want to change color of "like" to green color.
I was using Tmemo but noticed that Tmemo has no such control so now i change it to
RichEdit.
Need some guide on how to use RichEdit.

0
 
Geert GOracle dbaCommented:
you need to select what you want to change,
then use the properties of the selected text to change them

and other way would be to add a actionlist,
add all the default actions for the richedit
add a toolbar
add enough buttons for these default actions
and assign the actions to these buttons

you needn't even worry about the code,
you can use it like the formatting toolbar of word

you will still need to use a TFontDialog for the selected text color changes :

screenshot.png
0
 
Geert GOracle dbaCommented:
procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
  if FontDialog1.Execute then
  begin
    RichEdit1.SelAttributes.Color := FontDialog1.Font.Color;
    RichEdit1.SelAttributes.Name := FontDialog1.Font.Name;
    RichEdit1.SelAttributes.Style := FontDialog1.Font.Style;
  end;
end;
0
 
tankergoblinAuthor Commented:
beside than delphi help where can i get more info about Trichedit with example?
0
 
Geert GOracle dbaCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 4
  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now