Page 1 of 1

Order of windows

Posted: Sun Jan 06, 2008 8:48 pm
by Derek
It would be nice to have some native commands to arrange the order of windows, I sometimes have several windows overlapping and would like to be able to force a particular window to the front.

Posted: Sun Jan 06, 2008 9:13 pm
by netmaestro
SetActiveWindow() doesn't work for you?

Posted: Sun Jan 06, 2008 9:17 pm
by AND51
Moreover, there are still StickyWindow() (if you want to "force" your windows to appear at the front) and SetForegroundWindow_()...

Posted: Sun Jan 06, 2008 9:33 pm
by Derek
:oops:

Never thought of using setactivewindow(), I assumed (quite wrongly) that it only gave the window focus, not actually bringing it to the front.

I did a search and didn't get any results other than hacks etc, most of them a few years old.

Haven't actually had to force a window to the front before so I hadn't gone looking for the command.

Posted: Sun Jan 06, 2008 11:46 pm
by AND51
Derek wrote:I assumed (quite wrongly) that it only gave the window focus, not actually bringing it to the front.
Actually, that's right. IIRC SetActiveWindow() only re-organizes the internal Z-window order, but it does not really bring a window to the front like ALT+TAB does.
If you really want to bring a window to the front, then use SetForegroundWindow_() instead.

Posted: Mon Jan 07, 2008 5:23 pm
by Derek
I see, thanks.