Capture Mouse Events

Questions about MultiCharts .NET and user contributed studies.
HPF
Posts: 47
Joined: 02 Apr 2013
Has thanked: 11 times
Been thanked: 7 times

Capture Mouse Events

Postby HPF » 07 Nov 2013

Hi,

I have MultiCharts 8.7 (build 7410). I have an indicator, and I am trying to capture mouse events.

Code: Select all

namespace PowerLanguage.Indicator
{
[MouseEvents]
public class my_indicator : IndicatorObject
{

... the usual stuff ...

protected override void OnMouseEvent ( MouseClickArgs args )
{
Output.WriteLine ("triggered");
}
}
}
With this code, my event is triggered whenever I click into the original chart (subchart #1). My indicator is displayed in subchart #2. When I click into subchart #2, the above event handler is not called. How do I capture mouse clicks in subchart #2?

Thanks for your help,

HPF
Last edited by HPF on 08 Nov 2013, edited 1 time in total.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Capture Mouse Events

Postby Henry MultiСharts » 07 Nov 2013

Hello HPF,

We will check that.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Capture Mouse Events

Postby Henry MultiСharts » 08 Nov 2013

Hello HPF,

At the moment that is not technically possible to capture mouse clicks in subchart #2.
We are going to add this functionality in one of the future versions of MultiCharts.


Return to “MultiCharts .NET”