Jump to content
Sign in to follow this  

restrict new window placement

Recommended Posts

hello all,

I have a scipt that creates a gui on the top of the screen. When it is shown i would like any open windows to be resized and any new window to appear below the GUI. I have tried the $WS_EX_Topmost flag but it still allow the windows to be hidden by my GUI.

What am I missing?


Share this post

Link to post
Share on other sites

Please post some code for better assistance...

#include <GUIConstants.au3>
while 1
if @DesktopWidth = 768 Then
    ;     Tablet Mode Detected
    if WinExists("My GUI") = 0 Then
        GUICreate("My GUI",768,300,0,0,$WS_BORDER,$WS_EX_TOPMOST )  ; will create a dialog box that when displayed is centered
        GUISetState (@SW_SHOW)       ; will display an empty dialog box
; Run the GUI until the dialog is closed
if @DesktopWidth = 1024 Then
    GUIDelete("My GUI")

   ; If $msg = $GUI_EVENT_CLOSE Then ExitLoop

this is for a tablet pc, it has a 1' band across the top that does not accept input. I want to cover it with my GUI when in tablet mode

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...