Question
Using property TPhGantX.SetGridCellString(X, Y, sText).
With the above property, I am able to display the text (stext) on the left side.
Is there any way that I can change the color and font of this sText?
Answer
Yes. Each cell can be assigned a IphGridLayoutPropX. You can choose to set the same layout on all cells, unique layouts to all cells or anything in between.
Use IphGantX3.GetGridCellLayoutPropIndex, and IphGantX3.SetGridCellLayoutPropIndex to control each cell.
Once you have the hang of that you can set/control the following properties:
BackColor
EndEllipsis
Font
FontColor
FrameBottom
FrameColor
FrameLeft
FrameOptionsUse
FrameRight
FrameTop
HorzAlignCenter
HorzAlignRight
MinHeight
MinWidth
UseFontInfo
VertAlignCenter
WrapTextAndFit
Note that you must set UseFontInfo=true for Font and FontColor to be applied.