home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!network.ucsd.edu!swrinde!zaphod.mps.ohio-state.edu!wupost!morpheus!jzempel
- From: jzempel@morpheus.wustl.edu (John Zempel)
- Newsgroups: comp.os.ms-windows.programmer.tools
- Subject: Re: VB - custom cursors??
- Date: 10 Jan 93 19:17:40 GMT
- Organization: Washington University in Saint Louis, MO USA
- Lines: 43
- Message-ID: <jzempel.726693460@morpheus>
- References: <54540004@hpgrla.gr.hp.com> <3us5wB3w165w@shakala.com>
- NNTP-Posting-Host: morpheus.wustl.edu
-
- donh@shakala.com (Don Hackler) writes:
-
- >galenr@hpgrla.gr.hp.com (Galen Raben) writes:
-
- >> Would anyone happen to know how to create a custom cursor
- >> in VB (either 1.0 or 2.0)??? I am in need of a large "box"
- >> cursor when I pass over a certain set of controls.
- >>
- >> One thought I had is that I could hack one of the preset
- >> cursors using a resource editor - Since I haven't had
- >> a need for this before I haven't a clue where to start
- >> looking, instinct tells me those are in Windows itself
- >> though :-( Is there a way to change one using code and
- >> have it active only until my application terminates?
- >>
- >> Thanks!!
- >> - Galen -
- >> galenr@hpgrla.gr.hp.com
-
- >The mouse cursors in Windows are limited to 32x32 pixels.
-
- >You could possibly hide the mouse cursor when the mouse is
- >over your special area and just draw the rectangle yourself.
- >You will have to get rid of the rectangle and restore the mouse
- >cursor when the mouse moves out of the area.
-
- >I'm guess these things can be done in VB, I know they can be
- >in C.
-
- >- don
-
- >------------------------------------------------------------------
- >Don Hackler - donh@shakala.com
- >Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289
-
- The best way to do this in VB is to purchase the custom control addon called
- CCF-Cursors from Desaware. It is true that you can do it with a DLL written
- in C, but the CCF package costs less that $40 and already has been debugged,
- so it works! It also includes some subclassing features that allow you to
- detect events that happen on with any control. The number for Desaware is
- (408) 377-4770. -Just a satified customer-
-
- John
-