XmTextSetSelection(3X)XmTextSetSelection(3X)NAME
XmTextSetSelection - A Text function that sets the primary selection of the text
SYNOPSIS
#include <Xm/Text.h>
void XmTextSetSelection (widget, first, last, time)
Widget widget;
XmTextPosition first;
XmTextPosition last;
Time time;
DESCRIPTION
XmTextSetSelection sets the primary selection of the text in the widget. It also sets the insertion cursor position to the last position of
the selection and calls the widget's XmNmotionVerifyCallback callbacks. Specifies the Text widget ID Marks the first character position of
the text to be selected Marks the last position of the text to be selected Specifies the time at which the selection value is desired.
This should be the same as the time of the event that triggered this request.
For a complete definition of Text and its associated resources, see XmText(3X).
SEE ALSO XmText(3X)XmTextSetSelection(3X)
Check Out this Related Man Page
XmTextSetSource(library call) XmTextSetSource(library call)
NAME
XmTextSetSource -- A Text function that sets the source of the widget
SYNOPSIS
#include <Xm/Text.h>
void XmTextSetSource(
Widget widget,
XmTextSource source,
XmTextPosition top_character,
XmTextPosition cursor_position);
DESCRIPTION
XmTextSetSource sets the source of the Text widget. Text widgets can share sources of text so that editing in one widget is reflected in
another. This function sets the source of one widget so that it can share the source of another widget.
Setting a new text source destroys the old text source if no other Text widgets are using that source. To replace a text source but keep
it for later use, create an unmanaged Text widget and set its source to the text source you want to keep.
widget Specifies the Text widget ID.
source Specifies the source with which the widget displays text. This can be a value returned by the XmTextGetSource(3) function. If no
source is specified, the widget creates a default string source.
top_character
Specifies the position in the text to display at the top of the widget. This is an integer number of characters from the begin-
ning of the text buffer. The first character position is 0 (zero).
cursor_position
Specifies the position in the text at which the insert cursor is located. This is an integer number of characters from the begin-
ning of the text buffer. The first character position is 0 (zero).
For a complete definition of Text and its associated resources, see XmText(3).
RELATED XmText(3).
XmTextSetSource(library call)
Hi Folks,
Today hasn't been the best one of my career in IT.
I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them.
At the... (3 Replies)