EdSetIns.sgm 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!-- $XConsortium: EdSetIns.sgm /main/5 1996/08/30 13:02:38 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCSA.MAN42.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN42.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorSetInsertionPosition</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorSetInsertionPosition</Function></RefName>
  17. <RefPurpose>set the position of the insert cursor in a DtEditor widget
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- *************************************************************************-->
  22. <!-- ** (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- ** (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- ** (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- ** (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <!-- *************************************************************************-->
  27. <RefSynopsisDiv>
  28. <FuncSynopsis Remap="ANSI">
  29. <FuncSynopsisInfo>#include &lt;Dt/Editor.h>
  30. </FuncSynopsisInfo>
  31. <FuncDef>void <Function>DtEditorSetInsertionPosition</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. <ParamDef>XmTextPosition <Parameter>position</Parameter></ParamDef>
  34. </FuncSynopsis>
  35. </RefSynopsisDiv>
  36. <RefSect1>
  37. <Title>DESCRIPTION</Title>
  38. <Para>The
  39. <Function>DtEditorSetInsertionPosition</Function> function sets the insertion cursor position of the DtEditor widget.
  40. The current position of the insertion cursor can be retrieved with
  41. &cdeman.DtEditorGetInsertionPosition;. The last text position of the DtEditor widget can be retrieved with
  42. &cdeman.DtEditorGetLastPosition;.</Para>
  43. <Para>The
  44. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  45. </Para>
  46. <Para>The
  47. <Symbol Role="Variable">position</Symbol> argument specifies the position of the insertion
  48. cursor.
  49. This is an integer number of characters from the beginning of
  50. the text buffer.
  51. The first character position is zero.
  52. Values greater
  53. than the last position place the cursor at the last
  54. position (that is, at the end of the text).
  55. <![ %CDE.C.CDE; [</Para>
  56. <Para>For a complete definition of the DtEditor widget
  57. and its associated resources, see
  58. &cdeman.DtEditor;. ]]></Para>
  59. </RefSect1>
  60. <RefSect1>
  61. <Title>RETURN VALUE</Title>
  62. <Para>The
  63. <Function>DtEditorSetInsertionPosition</Function> function returns no value.
  64. </Para>
  65. </RefSect1>
  66. <RefSect1>
  67. <Title>SEE ALSO</Title>
  68. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorGetInsertionPosition;, &cdeman.DtEditorGetLastPosition;.</Para>
  69. </RefSect1>
  70. </RefEntry>
  71. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->