Page 1 of 1
Mouse Cursor
Posted: Fri May 06, 2016 3:00 pm
by melliott42
Hello,
How do I set the Mouse Cursor (AKA Pointer) to and Hourglass and then back to the Default again?
Thanks,
Michael
Re: Mouse Cursor
Posted: Fri May 06, 2016 3:11 pm
by srvet_claudio
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)
Re: Mouse Cursor
Posted: Fri May 06, 2016 4:18 pm
by melliott42
srvet_claudio perfect.
Thanks!