xmtextfieldgetselectionposition(3x) [osf1 man page]
XmTextFieldGetSelectionPosition(3X)XmTextFieldGetSelectionPosition(3X)NAME
XmTextFieldGetSelectionPosition - A TextField function that accesses the position of the primary selection
SYNOPSIS
#include <Xm/TextF.h>
Boolean XmTextFieldGetSelectionPosition (widget, left, right)
Widget widget;
XmTextPosition *left;
XmTextPosition *right;
DESCRIPTION
XmTextFieldGetSelectionPosition accesses the left and right position of the primary selection in the text buffer of the TextField widget.
Specifies the TextField widget ID Specifies the pointer in which the position of the left boundary of the primary selection is returned.
This is an integer number of characters from the beginning of the buffer. The first character position is 0. Specifies the pointer in
which the position of the right boundary of the primary selection is returned. This is an integer number of characters from the beginning
of the buffer. The first character position is 0.
For a complete definition of TextField and its associated resources, see XmTextField(3X).
RETURN VALUE
This function returns True if the widget owns the primary selection; otherwise, it returns False.
SEE ALSO XmTextField(3X)XmTextFieldGetSelectionPosition(3X)
Check Out this Related Man Page
XmTextFieldSetHighlight(3X)XmTextFieldSetHighlight(3X)NAME
XmTextFieldSetHighlight - A TextField function that highlights text
SYNOPSIS
#include <Xm/TextF.h>
void XmTextFieldSetHighlight (widget, left, right, mode)
Widget widget;
XmTextPosition left;
XmTextPosition right;
XmHighlightMode mode;
DESCRIPTION
XmTextFieldSetHighlight highlights text between the two specified character positions. The mode parameter determines the type of high-
lighting. Highlighting text merely changes the visual appearance of the text; it does not set the selection. Specifies the TextField wid-
get ID Specifies the position of the left boundary of text to be highlighted. This is an integer number of characters from the beginning of
the text buffer. The first character position is 0. Specifies the position of the right boundary of text to be highlighted. This is an
integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the type of highlighting
to be done. A value of XmHIGHLIGHT_NORMAL removes highlighting. A value of XmHIGHLIGHT_SELECTED highlights the test using reverse video.
A value of XmHIGHLIGHT_SECONDARY_SELECTED highlights the text using underlining.
For a complete definition of TextField and its associated resources, see XmTextField(3X).
SEE ALSO XmTextField(3X)XmTextFieldSetHighlight(3X)
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)