EZ
Up Prev Next Contents


3.11 Text

The Text widget provides a window that will allow an application to display and edit one or more lines of text. Options are provided to allow the user to add scrollbars or disable text editing.

The text widget provides a minimal set of the common (emacs-like) keyboard editing commands as well as the X11 selection mechanism.

The text widget also supports a set of hardcoded text properties. Current supported text properties are: font, underlining, bitmap/pixmap, background color and foreground color.

If a text widget is configured to have a pixmap or an image label. The lable will be used as the background tile for the text widget.

To create a text widget, use EZ_CreateWidget with type EZ_WIDGET_TEXT or use

EZ_Widget *EZ_CreateTextWidget(EZ_Widget *parent, int editable,

int hscrollbar, int vscrollbar)

A TextWidget is a composite widget. It has three components. An internal textWidget, a horizontal scrollbar and a vertical scrollbar. To retrieve these components, use

void EZ_GetTextWidgetComponents(EZ_Widget *textWidget,

EZ_Widget **itw_ret, EZ_Widget **hscrol_ret,

EZ_Widget **vscrol_ret)


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>