EdGoToLi.sgm 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!-- $XConsortium: EdGoToLi.sgm /main/5 1996/08/30 13:00:10 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.MAN29.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN29.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorGoToLine</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorGoToLine</Function></RefName>
  17. <RefPurpose>move the insert cursor for a DtEditor widget to a specified line
  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>DtEditorGoToLine</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. <ParamDef>int <Parameter>lineNumber</Parameter></ParamDef>
  34. </FuncSynopsis>
  35. </RefSynopsisDiv>
  36. <RefSect1>
  37. <Title>DESCRIPTION</Title>
  38. <Para>The
  39. <Function>DtEditorGoToLine</Function> function moves the insert cursor for the DtEditor widget to the beginning of the
  40. line specified by the
  41. <Emphasis>lineNumber</Emphasis> argument.
  42. The cursor can be moved to the last
  43. line by specifying
  44. <SystemItem Class="Constant">DtEDITOR_LAST_LINE</SystemItem> as the line number.
  45. If the line is not currently on-screen, the contents for the DtEditor widget
  46. are scrolled to display the new insertion position.
  47. </Para>
  48. <Para>The
  49. <Emphasis>lineNumber</Emphasis> argument is the number of the line in the file,
  50. counting from 1.
  51. If the
  52. <Emphasis>lineNumber</Emphasis> argument is less than 1, the insert cursor is placed
  53. at the beginning of the first line.
  54. If the argument is greater than the total
  55. number of lines, the cursor is placed at the last line of text.
  56. </Para>
  57. <Para>The insert cursor can be moved to a specific character position with
  58. &cdeman.DtEditorSetInsertionPosition;. The
  59. <SystemItem Class="Resource">DtNtopCharacter</SystemItem> resource can be used to control which line is displayed at the top of the
  60. DtEditor widget.
  61. </Para>
  62. <Para>The
  63. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  64. </Para>
  65. <Para>The
  66. <Emphasis>lineNumber</Emphasis> argument specifies the line number within the DtEditor widget.
  67. <![ %CDE.C.CDE; [</Para>
  68. <Para>For a complete definition of the DtEditor widget
  69. and its associated resources, see
  70. &cdeman.DtEditor;. ]]></Para>
  71. </RefSect1>
  72. <RefSect1>
  73. <Title>RETURN VALUE</Title>
  74. <Para>The
  75. <Function>DtEditorGoToLine</Function> function returns no value.
  76. </Para>
  77. </RefSect1>
  78. <RefSect1>
  79. <Title>SEE ALSO</Title>
  80. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorSetInsertionPosition;.</Para>
  81. </RefSect1>
  82. </RefEntry>
  83. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->