Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with cursor image

Status
Not open for further replies.

MechanicalBoy

Technical User
Aug 11, 2002
11
PL
My problem concerns mouse pointer image.
On the form i have a panel (which name is 'pan') and when i click on it OnMouseDown event is called immediately:

void __fastcall TForm1::panMouseDown(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y)
{
pan->Cursor = crDrag;
if( Button == mbLeft )
{
Prog->Set_Mouse_Down(true);
Prog->Assign_Pt_MDown( X , Y );
.
.
.
}
but instruction "pan->Cursor = crDrag;" is executed (and mouse pointer image is changed on crDrag) when the mouse is UP

Why not in the same time in which mouse is pressed ?

Thanks for any help ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top