Jump to content

Recommended Posts

Posted

$input = GUICtrlCreateInput("Type Message Here", 10, 30, 230, 60)

This code pushes to the right. How can I make it text wrap instead? I have found button wrap, and a few others, but not input wrap.

Open to input, Thanks! :whistle:

Posted

ok- that is where I went b4 my first post. I found button wraps, label wraps, etc. Noticed nothing about input wraps? still dont . . .

Posted

bump - Can anyone tell me how to wrap this input box or offer help on where to clearly learn how? Thanks!

$input = GUICtrlCreateInput("Type Message Here", 10, 30, 230, 60)

Posted

I would recommend using Koda, it takes all the guess work out of GUIs.

Alt+m in Scite.

Posted

Thanks!

I didn't know about that! looks like it will be good for future help!

It shows multiline, closest thing I see to wrap, but its greyed out. . . . Not sure if that would be more than one line if it wasnt greyed?

Posted

If you need to have Multiline use an edit box.

Posted

would that be considered more than one line?

I am taking the value and sending it with net send, so it will need to be one line. I would like it to wrap for longer lines.

?? Thanks for the help!

Posted

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AForm1", 455, 197, 193, 115)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 449, 153)
GUICtrlSetData(-1, "AEdit1")
$Button1 = GUICtrlCreateButton("Show Message", 0, 160, 443, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            MsgBox(1, "Message", StringReplace(GUICtrlRead($Edit1), @CRLF, ""))
    EndSwitch
WEnd

It adds a @CRLF when you hit enter so you need to replace it with nothing, theres a sample.

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
  • Recently Browsing   0 members

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