1. reverse text in window

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

new topic     » topic index » view message » categorize

2. Re: reverse text in window

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: reverse text in window

Thanks Derek,

And HAPPY NEW YEAR.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu