Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmtextposition(3) [redhat man page]

XmTextPosition(library call)											      XmTextPosition(library call)

NAME
XmTextPosition -- Data type for a character position within a text string SYNOPSIS
#include <Xm/Xm.h> DESCRIPTION
XmTextPosition is an integer data type that holds a character's position within a text string for Text and TextField. An XmTextPosition value conceptually points to the gap between two characters. For example, consider a text string consisting of N charac- ters. A value of 0 refers to the position immediately prior to the first character. A value of 1 refers to the position in between the first and second characters. A value of N refers to the position immediately following the last character. Therefore, the text string of N characters actually contains N + 1 positions. RELATED
XmText(3). XmTextPosition(library call)

Check Out this Related Man Page

XmTextFieldSetHighlight(library call)									     XmTextFieldSetHighlight(library call)

NAME
XmTextFieldSetHighlight -- A TextField function that highlights text SYNOPSIS
#include <Xm/TextF.h> void XmTextFieldSetHighlight( 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 highlight- ing. Highlighting text merely changes the visual appearance of the text; it does not set the selection. widget Specifies the TextField widget ID left Specifies the position of the left boundary of text to be highlighted. This is an integer number of characters from the begin- ning of the text buffer. The first character position is 0 (zero). right Specifies the position of the right boundary of text to be highlighted. This is an integer number of characters from the begin- ning of the text buffer. The first character position is 0 (zero). mode Specifies the type of highlighting to be done. A value of XmHIGHLIGHT_NORMAL removes highlighting. A value of XmHIGH- LIGHT_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(3). RELATED
XmTextField(3). XmTextFieldSetHighlight(library call)
Man Page