[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 456
  • Last Modified:

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.
0
Erick37
Asked:
Erick37
  • 4
  • 3
1 Solution
 
amebaCommented:
see: Animated Cursor Demo Source Code
http://www.nease.net/~zealsoft/download/
0
 
amit_panjwaniCommented:
try using platform SDK , There us have iconn editor + hotspot editor
0
 
amebaCommented:
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now