Page 1 of 1

TSelectorTool

Posted: Thu Apr 28, 2005 11:54 am
by 9339785
Hello,

I have a problem with the TSelectorTool.... when it is enabled, I can not drag the graph title without moving series displayed in the same time. With the legend there is no problem (when I drag the legend series are not moved).

Any idea of the pb ?
Franck

Posted: Fri Apr 29, 2005 12:08 pm
by 9339785
any ideas ?

Franck

Posted: Fri Apr 29, 2005 12:34 pm
by narcis
Hi Franck,

It works fine here for me using the latest version available (v7.04). Are you using this version? If so could you please send us a sample application we can run "as-is" to reproduce the problem here?

You can post your examples at [url]news://www.steema.net/steema.public%20attachments[/url] newsgroup.

Posted: Fri Apr 29, 2005 1:17 pm
by 9339785
I send you by email an example of my problem (I'm not authorised to post on newsgroup).

Franck

Posted: Mon May 02, 2005 3:25 pm
by narcis
Hi Franck,

Using the code below works fine:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1.FillSampleValues(200);

  Chart1.AllowPanning:=pmBoth;
  Chart1.ScrollMouseButton:=mbLeft;
  Chart1.Zoom.MouseButton:=mbRight;
end;

procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
  if Chart1.Title.Clicked(X,Y) then
    Chart1.AllowPanning:=pmNone
  else
    Chart1.AllowPanning := pmBoth;
end;