bvr Posted September 4, 2008 Share Posted September 4, 2008 I am making a text editor, mainly for writers. It looks alot like notepad atm until I add to it. But I am unsure how in the text form to make a new line. I could type all day and the line will just keep going horizontal. I want it to make a new line once I get to the end of the form on the right side. Link to comment Share on other sites More sharing options...
Pain Posted September 4, 2008 Share Posted September 4, 2008 look at the different styles for GUICtrlCreateEdit () like $ES_AUTOVSCROLL and $WS_VSCROLL Link to comment Share on other sites More sharing options...
Triton Posted September 4, 2008 Share Posted September 4, 2008 probably some kind of loop that counts or subtracts keystrokes or amount of characters entered. Triton Link to comment Share on other sites More sharing options...
NELyon Posted September 4, 2008 Share Posted September 4, 2008 Set the style to $ES_WANTRETURN. Link to comment Share on other sites More sharing options...
therks Posted September 4, 2008 Share Posted September 4, 2008 I am making a text editor, mainly for writers. It looks alot like notepad atm until I add to it. But I am unsure how in the text form to make a new line. I could type all day and the line will just keep going horizontal. I want it to make a new line once I get to the end of the form on the right side. Like when you have wordwrap turned on in Notepad? #include <EditConstants.au3> #include <WindowsConstants.au3> $gui = GUICreate('', 200, 200) GUICtrlCreateEdit('Try this', 0, 0, 200, 200, BitOr($ES_WANTRETURN, $WS_VSCROLL, $ES_AUTOVSCROLL)) GUISetState() While 1 $gm = GUIGetMsg() Switch $gm Case -3; $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
bvr Posted September 6, 2008 Author Share Posted September 6, 2008 thats works great, thanks! Link to comment Share on other sites More sharing options...
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