Hi,
I have a Teechart with a PointSeries that has an onClick event. When the user clicks on the series a dialog pops up when he/she can enter text for the marks labels. This works well but... I want the dialog pop up to be shown when the user clicks on the series marks too (the user will then be able to click on either the point series or the mark labels).
Currently, nothing happens when the user clicks on the marks (the point series OnClick event is not fired). How can I get an OnClick event for the series marks?
I have version 8.02 and use Delphi6. Thanks,
Bob
Click on marks
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Bob,
First of all please notice that v8.04 is available at the client download area.
You can solve your problem using OnMouseDown event and marks Clicked method, for example:
First of all please notice that v8.04 is available at the client download area.
You can solve your problem using OnMouseDown event and marks Clicked method, for example:
Code: Select all
procedure TForm1.Chart1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var i: Integer;
begin
i:=Series1.Marks.Clicked(X,Y);
if i <> -1 then
begin
//Add your code here
end;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 18
- Joined: Fri Nov 15, 2002 12:00 am
Click on Marks
Thanks! I'll update to the newest version soon