Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dxmcstextgetinsertionposition(3x) [osf1 man page]

DXmCSTextGetInsertionPosition(3X)										 DXmCSTextGetInsertionPosition(3X)

NAME
DXmCSTextGetInsertionPosition - Retrieves (returns) the logical position of the insertion cursor. SYNOPSIS
DXmCSTextPosition DXmCSTextGetInsertionPosition( Widget widget ); PARAMETERS
The identifier (widget ID) of the compound string text widget. DESCRIPTION
The DXmCSTextGetInsertionPosition routine retrieves the logical position of the insertion cursor by returning an integer that indicates the distance (in number of characters) between the cursor and the beginning of the text buffer. RETURN VALUES
An integer that represents the logical position of the cursor, by number of characters from the beginning of the text buffer. SEE ALSO
DXmCSTextSetInsertionPosition(3X) DXmCSTextGetInsertionPosition(3X)

Check Out this Related Man Page

DtEditorGoToLine(library call)											    DtEditorGoToLine(library call)

NAME
DtEditorGoToLine -- move the insert cursor for a DtEditor widget to a specified line SYNOPSIS
#include <Dt/Editor.h> void DtEditorGoToLine( Widget widget, int lineNumber); DESCRIPTION
The DtEditorGoToLine function moves the insert cursor for the DtEditor widget to the beginning of the line specified by the lineNumber argument. The cursor can be moved to the last line by specifying DtEDITOR_LAST_LINE as the line number. If the line is not currently on- screen, the contents for the DtEditor widget are scrolled to display the new insertion position. The lineNumber argument is the number of the line in the file, counting from 1. If the lineNumber argument is less than 1, the insert cur- sor is placed at the beginning of the first line. If the argument is greater than the total number of lines, the cursor is placed at the last line of text. The insert cursor can be moved to a specific character position with DtEditorSetInsertionPosition(3). The DtNtopCharacter resource can be used to control which line is displayed at the top of the DtEditor widget. The widget argument specifies the DtEditor widget ID. The lineNumber argument specifies the line number within the DtEditor widget. For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). RETURN VALUE
The DtEditorGoToLine function returns no value. SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorSetInsertionPosition(3). DtEditorGoToLine(library call)
Man Page

We Also Found This Discussion For You

1. What is on Your Mind?

Throw my Toys out of the Pram!

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)
Discussion started by: gull04
3 Replies