dmcnally
22nd January 2007, 17:57
Hello,

I am trying to change the DsNbackground attribute of a Dsctext object to something other than RGB.WHITE without success.

It is in the context of a 3GL script the code is as follows

|******************************************************
function creat.titl.win(long ttlx, long ttly, long ttlw, long ttlh, string ttlt(55),long bgcolor, long fgcolor)
{
|** Title Window

title.text = create.object(DsCtext, current.mwindow(),
DsNbackground, bgcolor,
DsNForeground, fgcolor,
DsNx, ttlx, DsNy, ttly,
DsNwidth,ttlw, DsNheight,ttlh,
DsNstring, ttlt,
DsNcolumns, 40, DsNrows, 1)

}
|*********************************************************

No matter what I set the DsNbackground color to it remains white.
Does anyone know what I might be doing wrong ?

Thanks in advance.

en@frrom
24th January 2007, 10:43
Try to give it a update.object(title.text)

dmcnally
24th January 2007, 13:52
en@frrom,

Thanks for the suggestion. I have tried the update.object to no avail.
I'll work around it and move on.

Thanks

kysersoze12
17th March 2007, 06:45
I m also facing the same problem .The colors are not getting displayed on form .