Sign in to follow this  
Followers 0
spel565

Input box help

6 posts in this topic

I want to create a InPutBox with more than 1answers

(f.ex You see a inputbox with the message, "press 1 to do that, or 2 to do that, or 3 to do something else". "And if you press 1 something happends, and if you press 2 something else happends" ).

How? Im new to this

Share this post


Link to post
Share on other sites



spel565,

You will need to create your own version of an InputBox. You need to create a small GUI containing an Input control and several buttons, followed by a While..WEnd loop where you check if a button was pressed and then do whatever is necessary when it happens.

Have a go at it yourself and come back if you have problems. >_<

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Some clarity here..

An input box will give you a box where you can write text. It is usually used to take a "text string" input from user. What you are looking for can be accomplished using a GUI window with radio buttons to select the task:

"press 1 to do that, or 2 to do that, or 3 to do something else".

Or you can use a message box with 3 buttons: yes, no , cancel..

MsgBox(3,"Please make a choice" ,"Do you like Indian Food?")

It's best to use option number 1, where you can specify many options to choose from.

Edited by Manjish

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

Oh, thanks guys.

But im a complete noob.

What is "GUI"? Can you link some tutorials or just tell me how to create one? How complicated is it?

Share this post


Link to post
Share on other sites

Hey why don't you check the GUI section in help file.. That's the first place you'll have to look.. And nothing is as tough after you have done it.. right.. Do post your doubts here..


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

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