_______________________________________________________
STRING Widget
Allows the user to enter a string of text
_______________________________________________________
Legal Usage Level-0 Widget: Yes
Parent to: None
Child of: PANEL
Example Image
![]() Example Program
See STRING Widget for a program that creates a STRING widget with a display similar to that shown above.See the following programs for other examples using the STRING widget.
Attributes
Remarks
The STRING widget allows the user to enter a string of text. The STRING widget can be used as a rudimentary editor, providing file read/write functionsin addition to cut, copy, delete and paste.
The CUT SELECTION, COPY SELECTION, DELETE SELECTION, and PASTE attributes are not meant to be interactive from the mouse. You must add a button or other interactive widget to create a fully interactive editor.
The STRING widget allows the user interface to accept strings of text from the user. The MULTILINE attribute allows the STRING widget to accept multiline inputs.
Cut, copy, and delete work on the current selection:
Cut, Copy, and Paste work with a global "clipboard" buffer area shared by all
widgets and applications:
STRING responds to the special keyboard keys as follows:
Events
Events for the STRING widget are:
DONE
KEYSTROKE
When the focus is in the STRING widget, this event is generatedas you depress a key that changes the contents of STRING.
RETURN
This event is generated when the operator presses the Return key.
SYSTEM MENU
This event is generated when the operator selects items from the SYSTEM MENU.
|