Page 1 of 1

Problem with 'ClickBackground' event

Posted: Tue Jul 08, 2008 1:00 pm
by 10546851
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

Posted: Thu Jul 10, 2008 4:04 pm
by narcis
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!

Posted: Fri Jul 11, 2008 10:29 am
by 10546851
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

Posted: Wed Jul 16, 2008 7:17 am
by narcis
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.