void test_labels()
{
Worksheet wks = Project.ActiveLayer();
if ( wks )
{
Grid gg;
gg.Attach(wks);
vector<int> vnTypes;
gg.GetShowLabels(vnTypes);
//show it only when it is hidden, then later set labels for the first column
#define CHECK_ADD_LABEL(_Type) if ( !gg.IsLabelsShown(_Type) )vnTypes.Add(_Type);
CHECK_ADD_LABEL(RCLT_PARAM);
CHECK_ADD_LABEL(RCLT_PARAM);
CHECK_ADD_LABEL(RCLT_UDL);
gg.SetShowLabels(vnTypes);
Column colA(wks, 0);
colA.SetExtendedLabel("User Comments", RCLT_COMMENT);
colA.SetExtendedLabel("Parameter", RCLT_PARAM);
colA.SetExtendedLabel("Parameter 2", RCLT_PARAM + 1);
colA.SetExtendedLabel("User Defined Parameter", RCLT_UDL);
return;
}
}