🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: LoadCursor does not load the cursor

#15875
From: JD
Date: Wed, 11 Jun 2003 12:02
21 lines
1699 bytes
Alvise Valsecchi <alvise@hochfeiler.it> wrote:
> The app first creates several cursor (using CreateCursor()),
> then uses LoadCursor() to switch between them.

I would suggest to you that once you have created the cursor,
you add it to the screens cursors:

        HCURSOR hCursor = CreateCursor(...);
        Screen->Cursors[ valid index of choice ] = hCursor;

Then within the application, you can set an objects cursor:

        Edit1->Cursor = valid index of choice;

Note that you can replace specific cursors using their crName
(ie. crDefault) or you can suppliment the list of cursors by
adding to the end and/or both. How to determine the current
number of cursors in the list escapes me at the moment.

~ JD
Technical Details
Message-ID: <3ee71a51$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ee714ab@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e61b53baa785b088
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-11 05:24:29 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: LoadCursor does not load the cursor
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.201.109.14 172.201.109.14    
References:  <3ee714ab@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ee71a51$1@newsgroups.borland.com>
Date: 11 Jun 2003 05:02:25 -0700
X-Trace: newsgroups.borland.com 1055332945 207.105.83.65 (11 Jun 2003 05:02:25 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail