Jump to content
Sign in to follow this  
cgycowboy

A Little Help Please

Recommended Posts

cgycowboy

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}

Share this post


Link to post
Share on other sites
BrettF

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

Share this post


Link to post
Share on other sites
cgycowboy

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

Thanks,

All I needed was

#include <EditConstants.au3> :D

Share this post


Link to post
Share on other sites
BrettF

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.