TopIconBar version 2.03 (RISC OS 2: version 1.08), written by Vincent Lefvre.

TopIconBar is in the public domain. Do whatever you want with it.

When the mouse reaches the bottom of the screen (Y = 0):
  * if all the buttons are released [RISC OS 3: and there is no open menu],
    the icon bar is automatically brought to the front;
  * if the menu button is pressed and the other buttons are released,
    the icon bar is sent to the back.

Note: there is no good method under RISC OS to know whether a menu is
open or not; so we assume here that a menu is a window that:
  * is in front of the icon bar (in the window stack),
  * has a title bar, no back icon and no close icon,
  * has a button type equal to 0,
  * has a work area maximum x >= 2^18.

Thanks to the comp.sys.acorn.programmer readers for their help.

Vincent Lefvre

e-mail (TopIconBar): topiconbar@vinc17.org
e-mail (personal): vincent@vinc17.org
WWW (home page): http://www.vinc17.org/
WWW (RiscPC page): http://www.vinc17.org/acorn/riscpc_eng.html
