Solved

Ordered Bulletlines in Richedit

Posted on 1998-12-26
6
170 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now