Sign in Join
Wiki copytemporary

RichMemo/FAQ

Forum Asked Questions

Don't show horizontal bar

Q: I started to work with richmemo but don't show me horizontal bar only vertical bar even i typing or loadfile, in properties i select SSboth on srcollbars.

A: Horizontal scroll bar might not show up if WordWrap is enabled.

Add text with font

Q: how i can add text or line richmemo with font or textstyle?

A: The fastest way is to use RichUtilsUtils which comes with RichMemo and call InsertFontText function

delphi
uses ... RichUtilsUtils ..

..

var
  prms : TFontParams;
begin
  prms := GetFontParams(RichMemo1.Font);
  prms.Color := clBlue;
  prms.Style := [fsBold];
  // this adds the blue and bolded Hello World at the end of the richmemo
  // it's possible to pass the 4th parameter to the function to specify 
  // where the text should be added. By default - at the end.
  InsertFontText(RichMemo1,'hello world', prms);
end;

RichMemo's base API has the action of inserting the text and applying the style separated.

See Also


From the Free Pascal wiki, page "RichMemo/FAQ", as it stood on 2022-09-29 after a change by Skalogryz, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Edited on wiki.freepascal.org by 1 person, 2022

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
SkalogryzCreated page
SkalogryzDon't show horizontal bar (minor)
Skalogryz (minor)
SkalogryzDon't show horizontal bar (minor)
SkalogryzAdd text with font
SkalogryzAdd text with font (minor)
SkalogryzAdd text with font (minor)
SkalogryzAdd text with font (minor)
SkalogryzAdd text with font (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.