Mouse Cursor

Moderator: Rathinagiri

Post Reply
melliott42
Posts: 119
Joined: Wed Feb 18, 2009 2:14 pm

Mouse Cursor

Post by melliott42 » Fri May 06, 2016 3:00 pm

Hello,

How do I set the Mouse Cursor (AKA Pointer) to and Hourglass and then back to the Default again?

Thanks,

Michael

User avatar
srvet_claudio
Posts: 2044
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 35 times
Been thanked: 146 times
Contact:

Post by srvet_claudio » Fri May 06, 2016 3:11 pm

melliott42 wrote:Hello,

How do I set the Mouse Cursor (AKA Pointer) to and Hourglass and then back to the Default again?

Thanks,

Michael
See:

Code: Select all

SetWindowCursor (Form_1.HANDLE, IDC_HAND)
SetWindowCursor (Form_1.Control_1.HANDLE, IDC_HAND)
defined in i_controlmisc.ch:

Code: Select all

// System Cursor ID
#define IDC_ARROW  (32512)
#define IDC_IBEAM  (32513)
#define IDC_WAIT  (32514)
#define IDC_CROSS  (32515)
#define IDC_UPARROW  (32516)
#define IDC_SIZENWSE  (32642)
#define IDC_SIZENESW  (32643)
#define IDC_SIZEWE  (32644)
#define IDC_SIZENS  (32645)
#define IDC_SIZEALL  (32646)
#define IDC_NO  (32648)
#define IDC_HAND  (32649)
#define IDC_APPSTARTING  (32650)
#define IDC_HELP  (32651)
#define IDC_ICON  (32641)
#define IDC_SIZE  (32640)
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

melliott42
Posts: 119
Joined: Wed Feb 18, 2009 2:14 pm

Post by melliott42 » Fri May 06, 2016 4:18 pm

srvet_claudio perfect.

Thanks!

Post Reply