You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_Input object:
Cvo_Input
Cvo_Output
#include
<Cvo/Input.h++>
new
Cvo_Input ( char *resource_name,
{ Cvo_Object *parent | Display *display } )
This object defines the following Cvo Events in addition to those defined by its parent and ancestor objects.
CvoInputEnteredEvent
struct
Cvo_InputEnteredEvent
char *text
This event is generated whenever the user presses the <ENTER> key in the object. The value of text will be a pointer to the multibyte string of the data in the Cvo_Input object at the time of the event.
This object defines the following event translations in addition to those defined by its parent and ancestor objects.
<Key>
:
Insert()
This translation causes the key to be inserted into the Cvo_Input object at the current insertion point.
<Key>Delete
:
Delete()
<Key>BackSpace
:
Delete()
This translation causes the character prior to the cursor (or under the cursor if the cursor is at the begining of the line) to be deleted from the Cvo_Input object.
<Key>Enter
:
Accept()
<Key>Return
:
Accept()
<Key>Linefeed
:
Accept()
<Key>KP_Enter
:
Accept()
Ctrl<Key>j
:
Accept()
Ctrl<Key>m
:
Accept()
This translation causes the Cvo_Input object to generate the
CvoInputEnteredEvent
.
<Key>Right
:
Forward()
This translation causes the insertion point to be moved forward one position.
<Key>Left
:
Backward()
This translation causes the insertion point to be moved backward one position.
Ctrl<Key>w
:
EraseWord()
This translation deletes the previous word. Currently this is not implemented.
Ctrl<Key>u
:
EraseLine()
This translation causes the entire line to be deleted.
This object modifies the following X resources which are used by its parent or other ancestors.
*CvoInput*Sunken
(new value:
True
)
*CvoInput*Pad
(new value:
3
)
*CvoInput.Cursor
(new value:
xterm
)
*CvoInput*FontFamily
(new value:
Courier
)
See the example source code for an example of how to use this object.
See the legend for information about the conventions used in this documentation.