Jump to content

Input box help


Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

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