cgycowboy Posted January 16, 2010 Posted January 16, 2010 I am trying to create an edit box that word wraps the text instead of continuing it horizontally, but when I try and run this script I keep getting an error that says: WARNING: $ES_AUTOVSCROLL: possibly used before declaration. $Edit1 = GUICtrlCreateEdit("", 16, 32, 577, 113, BitOR($ES_AUTOVSCROLL, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ WARNING: $ES_WANTRETURN: possibly used before declaration. $Edit1 = GUICtrlCreateEdit("", 16, 32, 577, 113, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ : WARNING: $WS_VSCROLL: possibly used before declaration. $Edit1 = GUICtrlCreateEdit("", 16, 32, 577, 113, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ERROR: $ES_AUTOVSCROLL: undeclared global variable. $Edit1 = GUICtrlCreateEdit("", 16, 32, 577, 113, BitOR($ES_AUTOVSCROLL, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ What am I doing wrong?? [code] #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Issue", 615, 222, -1, -1) $Label1 = GUICtrlCreateLabel("Please Describe The Customer's Issue For The Technician", 88, 0, 416, 24) GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif") $Edit1 = GUICtrlCreateEdit("", 16, 32, 577, 113, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL)) GUICtrlSetData(-1, "") GUICtrlSetResizing(-1, $GUI_DOCKHCENTER) $Button1 = GUICtrlCreateButton("OK", 240, 160, 105, 33, 0) GUICtrlSetOnEvent(-1, "Button1Click") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Button1Click() EndFunc [/autoit}
BrettF Posted January 16, 2010 Posted January 16, 2010 Lets play 3 questions! First thing before we start, I need you to read what the errors are saying. What do they say?You haven't declared the variables. So what does that mean?You need to include the constants for them.So how do I do that?There is a list of GUI Constants in the help file. Try searching for the constants (Everything you need can be found in GUI Control Styles...)Cheers,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
cgycowboy Posted January 16, 2010 Author Posted January 16, 2010 Lets play 3 questions! First thing before we start, I need you to read what the errors are saying. What do they say?You haven't declared the variables. So what does that mean?You need to include the constants for them.So how do I do that?There is a list of GUI Constants in the help file. Try searching for the constants (Everything you need can be found in GUI Control Styles...)Cheers,BrettThanks,All I needed was#include <EditConstants.au3>
BrettF Posted January 16, 2010 Posted January 16, 2010 Just showing that the helpfile is a wealth of information and provides pretty much all the answers... You could have saved yourself 25minutes Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now