Thread View: comp.os.ms-windows.programmer.tools
3 messages
3 total messages
Started by Galen Raben
Fri, 08 Jan 1993 00:12
VB - custom cursors??
Author: Galen Raben
Date: Fri, 08 Jan 1993 00:12
Date: Fri, 08 Jan 1993 00:12
14 lines
928 bytes
928 bytes
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
Re: VB - custom cursors??
Author: Don Hackler
Date: Sat, 09 Jan 1993 22:41
Date: Sat, 09 Jan 1993 22:41
32 lines
1560 bytes
1560 bytes
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
Re: VB - custom cursors??
Author: John Zempel
Date: Sun, 10 Jan 1993 19:17
Date: Sun, 10 Jan 1993 19:17
43 lines
2204 bytes
2204 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads