Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple Windows

0 views
Skip to first unread message

Will Luesley

unread,
Apr 22, 1999, 3:00:00 AM4/22/99
to
I'm trying to code an interface to a program that makes bass sounds, the
interface has a couple of boxes round the edge, and a main space in the
middle where i want a number of windows which control different aspects.

The thing is I want it so sometimes one of the windows can be large and in
front of the others, and then sometimes they are all visible together.

My problem is I cannot work out how you activate child windows, i.e. how do
I move window x in front of all the others. TIling them all is easy but its
the moving of one window in front of another I don't get.

Any help appriciated


Will

Frank Meisschaert

unread,
Apr 23, 1999, 3:00:00 AM4/23/99
to
Will Luesley (w.lu...@ic.ac.uk) wrote:
: The thing is I want it so sometimes one of the windows can be large and in

: front of the others, and then sometimes they are all visible together.

: My problem is I cannot work out how you activate child windows, i.e. how do
: I move window x in front of all the others. TIling them all is easy but its
: the moving of one window in front of another I don't get.

Bind an event (e.g. left mouse button clicked on title bar) to the function
raise or lower. In your window library there should be functions with names
who look like this: in Tk they are called raise and lower; in Xlib they are
called XRaiseWindow and XLowerWindow. Keep in mind that only windows which
are at the same level (in the same stack) can be raised and lowered with
respect to each other. You can choose to use top-level windows for all your
widgets so you can move/show them all over the desktop. Child windows can
only be stacked inside their parent windows. (The desktop is actually the
root window). Another thing to keep in mind is that any interaction (i.e.
user interaction) with child windows can only occure if the parent window
has the focus (you might need to grab it).

Hope this helps. If you allready knew this please don't hold it against me.

Frank Meisschaert

0 new messages