We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Tmemo component properties

tankergoblin
tankergoblin asked
on
Medium Priority
291 Views
Last Modified: 2012-05-06
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.

Comment
Watch Question

MerijnBSr. Software Engineer
CERTIFIED EXPERT

Commented:

Author

Commented:
how about rich edit
can give me more info on rich edit

MerijnBSr. Software Engineer
CERTIFIED EXPERT

Commented:
Geert GOracle dba
CERTIFIED EXPERT
Top Expert 2009

Commented:
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/

Author

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.

Geert GOracle dba
CERTIFIED EXPERT
Top Expert 2009

Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Geert GOracle dba
CERTIFIED EXPERT
Top Expert 2009

Commented:
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;

Author

Commented:
beside than delphi help where can i get more info about Trichedit with example?
Geert GOracle dba
CERTIFIED EXPERT
Top Expert 2009

Commented:
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.