Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Implementing block indent/unindent in Tmemo

Posted on 2003-03-24
Medium Priority
Last Modified: 2010-04-04
I am trying to implemement a block indent/unindent routine in a Tmemo; so for eg, when pressing a hot key (say ctrl+U/I) the selected text moves left/right one tab space. Funny thing is that it works like so in a TRichedit:
procedure TForm1.ToolButton15Click(Sender: TObject);
if richedit1.Paragraph.FirstIndent>=10 then
richedit1.Paragraph.FirstIndent := richedit1.Paragraph.FirstIndent-10
But tying to get it to work in Tmemo is doggin me :(
Many thanks in adv,
Question by:omziff
LVL 27

Accepted Solution

kretzschmar earned 200 total points
ID: 8201001
a tmemo is not a trichedit
and has no paragraph-property

you have to insert some blanks or a tab
to each line at front to simulate an indent

meikl ;-)

Expert Comment

ID: 9316619
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question