Border Editor Issue
Posted: Tue Jul 03, 2018 2:57 pm
Hi,
We are currently facing an issue for the Color Line tool when opening the border editor dialog through code. Earlier we were using TeeChart Pro ActiveX 2007, where the editor appeared through the following code:
m_Chart1.GetTools().GetItems(pItem->iRow-1).GetAsColorLine().GetPen().ShowEditor();
Now we have upgraded to TeeChart Pro ActiveX 2018 and now while opening the border editor dialog, few parameters are also expected as shown below:
m_Chart1.GetTools().GetItems(pItem->iRow - 1).GetAsColorLine().GetPen().ShowEditor(FALSE , "Annotation Editor" , 1);
We have specified the first two parameters but are not sure about the third parameter. Currently we are passing 1 for the third parameter(i.e. ownerChart) but this code gives access violation. The image has given below:
Please suggest as to how to open the border editor dialog.
Regards,
Bhanu
We are currently facing an issue for the Color Line tool when opening the border editor dialog through code. Earlier we were using TeeChart Pro ActiveX 2007, where the editor appeared through the following code:
m_Chart1.GetTools().GetItems(pItem->iRow-1).GetAsColorLine().GetPen().ShowEditor();
Now we have upgraded to TeeChart Pro ActiveX 2018 and now while opening the border editor dialog, few parameters are also expected as shown below:
m_Chart1.GetTools().GetItems(pItem->iRow - 1).GetAsColorLine().GetPen().ShowEditor(FALSE , "Annotation Editor" , 1);
We have specified the first two parameters but are not sure about the third parameter. Currently we are passing 1 for the third parameter(i.e. ownerChart) but this code gives access violation. The image has given below:
Please suggest as to how to open the border editor dialog.
Regards,
Bhanu