When I try to get bar index by
ChartControl.GetSlotIndexByX(X)
I've also tried
ChartBars.GetBarIdxByX(ChartControl,X);
GetPosition(ChartControl).X
The issue occurs only on one PC.
On others PCs it works well.
Listed below is my code.
void OnLeftClick(object sender,MouseEventArgs mouse)
{
SplitFromCLick((int)mouse.GetPosition(ChartControl).X(float)mouse.GetPosition(ChartControl).Y);
}
public void SplitFromCLick(int X, float Y)
{
Print(String.Format("bar_index {0}",ChartControl.GetSlotIndexByX(X)));
}

Comment