chun914 Posted September 27, 2006 Share Posted September 27, 2006 Hi all, I would like to create a multi-line input area for user to input some data. Should i create a edit control or else ? But i found the if i need to input a new line inside a edit ctrl, need to press ''Ctrl + Enter " i/o "Enter". Is there anyway i can change it ? Link to comment Share on other sites More sharing options...
GaryFrost Posted September 27, 2006 Share Posted September 27, 2006 Hi all, I would like to create a multi-line input area for user to input some data.Should i create a edit control or else ?But i found the if i need to input a new line inside a edit ctrl, need to press ''Ctrl + Enter " i/o "Enter". Is there anyway i can change it ? Use GUICtrlCreateEdit, shouldn't need to press Ctrl + Enter SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
chun914 Posted September 27, 2006 Author Share Posted September 27, 2006 I can do it when i add... $ES_WANTRETURN Link to comment Share on other sites More sharing options...
GaryFrost Posted September 27, 2006 Share Posted September 27, 2006 try this: #include <GUIConstants.au3> GUICreate("My GUI edit") ; will create a dialog box that when displayed is centered $myedit=GUICtrlCreateEdit ("First line"& @CRLF, 176,32,121,97) GUISetState () ; will be append dont' forget 3rd parameter GUICtrlSetData ($myedit, "Second line",1) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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