Link to home
Start Free TrialLog in
Avatar of Erick37
Erick37Flag for United States of America

asked on

Color Cursors

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.
ASKER CERTIFIED SOLUTION
Avatar of ameba
ameba
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try using platform SDK , There us have iconn editor + hotspot editor
Avatar of Erick37

ASKER

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?
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.
Avatar of Erick37

ASKER

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.
Avatar of Erick37

ASKER

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.
I'm glad you found the solution.
Thanks for the points.