Recent

Author Topic: Tmemoand selected text formatting  (Read 520 times)

davesimplewear

  • Sr. Member
  • ****
  • Posts: 319
    • Davids Freeware
Tmemoand selected text formatting
« on: February 01, 2023, 04:24:41 am »
Hi,
I have been absent for a while due to an accident that I had,but slowly working my way back to coding again,
anyway I have been playing around with a text editor ,just plain text,I use a mult itab interface and I have been tryng to find resources to show how to use the replace dialog as a find replace dialog ,but very little clear simple examples for a tmemo,also is there a way to format selected text in a tmemo or is that a richmemo only.
Thank for any help
Dave
All things considered insanity seems the best option

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: Tmemoand selected text formatting
« Reply #1 on: February 01, 2023, 07:46:49 am »
Memo is very simple and have no formatting of text pieces. So, RichMemo (or similar components) will be the choice if you want to deal with formatting text.
regards
Andreas

Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: Tmemoand selected text formatting
« Reply #2 on: February 01, 2023, 08:59:32 am »
For editors the simplest way to go is using the TSynEdit family of components. Richmemo would be "challenging"...(but possible)
There is also a fork of synedit by one of our forum members that is even more powerful.
With synedit you can write an editor in hours, not weeks.
« Last Edit: February 01, 2023, 09:27:22 am by Thaddy »
Specialize a type, not a var.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Tmemoand selected text formatting
« Reply #3 on: February 01, 2023, 09:20:23 am »
However, note that the Lazarus synedit, while a powerful and well-maintained component, is oriented towards program code display, which means use of fixed-pitch fonts only.
If you try to use variable-pitch fonts with the Lazarus synedit you may get unpredictable results.

 

TinyPortal © 2005-2018