Using RGB colours

Posted by ojfoggin on 16-Dec-2009 05:38

Hi All,

I am trying to write a legend for a Gantt Chart.  The colours used in the Gantt Chart are user defined using an OCX control and are stored as RGB information on the database.

I can use the RGB colours in the Gantt Chart with no problems but I'm struggling to use them with Progress widgets (rectangles, fill-ins, etc...)

The legend is created dynamically (i.e. create fill-in lh-hanlde assign...)

Is there any way I can assign the BG-COLOR to be an RGB colour?

Thanks

Oliver

All Replies

Posted by ojfoggin on 16-Dec-2009 07:59

Well, I found a way round it by creating a colour in the color-table and assign the RGB value there.

Surely that's not very safe though?  What if someone also decides to use the colour number I have set?

Very strange that there isn't a better way of implementing this.

Posted by ksv on 16-Dec-2009 11:09

Actually you didn't say what version you use. The COLOR-TABLE isn't relevant in 10.2 and higher where you can use all power of .NET platform.

Well, the old good COLOR-TABLE I suppose was added in version 7 times when PSC supported both Windows & Motif and hasn't been changed since.

This thread is closed