
Hi,
I added two columns in ActiveX Gantt Chart form control as below:
When I run the Gantt Chart, the column label is being overridden somehow in the back end.
I'd like to know which class/method is responsible in writing these column labels? I was searching through Gant* classes but couldn't find any class or method that makes enough sense. It would be great if someone could point me to the right direction.
Thank You.
*This post is locked for comments
I have the same question (0)I found it inside GanttActiveXVarchart_WrkCtr.setTableFormatFieldConstantText() method.
Declare a new macro for each new column in the class declaration:
#define.TableColumnItemId(2) //New column
#define.TableColumnProductName(3) //New column
#define.TableColumnStart(4) //#define.TableColumnStart(2) -->'Start' Original Position = 2
#define.TableColumnEnd(5) //#define.TableColumnEnd(3) --> 'End' Original Position = 3
Then inside the method add switch cases to set the label:
// Item Id
case #TableColumnItemId:
_ganttVcTableFormatField.parmConstantText("@WAX1240");
break;
// Product Name@Description
case #TableColumnProductName:
_ganttVcTableFormatField.parmConstantText("@SYS25589");
break;