John117 Posted July 10, 2007 Posted July 10, 2007 $input = GUICtrlCreateInput("Type Message Here", 10, 30, 230, 60) This code pushes to the right. How can I make it text wrap instead? I have found button wrap, and a few others, but not input wrap. Open to input, Thanks!
Bert Posted July 10, 2007 Posted July 10, 2007 In the helpfile, you will see a thing called GUI Control Styles Appendix. It is a hyperlink. click on it, and you will see what you need. The Vollatran project My blog: http://www.vollysinterestingshit.com/
weaponx Posted July 11, 2007 Posted July 11, 2007 Dude. You're killing me. Help File > Appendix > GUI Control Styles
John117 Posted July 11, 2007 Author Posted July 11, 2007 ok- that is where I went b4 my first post. I found button wraps, label wraps, etc. Noticed nothing about input wraps? still dont . . .
John117 Posted July 11, 2007 Author Posted July 11, 2007 bump - Can anyone tell me how to wrap this input box or offer help on where to clearly learn how? Thanks! $input = GUICtrlCreateInput("Type Message Here", 10, 30, 230, 60)
McGod Posted July 11, 2007 Posted July 11, 2007 I would recommend using Koda, it takes all the guess work out of GUIs. Alt+m in Scite. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
John117 Posted July 11, 2007 Author Posted July 11, 2007 Thanks! I didn't know about that! looks like it will be good for future help! It shows multiline, closest thing I see to wrap, but its greyed out. . . . Not sure if that would be more than one line if it wasnt greyed?
McGod Posted July 11, 2007 Posted July 11, 2007 If you need to have Multiline use an edit box. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
John117 Posted July 11, 2007 Author Posted July 11, 2007 would that be considered more than one line? I am taking the value and sending it with net send, so it will need to be one line. I would like it to wrap for longer lines. ?? Thanks for the help!
McGod Posted July 11, 2007 Posted July 11, 2007 #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 455, 197, 193, 115) $Edit1 = GUICtrlCreateEdit("", 0, 0, 449, 153) GUICtrlSetData(-1, "AEdit1") $Button1 = GUICtrlCreateButton("Show Message", 0, 160, 443, 33, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 MsgBox(1, "Message", StringReplace(GUICtrlRead($Edit1), @CRLF, "")) EndSwitch WEnd It adds a @CRLF when you hit enter so you need to replace it with nothing, theres a sample. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
John117 Posted July 11, 2007 Author Posted July 11, 2007 Thats what I was looking for! THanks a million! Been looking for hours!
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