1. Color questions
- Posted by Luis <95203695 at XAEE.UB.ES> Dec 03, 1998
- 322 views
Hi euphorians! I'm creating a big application related with pharmacy studies and i have a problem.I'm using David's brilliant Win32lib under Windows 3.1!!!! with a Pentium200 & win32S.It works fine but...when i setBackgroundColor of text in a window,the color it's always white! how can i display Black letters with gray background on a gray window?? How can i ceate those cool-looking 3D group boxes,checks,radios and combos? do i have to use an additional dll? --------------------------- I would really like to know if there's someone interested on developing a chemistry program with me,Kinda Chemdraw & chem3D.Of course,fully written in Euphoria 2.0 Regards to everybody, Luis
2. Re: Color questions
- Posted by "Cuny, David" <David.Cuny at DSS.CA.GOV> Dec 03, 1998
- 313 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