Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2009.05.24;
Скачать: CL | DM;

Вниз

Нажатие мышью в TChart   Найти похожие ветки 

 
Summer   (2009-04-06 15:46) [0]

У меня есть таблица StringGrid. В ней содержатся значения x и y. По ним я строю в TChart 2D график с помощью Series1.AddXY.
Как при нажатии на одну из точек графика определить, по каким значениям таблицы она построена?
Точки у меня - кружки диаметром 4 пикселя, и нужно чтобы значение определялось при нажатии не только точно в центр этих кружков, но и в любую их часть.


 
Сергей М. ©   (2009-04-06 15:49) [1]

Declaration
property OnClickSeries : TChartClickSeries;
Description
An OnClickSeries event occurs whenever the user clicks onto any Chart Series point. The Sender parameter specifies the Chart component that originated the event. The Series parameter is the corresponding clicked Series component, and the ValueIndex parameter refers to the exact clicked point in the Series. Series have also an OnClick event that can be used individually to catch clicked points. The Button, Shift, X and Y parameters determine the mouse button and mouse cursor coordinates at the time the Series point was clicked.

WARNING:
Use the CancelMouse property to control how the mouse button behaves with dual modes (scroll or zoom after a ClickOnSeries event)


 
Summer   (2009-04-06 15:58) [2]

Спасибо :)



Страницы: 1 вся ветка

Текущий архив: 2009.05.24;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.015 c
2-1239395171
Johnnnnn
2009-04-11 00:26
2009.05.24
Строка или текст через clipboard , незнаю как правильно.


6-1203280510
Strate
2008-02-17 23:35
2009.05.24
Определение имени процесса, которому пришёл пакет.


2-1239613794
Iriss
2009-04-13 13:09
2009.05.24
преобразовать к типу TColor


2-1239360310
Sanya_878
2009-04-10 14:45
2009.05.24
Помогите с поиском в ComboBox


2-1239643253
VoznikVopros
2009-04-13 21:20
2009.05.24
Как изменить заголовок окна при вызове ShowMessage()?