1. I need the last (...?) clue...
- Posted by JesusC - Jesus Consuegra <jconsuegra at REDESTB.ES> Apr 18, 1998
- 594 views
Having almost finished the porting of my Termometer Program to Windows, I've run into trouble again... Although the latest enhancements of Win32lib allow to flood the background of a window with a plain color, when writing text, it gets boxed on a whithe rectangle on top of the window background.... Any ideas?. Jesus.
2. Re: I need the last (...?) clue...
- Posted by David Cuny <dcuny at DSS.CA.GOV> Apr 17, 1998
- 590 views
Jesus wrote: > ... text background color Yes, I've seen the problem. That and the fixing the combo boxes are high = priority items for this weekend. Here's the blurb from the Win32 help = file: "Text and Background Color Applications can use the SetTextColor function to set the color of text = drawn in the client-area of their windows, as well as the color of text = drawn on a color printer. An application can use the SetBkColor function = to set the color that appears behind each character and the SetBkMode = function to specify how Windows should blend the selected background = color with the current color or colors on the video display.=20 The default text color for a display device context is black; the = default background color is white; and the default background mode is = OPAQUE. An application can retrieve the current text color for a device = context by calling the GetTextColor function. An application can = retrieve the current background color for a device context by calling = the GetBkColor function and the current background mode by calling the = GetBkMode function. " You can call SetBkColor with to SetBackColor( iWin, iRGB ). Jeff had = sent me some code that I've tried this out on. The title text for the = SLE changes when you set the background color, but not the text on the = Frames. I'm not sure what attributes the SLE has that the Frame doesn't. = I'll have to play with it some more. Sorry I don't have an immediate fix. -- David Cuny