Sign in to follow this  
Followers 0
Rad

Using EDIT box options...

3 posts in this topic

#1 ·  Posted (edited)

style [optional] Defines the style of the control. See GUI Control Styles Appendix.

default ( -1) : $ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL

forced styles : $ES_MULTILINE, $WS_TABSTOP

---

Thats what it says in the helpfile, I dont want it to have the HSCROLL part so I change my edit line to:

$txt_field=GuiCtrlCreateEdit("",2,50,252,204,$ES_WANTRETURN, $WS_VSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL)

Now it crashes saying theres to many options (Parameteres and function calls.. or something). How can I remove HSCROLL but not have to many? Do I list them like I did above? I couldnt find how to list them whether you use a comma, an &, or a + to do it...

EDIT~I meant I didnt want HScroll, the one on the bottom

Edited by Rad

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

ooops haha that was wrong :P

Edited by thatsgreat2345

Share this post


Link to post
Share on other sites

Did you try to BitOr it?

$txt_field=GuiCtrlCreateEdit("",2,50,252,204, BitOR($ES_WANTRETURN, $WS_VSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL))


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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  
Followers 0