Jump to content

Recommended Posts

Posted

Hi guys, Id like to be able to keep the form on top of other windows.

Is there a parameter with GUICreate to do this?

Thanks in advance.

Posted (edited)

$WS_EX_TOPMOST - Details about the GUICreate() Styles can be found in the Help File under GUICreate().

GUICreate("", 500, 500, -1, -1, -1, $WS_EX_TOPMOST)

Edit: Also there is an alternative way too. Search in the Help File "GUI OnTop", but the above is the most efficent.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Thanks guiness.

Im getting an error when I use this:

D:\test\test.au3(23,58) : WARNING: $WS_EX_TOPMOST: possibly used before declaration.

GUICreate('Executables', 500, 300, $WS_EX_TOPMOST)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

D:\test\test.au3(23,58) : ERROR: $WS_EX_TOPMOST: undeclared global variable.

The includes I have at the top of the script are:

#include <Array.au3>

#include <File.au3>

#include <GUIComboBox.au3>

#include <GUIConstantsEx.au3>

Posted (edited)

Search $WS_EX_TOPMOST in the Help File and it will show you the include in a long list, the title of the page is "GUI Control Styles." Hint: #include <WindowsConstants.au3>

And pay attention to your code, compare my Example to your Example and then what the Help File says, as this will fail >>

GUICreate('Executables', 500, 300, $WS_EX_TOPMOST) ; Where is the Height & Width?

I know I keep banging on about the Help File, but it does save you a lot of time by using it. :huh2: Plus it's guinness ;)

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...