Problem with 'ClickBackground' event

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Marco
Newbie
Newbie
Posts: 18
Joined: Thu Sep 27, 2007 12:00 am
Location: 73 Savoie, FRANCE

Problem with 'ClickBackground' event

Post by Marco » Tue Jul 08, 2008 1:00 pm

Hi,
I use the event 'ClickBackground' with a graph on BDS2006 with V8.

My code in the event function is interpreted but then I can't do some or deplacement on my graph, like a normal click with no 'ClickBackground' event.

Is there a way to execute 'ClickBackground' function and continue the normal execution of my click ?

Thanks
Chacal

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jul 10, 2008 4:04 pm

Hi Chacal,

Yes, you can do something like this:

Code: Select all

procedure TForm1.Chart1ClickBackground(Sender: TCustomChart; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
showmessage('d');
Chart1.TabStop := true;
end;
 
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.TabStop:=true;
end;
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Marco
Newbie
Newbie
Posts: 18
Joined: Thu Sep 27, 2007 12:00 am
Location: 73 Savoie, FRANCE

Post by Marco » Fri Jul 11, 2008 10:29 am

Hi Narcis,
I tried to do ChartTemp->TabStop=true; in formCreate and ClickBackground function but there is no changes. The zoom is still disabled.

If I suppress the ClickBackground function the zoom is working.

Is there a difference with C++ Builder 2006 ? Another thing I can test ?

Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jul 16, 2008 7:17 am

Hi Chacal,

Yes, you are right. It used to work in some Delphi versions. I've added the issue (TF02013249) to the defect list to be fixed for next releases. In the meantime you can use the OnMouseDown event.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply