[Bug?] Setting cursor to crHandPoint does not work

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MOGAMOGA
Newbie
Newbie
Posts: 2
Joined: Thu May 31, 2018 12:00 am

[Bug?] Setting cursor to crHandPoint does not work

Post by MOGAMOGA » Mon Sep 17, 2018 7:14 am

I try to set the cursor to crHandPoint when the mouse moves over the chart:

Code: Select all

void __fastcall TForm3::Chart1MouseMove(TObject *Sender, TShiftState Shift, int X, int Y)
{
  Chart1->Cursor=crHandPoint;
}
However, the mouse will briefly change to crHandPoint then it will immediately return to crDefault.

--------

Update:
Also this will not work:

Code: Select all

void __fastcall TForm3::btnTestClick(TObject *Sender)
{
   Chart1->Cursor=crHandPoint;
}

Yeray
Site Admin
Site Admin
Posts: 8971
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: [Bug?] Setting cursor to crHandPoint does not work

Post by Yeray » Tue Sep 18, 2018 7:06 am

Hello,

Try setting CancelMouse property after setting the Cursor:

Code: Select all

procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
  Chart1.Cursor:=crHandPoint;
  Chart1.CancelMouse := True;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply