1. reverse text in window
- Posted by dcole Dec 29, 2011
- 1386 views
Hello everyone,
How do I print reverse text in windows?
in DOS:
include graphics.e procedure norm_text() text_color(BRIGHT_RED) bk_color(WHITE) end procedure procedure rev_text() text_color(WHITE) bk_color(BRIGHT_RED) end procedure norm_text() puts(1,"hello" &"\n") rev_text() puts(1,"hello" &"\n")
This works
in Windows:
procedure norm_text() setTextColor(Window1,BrightRed) ????????????(Window1White) end procedure procedure rev_text() setTextColor(Window1,White) ????????????(Window1,BrightRed) end procedure norm_text() wPuts(Window1,"hello") rev_text() wPuts(Window1,"hello")
I don't want to change the background color of the whole window. Just the line that says "hello".
I must be missing something here.
Don Cole
2. Re: reverse text in window
- Posted by DerekParnell (admin) Dec 29, 2011
- 1360 views
dcole said...
Hello everyone,
How do I print reverse text in windows?
I don't want to change the background color of the whole window. Just the line that says "hello".
Don Cole
Don't write the text to a window. Instead, create a LText control and write into that. You can change the FG abd BG colors of the LText without affecting the parent window.
3. Re: reverse text in window
- Posted by dcole Dec 31, 2011
- 1285 views
Thanks Derek,
And HAPPY NEW YEAR.
Don Cole