Jump to content
Sign in to follow this  
ArxBzFhblxphS

..

Recommended Posts

ArxBzFhblxphS
Posted Image Edited by Thanubis

Share this post


Link to post
Share on other sites
Hawkwing

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.

Share this post


Link to post
Share on other sites
Hawkwing

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.

Share this post


Link to post
Share on other sites
wolf9228

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

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

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×