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
: 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