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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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