MechanicalBoy
Technical User
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:anMouseDown(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 ?
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:anMouseDown(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 ?