<<<<<<<<<<<<<<<<<

ui_text(ui) HP Widgets ui_text(ui)

NAME

ui_text - HP Text Edit widget

DESCRIPTION

The ui_text class provides an interface to the HP Text Edit widget.

SUPERCLASS

ui

INSTANCE VARIABLES

action is the name of the action object that receives a tick! when the user invokes an event which calls the "execute" function.

buffer_position is the position in the text string.

line is the text string.

single_line is a flag that indicates whether the text will be a single line or not. (True = 1, False = 0)

MESSAGES

action? returns the name of the action object.

action= action_object_name sets the action instance variable.

buffer_position? returns the value of the buffer_position instance variable.

buffer_position= value sets the buffer_position instance variable.

line? returns the text string.

line= string sets the text.

single_line? returns the value of the single_line instance variable.

single_line= value sets the single_line instance variable.

single_line! sets the single_line instance variable to 1.

EXAMPLES

/* initialize ui */

ui application= "demo"

create!;

/* create the control panel */

ui_control_panel new: the_panel

parent= ui;

/* create the text that will be displayed at point (10, 10)

(The position is set using the panel widget's resources) */

ui_text new: my_text

parent= the_panel

line= "Hi there! You can edit this line."

single_line!

create!

@ "width" : 150

@ "xOffset" : 10

@ "yOffset" : 10;

/* display the window and text */

ui on! start!;

SEE ALSO

ui, ui_control_panel, ui_title


Please send comments and suggestions to
consult@rpi.edu