Solved

Ordered Bulletlines in Richedit

Posted on 1998-12-26
6
171 Views
Last Modified: 2013-11-22
Hello there, do you know a smart way, to make
ordered bulletlines in richedit??
Like:
1. test1
2. test2
3. test3
0
Comment
Question by:Smilly
6 Comments
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1353202
Use the paragraph property (Numbering within that) to create bullets in a richedit.

Cheers,

Raymond.
0
 
LVL 1

Author Comment

by:Smilly
ID: 1353203
Helle Rwilson,
Yep, but it doesn't make ordered list, it will make a list like:

  test
  test
  test

and what I need is:

1.  test
2.  test
3.  test

0
 
LVL 1

Expert Comment

by:skatan187
ID: 1353204
for x:=1 to memo1.lines.count do
        memo2.lines.add(memo1.lines[x]);
memo1.lines.clear;
for x:=1 to memo2.lines.count do
        memo.lines.add(x +'. '+ memo2.lines[x])
// it can be that you have to use x-1 and stuff.. (not sure)

sk
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 1

Expert Comment

by:skatan187
ID: 1353205
eum.. I think richedit works the same way as memo..

0
 
LVL 1

Accepted Solution

by:
Oli2 earned 10 total points
ID: 1353206
try

for x := 0 to RichEdit.Lines.Count -1 do
begin
   RichEdit.Lines[x] := IntToStr ( x +1 ) + '. ' + RichEdit.Lines[x];
end;

Greetings, Oli
0
 
LVL 1

Author Comment

by:Smilly
ID: 1353207
Thanks,
Okey, there's not a easy way, to this Question,
you have to take care of it yourself. Okey I'll
do that....
Sorry skatan187, but your answer was only a
comment, so I couldn't give you any point...

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi - replicating a form 8 76
Create Database on Android via Delphi dbExpress 3 94
Downloading email attachments 2 74
tidtcpserver connection lost handle 2 88
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 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