EZ
Up Prev Next Contents


3.10 Entries

An entry is a one line text editor. It is typically used to obtain textual input from user, such as a file name.

To enter text into an entry the user moves the pointer into the entry, causing the entry to take focus and making a red cursor to appear. The user can then enter characters and they will be inserted at the point of the cursor. The cursor can be moved by clicking mouse button 1 anywhere in the entry's text. Text in an entry can be selected by pressing and dragging mouse button 1. Selections can be pasted into an entry by pressing mouse button 2 in the entry. The entry widget supports a few emacs like editing commands.

When the return key or the tab key is pressed in an entry, and if it has any callbacks, the callbacks are invoked.

If motion callbacks are registered to an entry widget, they are invoked whenever the text string in the entry field is modified.

To create an entry widget, use EZ_CreateWidget with type EZ_WIDGET_ENTRY or use

EZ_Widget *EZ_CreateEntry(EZ_Widget *parent, char *init_str)

or

EZ_Widget *EZ_CreateWidget(EZ_WIDGET_ENTRY, EZ_Wiget *parent, ... )


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