10347 : How to set the colour for a time item in PowerBuilder?

Question

How to set the colour for a time item in PowerBuilder?

Answer

Just like in all the Activex enabled languages you get hold of an interface for a GantTime and change the color property: IphDataEntity_GantTime2.Color. There is nothing different about PowerBuilder in this respect.

The Color property is a value of type OLE_COLOR, this value is a RGB value were Red Green and Blue have 255 possible shades and then occupy their own space in the lower three bytes in the available four of of OLE_COLOR  (r*256*256+g*256+b)

Leave a Reply