Sign in to follow this  
Followers 0
usera

multi line input

7 posts in this topic

Greeting,

looking for the way to get multi input in one windows.

for example:

    line1: your name please

    line2: Title:

    line3: Email

But I need to allow line2 and line3 maybe is empty, how to do that.

Thanks

usera

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try $ES_MULTILINE style with include #include <EditConstants.au3>

Edit:

Sorry, it is only to edit control

Please explain better your doubt

Edited by GordonFreeman

Share this post


Link to post
Share on other sites

usera,

 One window or one control within your window?

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

usera,

 One window or one control within your window?

kylomas

 

like this :

+----------------------------------------------------------------------------------

|        line1: your name please

|        line2: Title:

|        line3: Emailline1: your name please

|

+---------------------------------------------------------------------------------------

a small window

thanks for ask

usera

Share this post


Link to post
Share on other sites

This?

; *** Start added by AutoIt3Wrapper ***
#include <GUIConstantsEx.au3>
; *** End added by AutoIt3Wrapper ***

#AutoIt3Wrapper_Add_Constants=n

local $gui010   =   guicreate('Simple Example',400,100)
                    GUICtrlCreateLabel('Name',20,20,100,20)
local $name     =   guictrlcreateinput('',110,20,200,20)
                    GUICtrlCreateLabel('Title',20,40,100,20)
local $title    =   guictrlcreateinput('',110,40,200,20)
                    GUICtrlCreateLabel('Email',20,60,100,20)
local $email    =   guictrlcreateinput('',110,60,200,20)
                    guisetstate()

while 1
    switch guigetmsg()
        case $GUI_EVENT_CLOSE
            Exit
        case $name
            ;
            ; your name routine here
            ;
        case $title
            ;
            ; your title routine here
            ;
        case $email
            ;
            ; your email routine here
            ;
    EndSwitch
wend
1 person likes this

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

 

This?

; *** Start added by AutoIt3Wrapper ***
#include <GUIConstantsEx.au3>
; *** End added by AutoIt3Wrapper ***

#AutoIt3Wrapper_Add_Constants=n

local $gui010   =   guicreate('Simple Example',400,100)
                    GUICtrlCreateLabel('Name',20,20,100,20)
local $name     =   guictrlcreateinput('',110,20,200,20)
                    GUICtrlCreateLabel('Title',20,40,100,20)
local $title    =   guictrlcreateinput('',110,40,200,20)
                    GUICtrlCreateLabel('Email',20,60,100,20)
local $email    =   guictrlcreateinput('',110,60,200,20)
                    guisetstate()

while 1
    switch guigetmsg()
        case $GUI_EVENT_CLOSE
            Exit
        case $name
            ;
            ; your name routine here
            ;
        case $title
            ;
            ; your title routine here
            ;
        case $email
            ;
            ; your email routine here
            ;
    EndSwitch
wend

 

Perfect, thanks

how to add a "OK" or "summit" button ?

Share this post


Link to post
Share on other sites

usera,

See the help file for guictrlcreatebutton...


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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  
Followers 0