Jump to content

Allow line breaks in input


Recommended Posts

How can I do so that the input allows me to paste text that comes with line breaks, try this way, but it does not work for me, I already searched the forum but I could not find something to help me.

#include <GUIConstantsEx.au3>

Window()
Func Window()

    Local $hGUI = GUICreate("Example")
    Local $txtInput = GUICtrlCreateInput("", 50, 50, 85, 25, BitOR($ES_MULTILINE, $ES_READONLY))
    GUICtrlSetFont($txtInput, 10, 400, 0, "Verdana")
    GUICtrlSetColor($txtInput, 0x101010)

    GUISetState(@SW_SHOW, $hGUI)

    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop

        EndSwitch
    WEnd

    GUIDelete($hGUI)
EndFunc   ;==>Example

I would be very grateful if you can help me.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...