Solved

Ordered Bulletlines in Richedit

Posted on 1998-12-26
6
173 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
[X]
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
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
Industry Leaders: 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 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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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