🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Moving Cursor under Program Control?

#3966
From: Bob Gonder
Date: Sun, 09 Apr 2006 03:45
22 lines
1954 bytes
Nick Gessler wrote:

>void __fastcall TForm1::FormMouseMove(TObject *Sender, TShiftState Shift,
>      int X, int Y)
>{
>   Form1->Canvas->Pixels[X][Y] = clBlack;
>   if (X <= 10) {

Why test the X and Y, why not just reset to the middle every time?

>the height of the top banner (which I have not done yet).  And
>interesting that to get to the close icon one must "sneak" off
>of the Form window...

You might also add a test for Right+Left click to disable the
centering and alow proper mouse usage.

>Is there any way I can speed up the mouse sample rate or keep 
>it constant? 

Take a look at SystemParametersInfo() and particularly the
SPI_SETMOUSE setting.
Technical Details
Message-ID: <lf0h32tun6n5ktfg3jgusahmf1moocgh8k@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4435c27b$1@newsgroups.borland.com> <4436a479$1@newsgroups.borland.com> <4436e650$1@newsgroups.borland.com> <44370981$1@newsgroups.borland.com> <4437fa99$1@newsgroups.borland.com> <44380995$1@newsgroups.borland.com> <4438251b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,40f8797b34d0291f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Moving Cursor under Program Control?
Date: Sat, 08 Apr 2006 20:45:51 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <lf0h32tun6n5ktfg3jgusahmf1moocgh8k@4ax.com>
References: <4435c27b$1@newsgroups.borland.com> <4436a479$1@newsgroups.borland.com> <4436e650$1@newsgroups.borland.com> <44370981$1@newsgroups.borland.com> <4437fa99$1@newsgroups.borland.com> <44380995$1@newsgroups.borland.com> <4438251b$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.49.208.129
X-Trace: newsgroups.borland.com 1144554349 71.49.208.129 (8 Apr 2006 20:45:49 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail