Article View: borland.public.cppbuilder.nativeapi
Article #12163Re: How to prevent scrollbar scrolling
From: Sky
Date: Wed, 24 Dec 2003 01:20
Date: Wed, 24 Dec 2003 01:20
75 lines
3046 bytes
3046 bytes
Hi Rodolfo Sorry for my English expression. Yes, I embedded a Memo into a form and the Form's scrollbars appeared. (I set the Memo's size bigger than Form's size) Then I embedded a Panel into this form and embedded a Edit into this Panel. Set the Panel's Align property 'alBottom' At run time 1. type some text in the memo 2. drag the vertical scrollbar to the bottomest. 3. Set focus to Edit(click in the Edit) 4. Change focus to Memo(Click in the Memo) when I change the focus to the Memo, the vertical scrollbar will scroll up to 0 position, even I import enough text in the Memo. How can I prevent the scrollbar from scrolling? Any hint will be great appreciated. Sky "Rodolfo Frino - Macrosoft" <Macrosoft@Atlantis.com> д����Ϣ���� :3fe8301c@newsgroups.borland.com... > If I understood correctly you have a Memo embedded into a form. > Because the Memo does not completely fit into the Form, the Form's > scrollbars (or at least one of them) will appear and they will automatically > scroll down to certain position. You want the Scrollbar to be visible but > you want their positions to be 0. If this is correct, then this is what you > can > do > > VertScrollBar->Position = 0; > HorzScrollBar->Position = 0; > > Rodolfo > > "Sky" <huangc@motic.com> wrote in message > news:3fe7e928@newsgroups.borland.com... > > Thanks Rodolfo, but the ScrollBar is necessary, > > I need to scroll the ScrollBar manually > > if my control size is more than the form size, > > not automatically. > > > > further hint? TIA > > > > Sky > > > > > > "Rodolfo Frino - Macrosoft" <Macrosoft@Atlantis.com> д����Ϣ���� > > :3fe79fbf@newsgroups.borland.com... > > > Try this > > > > > > VertScrollBar->Visible = false; > > > HorzScrollBar->Visible = false; > > > > > > Rodolfo > > > > > > "Sky" <huangc@163.com> wrote in message > > > news:3fe791bf@newsgroups.borland.com... > > > > Hi all > > > > I want to prevent scrollbar scrolling, > > > > for example:... > > > > > > > > > > > >
Technical Details
Message-ID:
<3fe8e9c1$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fe791bf@newsgroups.borland.com> <3fe79fbf@newsgroups.borland.com> <3fe7e928@newsgroups.borland.com> <3fe8301c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,4ce0bf2a840fdfb6 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-23 17:39:31 PST From: "Sky" <HuangC@motic.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fe791bf@newsgroups.borland.com> <3fe79fbf@newsgroups.borland.com> <3fe7e928@newsgroups.borland.com> <3fe8301c@newsgroups.borland.com> Subject: Re: How to prevent scrollbar scrolling Date: Wed, 24 Dec 2003 09:20:14 +0800 Lines: 77 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: <3fe8e9c1$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072228801 218.104.133.50 (23 Dec 2003 17:20:01 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail