How to bring specific screen to front?
  • Order of the Butterfly
    Order of the Butterfly
    GMKai
    Posts: 253 from 2003/4/7
    Hello, I am doing a small protection system for MOS, to protect the system better my screen should be always in front.
    Does anybody know a way to achieve this?
  • »03.03.04 - 18:13
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    GMKai
    Posts: 253 from 2003/4/7
    Another problem I encoutered, is that my tool which resides in wbstartup is not started at least how can I do that so the screen opened by my tool is always in front after the start?
  • »04.03.04 - 19:04
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Jupp3
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland
    Can't you determine when opening a screen, if you want it to front or not?

    I don't have my C sources nearby, so I can give you better answer...

    If you wanted to create sort of "login screen" one more choice would be fullscreen window (on Ambient screen), that has no depth gadget and is frontmost...
  • »04.03.04 - 20:12
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Robin
    Posts: 741 from 2003/2/24
    Well, have you ever clicked a window which
    hides the upper right corner ? ;)

    You click right through it and switch screen.
  • »04.03.04 - 20:23
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2307 from 2003/2/24
    (Not tested)

    Open a backdrop-window as Jupp suggested.
    Wait for IDCMP_INACTIVEWINDOW.
    Reactivate Window and bring Screen back to front when you receive it.
    May result in minor flicker.

    @Robin
    Hiding the bottom is of no use as one might know the KBD-shortcut, or
    apps on the Ambient-Screen may bring it back to the top (for example when
    mail arrives).

    Apps in WB-Startup do need an icon (AFAIR), and that should be
    Type : Tool and the Executable checkbox should be selected.
    Also include DONOTWAIT in the tooltypes.
  • »04.03.04 - 20:32
    Profile