🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: RichEdit and Scrolling

#78
From: Chris Luck
Date: Sun, 25 Jan 2004 23:51
28 lines
1633 bytes
"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: <4014569c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40140861@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-25 16:07:58 PST
From: "Chris Luck" <chris@bvhg.freeXYZserve.co.uk>
Newsgroups: borland.public.delphi.language.objectpascal
References: <40140861@newsgroups.borland.com>
Subject: Re: RichEdit and Scrolling
Date: Sun, 25 Jan 2004 23:51:32 -0000
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 62.137.22.58
Message-ID: <4014569c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075074716 62.137.22.58 (25 Jan 2004 15:51:56 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail