123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <!-- $XConsortium: EdSetIns.sgm /main/5 1996/08/30 13:02:38 rws $ -->
- <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
- <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
- <!-- (c) Copyright 1995 International Business Machines Corp. -->
- <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
- <!-- (c) Copyright 1995 Novell, Inc. -->
- <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
- <!-- (c) Copyright 1995 Hitachi. -->
- <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCSA.MAN42.rsml.1">]]>
- <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN42.rsml.1">]]>
- <RefMeta>
- <RefEntryTitle>DtEditorSetInsertionPosition</RefEntryTitle>
- <ManVolNum>library call</ManVolNum>
- </RefMeta>
- <RefNameDiv>
- <RefName><Function>DtEditorSetInsertionPosition</Function></RefName>
- <RefPurpose>set the position of the insert cursor in a DtEditor widget
- </RefPurpose>
- </RefNameDiv>
- <!-- CDE Common Source Format, Version 1.0.0-->
- <!-- *************************************************************************-->
- <!-- ** (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
- <!-- ** (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
- <!-- ** (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
- <!-- ** (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
- <!-- *************************************************************************-->
- <RefSynopsisDiv>
- <FuncSynopsis Remap="ANSI">
- <FuncSynopsisInfo>#include <Dt/Editor.h>
- </FuncSynopsisInfo>
- <FuncDef>void <Function>DtEditorSetInsertionPosition</Function></FuncDef>
- <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
- <ParamDef>XmTextPosition <Parameter>position</Parameter></ParamDef>
- </FuncSynopsis>
- </RefSynopsisDiv>
- <RefSect1>
- <Title>DESCRIPTION</Title>
- <Para>The
- <Function>DtEditorSetInsertionPosition</Function> function sets the insertion cursor position of the DtEditor widget.
- The current position of the insertion cursor can be retrieved with
- &cdeman.DtEditorGetInsertionPosition;. The last text position of the DtEditor widget can be retrieved with
- &cdeman.DtEditorGetLastPosition;.</Para>
- <Para>The
- <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
- </Para>
- <Para>The
- <Symbol Role="Variable">position</Symbol> argument specifies the position of the insertion
- cursor.
- This is an integer number of characters from the beginning of
- the text buffer.
- The first character position is zero.
- Values greater
- than the last position place the cursor at the last
- position (that is, at the end of the text).
- <![ %CDE.C.CDE; [</Para>
- <Para>For a complete definition of the DtEditor widget
- and its associated resources, see
- &cdeman.DtEditor;. ]]></Para>
- </RefSect1>
- <RefSect1>
- <Title>RETURN VALUE</Title>
- <Para>The
- <Function>DtEditorSetInsertionPosition</Function> function returns no value.
- </Para>
- </RefSect1>
- <RefSect1>
- <Title>SEE ALSO</Title>
- <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorGetInsertionPosition;, &cdeman.DtEditorGetLastPosition;.</Para>
- </RefSect1>
- </RefEntry>
- <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->
|