EdGetIns.sgm 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!-- $XConsortium: EdGetIns.sgm /main/5 1996/08/30 12:59:32 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.MAN26.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN26.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorGetInsertionPosition</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorGetInsertionPosition</Function></RefName>
  17. <RefPurpose>retrieve 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>XmTextPosition <Function>DtEditorGetInsertionPosition</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtEditorGetInsertionPosition</Function> function accesses the current position of the insertion cursor in the DtEditor
  39. widget.
  40. The position is an integer number of characters from the
  41. beginning of the widget's text buffer.
  42. The first character position is zero.
  43. The position of the insertion cursor can be set with
  44. &cdeman.DtEditorSetInsertionPosition;.</Para>
  45. <Para>The
  46. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  47. <![ %CDE.C.CDE; [</Para>
  48. <Para>For a complete definition of the DtEditor widget
  49. and its associated resources, see
  50. &cdeman.DtEditor;. ]]></Para>
  51. </RefSect1>
  52. <RefSect1>
  53. <Title>RETURN VALUE</Title>
  54. <Para>Upon successful completion, the
  55. <Function>DtEditorGetInsertionPosition</Function> function returns an
  56. <StructName Role="typedef">XmTextPosition</StructName> value that indicates the position of the insertion cursor in the text; otherwise,
  57. it returns
  58. <SystemItem Class="Constant">NULL</SystemItem>.</Para>
  59. </RefSect1>
  60. <RefSect1>
  61. <Title>SEE ALSO</Title>
  62. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorGetLastPosition;, &cdeman.DtEditorSetInsertionPosition;.</Para>
  63. </RefSect1>
  64. </RefEntry>
  65. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->