[comp.windows.open-look] Problem with backgr.color from textsw

joep@tnosoes.izf.tno.nl (Joep Mathijssen) (05/28/91)

Hi,

I have three textwindows within a baseframe and I want to show
which window is 'keyboard_focused' by setting the backgroundcolor.
So on a KBD_USE or KBD_DONE event I set or reset the backgroundcolor.

When I do this using: "xv_set(basefrm.window1, WIN_BACKGROUND_COLOR, x, NULL)"
I get the following problem: when reseting the window-color, the 
margin in front of lines with text are colored incorrect (color[0]).

After some trials I tried something NEW: "I'll use two colormaps!".
One for an active window one for an inactive. So on a KBD_USE or KBD_DONE
event I change colormap. But also a NEW problem occurred: everytime
I open the "Term pane" on one of the textwindows it's a suprise
which colors will be shown. 

What I the correct way to do this?

Joep,

===============================================================================
Joep Mathijssen
TNO Institute for Perception    Phone : +31 34 63 562 11
P.O. Box 23          		Fax   : +31 34 63 539 77
3769 ZG  Soesterberg    	E-mail: uunet!hp4nl.nluug.nl!tnosoes!joep
The Netherlands         	    or: joep@izf.tno.nl
===============================================================================