Question
phGantTimePackage: How can I change backcolor and font for the tree columns header?
Answer
You create GridLayoutProperties
phGantX1.GridLayoutPropAdd
phGantX1.GridLayoutPropAdd
phGantX1.GridLayoutPropAdd
and init them to the values you want
phGantX1.GridLayoutPropSet 0, ColorConstants.vbYellow, ColorConstants.vbBlack, “Helvetica”, 8, 20, 20, False, True, False, True, False
phGantX1.GridLayoutPropSet 1, ColorConstants.vbRed, ColorConstants.vbBlack, “Helvetica”, 8, 20, 20, False, True, False, True, False
phGantX1.GridLayoutPropSet 2, ColorConstants.vbBlue, ColorConstants.vbWhite, “Helvetica”, 8, 20, 20, False, True, False, True, False
Then you can use them in the header cells:
For icol = 0 To phGantX1.GridColumnCount – 1
phGantX1.SetGridCellLayoutPropIndex icol, 0, 1 ‘ Use the no 1 LayoutProperty in all header cells (row=0)
Next icol