🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #88

Re: RichEdit and Scrolling

#88
From: Yehia Ahmed
Date: Mon, 26 Jan 2004 07:41
36 lines
1848 bytes
no, still

"Chris Luck" <chris@bvhg.freeXYZserve.co.uk> wrote in message
news:4014569c@newsgroups.borland.com...
> "Yehia Ahmed" <yehiaeg@hotmail.com> wrote in message
> news:40140861@newsgroups.borland.com...
> > i have a richedit control containing about 200 lines, on key down event
i
> > wrote some procedures for the syntax coloring,
> > the problem is sometimes the richedit scrolls a little bit up or down
(this
> > happens maybe cause i change the .selstart in syntax coloring),
> >
> > anyway to lock the scroll bars,like this
> > LockScrollBras,
> > Do the syntax coloring,
> > Unlock ScrollBars,
>
>
> See if this fixes your prob.
>
>   RichEdit1.Lines.BeginUpdate;
>   try
>     // do stuff...
>   finally
>     RichEdit1.Lines.EndUpdate;
>   end;
>
>
> > LockScrollBras,    <<  the mind boggles.   :)
>
> --
> Regards,
> Chris Luck
>
>
Technical Details
Message-ID: <4014c4b1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40140861@newsgroups.borland.com> <4014569c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,4c88207b3c8650c0
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2004-01-26 00:06:34 PST
From: "Yehia Ahmed" <yehiaeg@hotmail.com>
Newsgroups: borland.public.delphi.language.objectpascal
References: <40140861@newsgroups.borland.com> <4014569c@newsgroups.borland.com>
Subject: Re: RichEdit and Scrolling
Date: Mon, 26 Jan 2004 09:41:33 +0200
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
NNTP-Posting-Host: 62.68.242.153
Message-ID: <4014c4b1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075102897 62.68.242.153 (25 Jan 2004 23:41:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail