Toooo Slooooow! (RichText Control) 
Author Message
 Toooo Slooooow! (RichText Control)

Hello, i am currently having problems loading large files into a rich text
control, possibly because my program is too slow.  It colour codes text and
i have decided to do it one page at a time + buffer at the top and bottom
instead of all at once - how do i make the program just process the current
page, as there is no way of knowing what lines start and stop on a rich text
control window and when scrolling how do i update this one or x lines at a
time.

Basically, how do i write a text editor that can appear to colour code
~50000 lines of text?

Thank you loads for your help!



Sat, 31 Jan 2004 17:54:12 GMT  
 Toooo Slooooow! (RichText Control)
  It may turn out to be too slow updating it constantly, but there are
several EM_ constants, used with SendMessage, that will give you access to
much more functionality in an RTB.
  EM_GETFIRSTVISIBLELINE will return the top line showing.
  Dan Appleman's API book covers most of these calls, as does the Win32API
Help file from MS, if you have it.
--
--

Quote:
> Hello, i am currently having problems loading large files into a rich text
> control, possibly because my program is too slow.  It colour codes text
and
> i have decided to do it one page at a time + buffer at the top and bottom
> instead of all at once - how do i make the program just process the
current
> page, as there is no way of knowing what lines start and stop on a rich
text
> control window and when scrolling how do i update this one or x lines at a
> time.

> Basically, how do i write a text editor that can appear to colour code
> ~50000 lines of text?

> Thank you loads for your help!



Sat, 31 Jan 2004 22:14:31 GMT  
 Toooo Slooooow! (RichText Control)
THANKS!

Quote:
>   It may turn out to be too slow updating it constantly, but there are
> several EM_ constants, used with SendMessage, that will give you access to
> much more functionality in an RTB.
>   EM_GETFIRSTVISIBLELINE will return the top line showing.
>   Dan Appleman's API book covers most of these calls, as does the Win32API
> Help file from MS, if you have it.
> --
> --


> > Hello, i am currently having problems loading large files into a rich
text
> > control, possibly because my program is too slow.  It colour codes text
> and
> > i have decided to do it one page at a time + buffer at the top and
bottom
> > instead of all at once - how do i make the program just process the
> current
> > page, as there is no way of knowing what lines start and stop on a rich
> text
> > control window and when scrolling how do i update this one or x lines at
a
> > time.

> > Basically, how do i write a text editor that can appear to colour code
> > ~50000 lines of text?

> > Thank you loads for your help!



Sun, 01 Feb 2004 17:10:49 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Toooo many decimal places

2. Data Control with RichText Control

3. richtext and richtext contol

4. How to handle a slooooow CreateDynaset

5. DataGrid - Slooooow

6. SLOOOOOW ADO CONNECTION

7. ADO vs DAO: Slooooow thing.

8. Typing '*' character in Richtext control

9. Access97: RichText control

10. Richtext Control 5.0

11. RichText Control

12. Richtext box control

 

 
Powered by phpBB® Forum Software