Jump to content

Recommended Posts

Posted (edited)

Wouldn't you just use guictrlsetdata?

Edit: Your using an input, I assume your wanting to use guictrlcreateedit instead.

Edited by pigeek

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Posted

Did you try using an edit control? I'm pretty sure an input can only have 1 line.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Posted (edited)

I want to send a new line to a Read Only edit control, but I just can't figure out how to do it. I assume that I'm missing something obvious, but I need someone to point it out for me. What am I doing wrong?

#include <EditConstants.au3>
#include <WindowsConstants.au3>
GUICreate("Test", 305, 163)
GUICtrlCreateInput("Line 1" & @CRLF & "Line 2" & @CRLF & "Line 3" & @CRLF & "Line 4" & @CRLF & "Line 5", 10, 88, 285, 60, BitOR($ES_AUTOVSCROLL,$ES_MULTILINE,$ES_READONLY,$ES_WANTRETURN,$WS_VSCROLL))
GUISetState(@SW_SHOW)
Local $msg = GUIGetMsg()
While $msg <> -3 
    $msg = GUIGetMsg()
WEnd

#include <EditConstants.au3>
#include <WindowsConstants.au3>
GUICreate("Test", 305, 163)
GUICtrlCreateInput("Line 1" & @CRLF & "Line 2" & @CRLF & "Line 3" & @CRLF & "Line 4" & @CRLF & "Line 5", 10, 88, 285, 60,$ES_MULTILINE)
GUICtrlSetStyle(-1,BitOR($ES_MULTILINE,$ES_READONLY,$ES_WANTRETURN,$WS_VSCROLL))
GUISetState(@SW_SHOW)
Local $msg = GUIGetMsg()
While $msg <> -3
    $msg = GUIGetMsg()
WEnd
Edited by wolf9228

صرح السماء كان هنا

 

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
×
×
  • Create New...