Right Click event for chart object?

TeeChart for ActiveX, COM and ASP
Post Reply
hansw
Newbie
Newbie
Posts: 59
Joined: Fri Nov 15, 2002 12:00 am

try this

Post by hansw » Sun Dec 28, 2003 11:48 pm

Setup a handler for

int the header file
afx_msg void OnMouseDownTChart(long Button, long Shift, long X, long Y);

in the cpp file...

BEGIN_EVENTSINK_MAP(C_TeeChartView, CView)
ON_EVENT(C_TeeChartView, IDC_TCHART1, 19 /* OnMouseDown */, OnMouseDownTChart, VTS_I4 VTS_I4 VTS_I4 VTS_I4)
....
END_EVENTSINK_MAP()

the handler

void OnMouseDownTChart(long Button, long Shift, long X, long Y) ;

The variable Button wil be set to left right middle etc.

Set a break point and clikc a button, you will soon figure the value in Button that equals RIgh Mouse button.

Good luck.

Hans W

Post Reply