Article View: borland.public.cppbuilder.nativeapi
Article #722Re: How to Hide Mouse Pointer after an idle period?
From: Phuoc
Date: Fri, 18 Jan 2008 23:36
Date: Fri, 18 Jan 2008 23:36
55 lines
2041 bytes
2041 bytes
thank you for the one part of the solution. and what's the best way to fire a timer? i.e. detect the idle pointer and start counting the time. Also, how to catch the first mouse movement to bring back the pointer? On Sat, 19 Jan 2008 01:05:45 +1100, Asger Joergensen <junk@Asger-P.dk> wrote: > > Hi Phuoc > Phuoc says: >> I want to hide the mouse pointer after idling for few seconds and bring >> it >> back as soon as it's moved. I've seen this effect in many programs. Is >> there any sample codes? > > How about setting Screen->Cursor = crNone; > > or the API way > > SetCursor function establishes the cursor shape. > > HCURSOR SetCursor( > HCURSOR hCursor // handle of cursor > ); > > or > > SetSystemCursor ( > HCURSOR hcur, // set specified system cursor to this cursor's > contents, > // then destroy this > DWORD id // system cursor specified by its identifier > ); > > Kind regards > Asger -- =============================== I'm using BCB5 on XP Home
Technical Details
Message-ID:
<op.t45furn6ewlac1@centrino>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<op.t44k6rb4ewlac1@centrino> <MPG.21fad0a6cb76c217989a09@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,55afad01d4e866e0 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 19 Jan 2008 10:36:17 +1100 Subject: Re: How to Hide Mouse Pointer after an idle period? From: Phuoc <xyz.home@xyz.huaonline.com.xyz> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi References: <op.t44k6rb4ewlac1@centrino> <MPG.21fad0a6cb76c217989a09@newsgroups.borland.com> Content-Transfer-Encoding: Quoted-Printable Message-ID: <op.t45furn6ewlac1@centrino> User-Agent: Opera Mail/9.20 (Win32) NNTP-Posting-Host: 122.148.157.161 X-Trace: newsgroups.borland.com 1200699369 122.148.157.161 (18 Jan 2008 15:36:09 -0700) Lines: 55 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail