Re: Color questions
- Posted by "Cuny, David" <David.Cuny at DSS.CA.GOV> Dec 03, 1998
- 440 views
Luis wrote: > but...when i setBackgroundColor of text > in a window,the color it's always white! I've fixed the problem. Add the constants: constant TRANSPARENT = 1, OPAQUE = 2 and the following code to the end of the putFontIntoHDC function: -- use transparent mode when writing text if not c_func(xSetBkMode, {hdc, TRANSPARENT} ) then -- unable to set background mode warnErr( "SetBkMode in putFontIntoHDC failed." ) end if This should take care of the problem. -- David Cuny