Board index » cppbuilder » Cursor change on TImage

Cursor change on TImage


2003-09-04 12:13:33 AM
cppbuilder57
When you change the cursor on a form by using
Form1->Cursor = crSizeAll;
The cursor changes immediatly
But when you do the same over a TImage using
Form1->Image1->Cursor = crSizeAll;
the cursor does not change until the cursor is moved
The question is how do you get the cursor to change on a
TImage immediatly without having to move the cursor ?
 
 

Re:Cursor change on TImage

This should fix it
POINT cp;
LPPOINT lpPoint = &cp;
Image1->Cursor = crHandPoint;
GetCursorPos(lpPoint); // API
SetCursorPos(lpPoint->x, lpPoint->y); // API
Rodolfo
"Kevin Simpson" < XXXX@XXXXX.COM >wrote in message
Quote

When you change the cursor on a form by using
Form1->Cursor = crSizeAll;
The cursor changes immediatly
But when you do the same over a TImage using
Form1->Image1->Cursor = crSizeAll;
the cursor does not change until the cursor is moved
The question is how do you get the cursor to change on a
TImage immediatly without having to move the cursor ?
 

Re:Cursor change on TImage

That solved the problem.
Thanks
"Rodolfo Frino" < XXXX@XXXXX.COM >wrote:
Quote
This should fix it

POINT cp;
LPPOINT lpPoint = &cp;
Image1->Cursor = crHandPoint;
GetCursorPos(lpPoint); // API
SetCursorPos(lpPoint->x, lpPoint->y); // API

Rodolfo

"Kevin Simpson" < XXXX@XXXXX.COM >wrote in message
news:3f56132d$ XXXX@XXXXX.COM ...
>
>When you change the cursor on a form by using
>Form1->Cursor = crSizeAll;
>The cursor changes immediatly
>But when you do the same over a TImage using
>Form1->Image1->Cursor = crSizeAll;
>the cursor does not change until the cursor is moved
>The question is how do you get the cursor to change on a
>TImage immediatly without having to move the cursor ?


 

{smallsort}