Index
The Textbox and how to create it
The Parameters
Textbox Functions
Important Info

The Textbox and how to create it

The Textboxes inherit from the control class. It is one of the many ways for an application to recieve input. A textbox is verry common in
GUI applications as a way to get input from a user, just like the button. A textbox is used to give a program "string" input.

--Textbox:
f1 = form(10, 10, 100, 100, false, "Main", color.white, color.AirForceBlue, true, false, false, false, false, false, true)
myTextbox = textbox(1, 1, 100, "My Textbox", color.black, color.black, false, f1, true) --Textbox with password char: myTextbox = textbox(1, 1, 100, "Pc", color.black, color.black, true, f1, true)

The code is exactly how you would create a textbox. You must have a form created in order to store your textbox, as with any other derivative of
the control class. As always you can declare any class two ways and if you dont remember how, read the forms reference here: Forms
The images below show what the textboxes declared above looks like, and figure 7 is after you type into a password char textbox.

Figure 8:

textbox Image

Figure 9:

textbox passchar image

Figure 10:

textbox passchar image Typed

The Parameters

The Textbox parameters are as follows:

Parameter Description
int x The x location of the textbox on the screen.
int y The y location of the textbox on the screen.
int width The width of the textbox.
string text Sets the textboxes text to the string that was entered.
color textcolor Sets the textbox's text color.
color tbcolor Sets the textbox's color.
bool passChar If true, the texbox hides what is being typed.
form parent The form that the textbox will be visible on.
bool selected True indicates the textbox can rescive input immediately. False
indicates that it has to be clicked befor it can be used.

If you dont know the keywords, go here: Forms

Textbox Functions

Here are the diffrent functions that you can call that do something with textboxes:

Function Description Call example
none none none

Important Info

Currently as of this version, I have not yet completed multiline textboxes or advanced editing, although I am working on both.