Re: selection & always on top

Scott Raney ((no email))
Mon, 11 Oct 93 19:05:54 MDT

>
> Hi to all subscribers to the metacard list!
>
> I have two questions that I wonder if someone have any answers to.
>
> First, is there a way to detect if a stack is partly or wholly covered by another
> window? We're in the development of a program that contain a big display window
> and a smaller controller windpw (the one with all the buttons). What we would
> like to do is to move the controller window in front of another window if the
> (probably naive) user by misstake put the control window behind something. I
> could believe that a think like this might depend on the window manager. The
> wm I use is olvwm on a Sun SPARC with 4.1.x

The easiest way to do this is to open the smaller window as a modal
dialog from the larger one. That way you won't be fighting the window
manager all the time. Note that this will probably only work for mwm:
it probably won't work with twm and olwm (and its variants) because
they are broken WRT modal dialogs (among other things ;-)

One other possible techique is checking "the openStacks" in an idle
handler and using "go" to bring a stack back to the top.

> Another thing that I don't really know how to solve is how to change a selected
> item from a button. If I for example had a button called "delete" and the
> purpose of the button is to remove the selected object, the object gets
> unselected the same instant I click on the button. Iv'e found a way to do it in
> the normal editing (pointer?) mode by using button 2 and 3 on the mouse, but not
> in browse mode. Is there an easy work around for this, or is it I who have
> misunderstod something.

Set the button's traversalOn property to false to fix this problem.

> Thanks in advance and best regards,
>
> Robert
>

-- 
***********************************************************************
* Scott Raney  303-447-3936            Remember: the better you look, *
* raney@metacard.com                   the more you'll see -- Lidia   *
***********************************************************************