🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12135

How to prevent scrollbar scrolling

#12135
From: Sky
Date: Tue, 23 Dec 2003 00:52
23 lines
1589 bytes
Hi all
I want to prevent scrollbar scrolling,
for example:
1. create a form first
2. put a TPanel on the form and set the Align(alBottom).
3. put a TMemo on the form, Left = 0; Top = 0;
   and Paste some text in it.
4. put a focusable control on the Panel(i.e. TEdit)

if the height of Memo is more than the form,
the scrollbar(Form) will appear automatically by default.

if I scroll the scrollbar to the bottom
and change focus from TEdit(On the Panel) to TMemo(On the form),
the scrollbar of the form will scroll to the top
and some text will be selected automatically.

I just want to prevent the scrollbar scrolling.
but I don't want to add the scrollbar for the TMemo.

Any hint? Many thanks in advanced.

Sky
Technical Details
Message-ID: <3fe791bf@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4ce0bf2a840fdfb6,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-22 17:07:39 PST
From: "Sky" <huangc@163.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to prevent scrollbar scrolling
Date: Tue, 23 Dec 2003 08:52:28 +0800
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 218.104.133.50
Message-ID: <3fe791bf@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072140735 218.104.133.50 (22 Dec 2003 16:52:15 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail