Forum > General

Tmemoand selected text formatting

(1/1)

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

af0815:
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.

Thaddy:
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.

howardpc:
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.

Navigation

[0] Message Index

Go to full version