Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Ordered Bulletlines in Richedit

Posted on 1998-12-26
6
Medium Priority
?
176 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 30 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 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 video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

916 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