Jump to content

$SS_SUNKEN: undeclared global variable


Recommended Posts

Ok, here's the code:

#include <GUIConstants.au3>

$hGUI_Main = GUICreate('Profile Mover', 400, 300)
GUICtrlCreateLabel('Old Profile', 10, 10)
GUICtrlCreateLabel('', 10, 28, 260, 18, $SS_SUNKEN)

GUISetState(@SW_SHOW, $hGUI_Main)

Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE

I just installed the latest version of AutoIt, AutoIt beta, and Scite ... and when I run the program I get the follow errors:

D:\Documents and Settings\xcs1621a\Desktop\Scripts\Profile Move.au3(5,51) : WARNING: $SS_SUNKEN: possibly used before declaration.
GUICtrlCreateLabel('', 10, 28, 260, 18, $SS_SUNKEN)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\xcs1621a\Desktop\Scripts\Profile Move.au3(5,51) : ERROR: $SS_SUNKEN: undeclared global variable.
GUICtrlCreateLabel('', 10, 28, 260, 18, $SS_SUNKEN)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\xcs1621a\Desktop\Scripts\Profile Move.au3 - 1 error(s), 1 warning(s)

Any ideas? Have I just totally lost it??

Link to comment
Share on other sites

Hard to say when you dont say if you use stable or beta but i would try:

#include <StaticConstants.au3>

Edit:Also I recommend that you switch to GUIConstantsEx.au3 instead of GUIConstants.au3

Edited by AdmiralAlkex
Link to comment
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
 Share

  • Recently Browsing   0 members

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