ADDOBJECT "TextBox", name, xpos, ypos, width, height
Description
TextBox is used to display editable text in an object that floats over the output window. A TextBox allows text input from the keyboard. The required component, name, is the name of a variable that is added to the program to reference the object, it must follow standard variable naming conventions. The required components, xpos, ypos, width, and height are numeric expressions that set the location and size of the object in pixels, measured from the upper left corner. Note: Set the Multiline property to TRUE to allow embedded carriage returns and wrapped text.
Properties Supported (see "Properties")
BackColor, BorderStyle, Caption, Enabled, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HideSelection, Hwnd, Left, Locked, LowercaseOnly, MaxLength, MultiLine, Name, NumbersOnly, ParentHWnd, Password, Scrollbars, selLength, selStart, selText, TabStop, Tag, Text, Timer, Top, UppercaseOnly, Visible, Width, WindowLong
Methods Supported (see "Methods")
Hide, Move, SetFocus, Show
Events Supported (see "Events")
Change, Click, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, Timer
Example
REM TextBox Example
'TextBox is an editable text field
ADDOBJECT "TextBox", "Text", 10, 25, 90, 90
Text.Text = "Hello World!"
SUB Text_Click
PRINT "TextBox Text: " & Text.Text
END SUB
Output
Related Items
ADDOBJECT