"Nicholas Sherlock" <n_sherl...@hotmail.com> wrote in message <news:ao1t3d$sip$1@lust.ihug.co.nz>...
> TRichEdit will be better if only for the fact that you can store a lot more
> text into it: Set the plaintext property to true and set the "Maxlength"
> property to a suitably large number, such as 2147483645. Although you could
> make blue and underline hyperlinks in the RichEdit, there is no built in
> function to have text that you can click on; You could try looking on a
> Delphi component site (Like Torrys) for a RichEdit with hyperlink
> capability. I don't know how to solve your slow loading dilemma - if
> RichEdit has beginupdate/endupdate methods you could try:
> 1. Call beginupdate
> 2. Loading it in yourself, one line at a time
> 3. Call endupdate
> Cheers,
> Nicholas Sherlock
> "OgO" <quent...@qjc.cjbGlasses.net> wrote in message
> news:Xns92A2CCCD313Dogo1mynxwowaustcom@210.49.20.254...
> > Hi everyone,
> > I'm writing a text editor ('cos hey, the world doesn't have
> > enough already...) and am deciding between a TMemo or a
> > TRichEdit.
> > I am *only* doing text editing, not formatting and don't
> > need the extra Rich text capabilities of the Rich Edit, but
> > I have noticed that:
> > - TMemo seemed to have a limit in the size of files it
> > could load
> > - TRichEdit has it's own findtext function (ok, I could
> > write my own - I already wrote my own find / replace dialog,
> > so hey, why not - but as long as I'm listing advantages /
> > disadvantages)
> > I want to be able to have the ability to load really big
> > files, without taking *too* long to do it is I guess my
> > biggest thing that I want, although I'd also like to be able
> > to highlight (say, by turning blue and underlining) URL's
> > which could be double clicked to execute in a browser.
> > What are the differences between the two types of edit box
> > in order to do this?
> > Also, what is the fastest way to load files into one of
> > these.
> > I've got a TRichEdit at the moment and tried loading a
> > fairly big (2mb) file with it's TRichEdit.Lines.loadFromFile
> > function, and I'm not sure if it was doing it or not, I
> > reset it after awhile.
> > I wrote a routine to do it and discovered that:
> > my routine can open the file and put all the strings into a
> > StringList in a couple of seconds, but I can't find a way to
> > get them into the RichEdit that works:
> > I've tried:
> > RichEdit.text := stringlist.text;
> > richedit.addstrings(stringlist.strings)
> > going through copying each line individually.
> > I can't remember what else.
> > So what is the best way to 'manually' load this file?
> > (assuming there is a better way than the Richedit's
> > loadfromfile function...
> > Regards
> > OgO
> > --
> > My Freeware: http://qjc.cjb.net/freeware.html
> > My Win9x Cursors: http://qjc.cjb.net/cursors.html
> > ICQ: 12889482 - AIM/Yahoo: quentisl - MSN: quent...@mail.com
> > I left my Glasses in my email - you better take them out!