lower a specific window in .mwmrc

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
lower a specific window in .mwmrc

Submitted by Anonymous on Tue, 02/11/2003 - 00:38.

Hi everyone

I have a motif dialog that I use in my system that is taking up too much screen real estate. I tried using the f.raise and f.lower functions in my. mwmrc file, unfortunately I have so many different layers of windows that this really is not a neat option.

What I would like to do is add 2 options under my currently existing F10 hotkey menu One to raise the big dialog and another to lower it. The user does not have to click anywhere specific. If the user hits "Raise" then by big dialog appears. Conversely if the user hits "Lower" it is hidden from the user.

Any help would be appreciated.

Thanks

Steve

Fri, 02/14/2003 - 03:21#1

Fri, 02/14/2003 - 03:21#1

ICS_support

lower a specific window in .mwmrc

f.lower doesn`t take a root context and an argument, so you can`t do it that way.

You could do an f.exec, where the program that runs seeks out your window (via, e.g. a property you attach to it) and explicitly does an XRaiseWindow() or XLowerWindow(), depending on where it is in the stack.

Note that this solution depends on the window manager.

Note also that the real problem is that your dialog is too big. Perhaps you can bury some information in Tabs within the dialog so as to reduce its complexity.