Jump to content

multi line input


usera
 Share

Recommended Posts

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

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

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

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

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

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