Solved

Color Cursors

Posted on 2000-05-02
8
449 Views
Last Modified: 2008-02-20
Why do my 16 color cursors appear B&W in VB6?  Is it at all possible to display a custom cursor in color?  I know if I use an icon I can get color, but icons do not support a hotspot.
0
Comment
Question by:Erick37
  • 4
  • 3
8 Comments
 
LVL 15

Accepted Solution

by:
ameba earned 100 total points
ID: 2769941
see: Animated Cursor Demo Source Code
http://www.nease.net/~zealsoft/download/
0
 
LVL 4

Expert Comment

by:amit_panjwani
ID: 2769945
try using platform SDK , There us have iconn editor + hotspot editor
0
 
LVL 15

Expert Comment

by:ameba
ID: 2770002
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 32

Author Comment

by:Erick37
ID: 2770290
So the bottom line is that VB does directly support anything but monochrome cursors?  

Why the heck does ImageEdit (shipped with VB5) allow the creation of 16 color cur files?
0
 
LVL 15

Expert Comment

by:ameba
ID: 2770318
I think it works on some systems (MS Plus?).

So, you'll have to include your nice .Cur files to your setup and use few APIs.
Or perhaps use .res file and cursor resources, but I don't have the code for this now.
0
 
LVL 32

Author Comment

by:Erick37
ID: 2770355
I'm using Win98, and I see that other apps use 16 color cursors, Winamp for example.

Currently I am using the cursors stored in a resource file, and loading them using LoadResPicture.

I will try using the API now.
0
 
LVL 32

Author Comment

by:Erick37
ID: 2773540
OK, problem solved.  As it turns out, all I needed to do was to compile the project into an executable.  Then the cursor resources appeared in color.  In the VB IDE, they showed as B&W.

I used the resource tools in VS6 to create the cursors.

I will give ameba the pts, because I was trying the LoadCursor API when I discovered this problem.  The API's returned 0 when in IDE, so I made the executable.  Then I realized SetCursor worked, and so did LoadResPicture and MouseIcon = ...

Thanks for all the help.
0
 
LVL 15

Expert Comment

by:ameba
ID: 2773882
I'm glad you found the solution.
Thanks for the points.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question