🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Moving Cursor under Program Control?

#3961
From: Remy Lebeau (TeamB)
Date: Sat, 08 Apr 2006 00:45
21 lines
1709 bytes
"Nick Gessler" <gessler@ucla.edu> wrote in message
news:4436e650$1@newsgroups.borland.com...

> I'm sure I could "bend" the usual use of the mouse with a
> MouseMove event handler for the Form, but then there will
> be a data-collection problem every time the cursor hits the
> edge of the form.  I was hoping there might be some way to
> tell the cursor to go back to the center of the screen.

You can move the mouse cursor anywhere you want, using the VCL's
TMouse::CursorPos property or the Win32 API SetCursorPos() function.

> Oh well...  I think I'll have to leave writing a new device driver
> to some time in the future.

I am still unsure of what exactly you are trying to accomplish.  Can you
provide a more detailed example?


Gambit
Technical Details
Message-ID: <44370981$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,40f8797b34d0291f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4435c27b$1@newsgroups.borland.com> <4436a479$1@newsgroups.borland.com> <4436e650$1@newsgroups.borland.com>
Subject: Re: Moving Cursor under Program Control?
Date: Fri, 7 Apr 2006 17:45:16 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44370981$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144457601 68.69.17.41 (7 Apr 2006 17:53:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail