Chobyhy Posted December 8, 2007 Share Posted December 8, 2007 Is it possible to add a break between a sentence without adding another GuiCtrlCreateEdit or GuiCtrlCreateLabel? For example... GUICtrlCreateEdit("TestOne (Enter/Break) TestTwo (Enter/Break) TestThree", $ES_READONLY) So it shows up as in the edit box. TestOne TestTwo TestThree If its possible to do that with edit box, is it possible with the label as well? Link to comment Share on other sites More sharing options...
Valuater Posted December 8, 2007 Share Posted December 8, 2007 Maybe... #include <GUIConstants.au3> GUICreate("My GUI") ; will create a dialog box that when displayed is centered GUICtrlCreateLabel ("Line 1 " & @CRLF & "Cell 1", 10, 30, 200, 200) GUISetState () ; will display an empty dialog box ; Run the GUI until the dialog is closed Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE 8) Link to comment Share on other sites More sharing options...
Chobyhy Posted December 8, 2007 Author Share Posted December 8, 2007 (edited) Thanks for the help, but one more question. How can I have a scroll bar (vertical), I can't find it in the GUI Control style At the same time I need to run $ES_READONLY Edited December 8, 2007 by Chobyhy Link to comment Share on other sites More sharing options...
therks Posted December 8, 2007 Share Posted December 8, 2007 GUICtrlCreateEdit('One' & @CRLF & 'Two', 0, 0, 100, 100, BitOr($ES_READONLY, $ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL)) My AutoIt Stuff | My Github 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