Order of windows
Order of windows
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.
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Moreover, there are still StickyWindow() (if you want to "force" your windows to appear at the front) and SetForegroundWindow_()...
PB 4.30
Code: Select all
onErrorGoto(?Fred)

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.
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.Derek wrote:I assumed (quite wrongly) that it only gave the window focus, not actually bringing it to the front.
If you really want to bring a window to the front, then use SetForegroundWindow_() instead.
PB 4.30
Code: Select all
onErrorGoto(?Fred)