Jump to content

Multi-line input


chun914
 Share

Recommended Posts

Hi all,

I would like to create a multi-line input area for user to input some data.

Should i create a edit control or else ?

But i found the if i need to input a new line inside a edit ctrl, need to press ''Ctrl + Enter " i/o "Enter". Is there anyway i can change it ? :)

Link to comment
Share on other sites

Hi all,

I would like to create a multi-line input area for user to input some data.

Should i create a edit control or else ?

But i found the if i need to input a new line inside a edit ctrl, need to press ''Ctrl + Enter " i/o "Enter". Is there anyway i can change it ? :)

Use GUICtrlCreateEdit, shouldn't need to press Ctrl + Enter

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

try this:

#include <GUIConstants.au3>

GUICreate("My GUI edit")  ; will create a dialog box that when displayed is centered

$myedit=GUICtrlCreateEdit ("First line"& @CRLF, 176,32,121,97)

GUISetState ()

; will be append dont' forget 3rd parameter
GUICtrlSetData ($myedit, "Second line",1)

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...