Subj : Re: Working with color, windows To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Fri Dec 05 2003 02:05 pm > Years working in DOS, I had color ... Yes, and now you are asking about EasyWin which is also "years ago", 16 bit Windows 3.1x and also obsolete (and which does not support color). Win32 is the current platform. Pay attention to programming for that so as not to waste your efforts on something for an operating system that is obsolete. In GUI programs text color is set with the Windows API function SetTextColor. Text background is set with the Windows API function SetBkColor. If you wish to not alter the background you can use SetBkMode to TRANSPARENT and only the text and not the background will be written (side note: those functions are the same in the 16 bit Windows platform). OWL has its own system for colors and it would be useful to look at the OWL example programs provided with the compiler to see how to do it with OWL. In Win32 you can also create a console mode program. That is text mode, similar in appearance to a DOS window. Most of the functions from CONIO.H work with console mode and you can set colors. .. Ed > Rob C. wrote in message > news:3fd0ca67$1@newsgroups.borland.com... > > I absolutely must have color when I program. Years working in > DOS, I had color, BC++, DOS platform, I have color . . . I simply > can’t understand how anybody would want to write programs > without color. So now here I want to write windows OOP > programs (EasyWin, Win32, what else is there?), but I can’t > seem to figure out the TColor class. For example:in the book > it says I want #include . I can’t find that. There is an > #include (which doesn’t define the TColor class), > but no . > > Or do you have any other ideas? .