MidToFront
v2.1
Copyright © 1997
Jack Perry
LEGAL STUFF:
The author cannot be held responsible for any damage done to
your computer system, whether through his negligence or yours. This
software is Freely Redistributable.
REQUIREMENTS:
An Amiga with WB 2.04+.
WHAT IT IS:
Have you ever wanted to bring a window up to the front of
the screen, but other windows were in the way? MidToFront is my
way of getting around that. It is a Commodity which brings the
window beneath the pointer to the front of the screen using the
middle mouse button.
Version 2.0 is significantly improved over the previous
versions; instead of a two- or three-hour hack, it took me all day.
Besides rewriting it from scratch in SAS/C 6.51 (it used to be in
Benchmark Modula-2), I added an options window and Tooltypes. I
learned a lot about programming today. :)
Version 2.1 is a small update.
WHAT'S INCLUDED:
I included four versions of the executable for the processors
available: 68000, 68020, 68030, and 68040. Install whichever one you
prefer.
HOW IT WORKS:
To start from the Workbench, double-click on the icon.
To start from a CLI, type "[path]MidToFront".
Or just put it in your WBStartup drawer like I do, and it takes
care of itself.
Once it's working, IF you have a three-button mouse, you can click
on any window with the middle button, and it will come to the front of the
screen.
Backdrop windows are excluded from this, of course... :)
SPECIAL OPTIONS:
There are the standard AmigaDOS Tooltypes which seemed relevant:
CX_POPUP, CX_PRIORITY, CX_POPKEY, DONOTWAIT. MidToFront likes its own
tooltypes as well:
ACTIVATE: If set to YES, the window will not only be brought to
the front, but activated (default is YES).
PUSHBACK: If set to YES, and the window under the pointer is
already in front, it will be pushed to the back (default
is NO; see TROUBLESHOOTING below).
TROUBLESHOOTING:
I'm afraid this simply won't work without WB 2.x+. On the other
hand, it works very nicely with WB 2.x+.
If clicking the mousebutton like mad doesn't do what you want,
that's because the program discards double-clicks. Wait a moment before
you hit the middle mouse button again.
(There's a very good reason I do this; it has to do with a bug
in AmigaOS.)
KNOWN BUGS:
As far as I can tell, there are no bugs in MY code. (Apart from what's
mentioned under TROUBLESHOOTING). If you find any, email me.
SPECIAL THANKS:
I'd like to thank the designers of AmigaDOS. I really, really like this
system; it's fun to use and to program. If you can ever add crash pro-
tection and optional memory defragmentation, I will be in heaven.
I'd also like to thank Tom Ekstrom for Iconographix. It's far superior
to the rest, mostly in that even an artistic nincompoop like myself can
make icons in its style.
I absolutely have to thank Brian Cluff, who found a bug in my program.
Not to mention my documentation.
BUG REPORTS, PROGRAMMING TIPS, AND COMMENTS:
Jack Perry
jperry6@ix.netcom.com
If you can give me a hint on a better way to have written this, please do
so. I'm not a very good programmer, but I enjoy little things like this.
P.S.- You may notice that the program calls its author John Perry. We're
the same dude.
|