EdDelete.sgm 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- $XConsortium: EdDelete.sgm /main/5 1996/08/30 12:58:24 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.MAN21.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN21.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorDeleteSelection</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorDeleteSelection</Function></RefName>
  17. <RefPurpose>delete the primary selection in the 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>Boolean <Function>DtEditorDeleteSelection</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtEditorDeleteSelection</Function> function removes the currently highlighted data in a DtEditor
  39. widget.
  40. Any data following the deleted data is moved up.
  41. Text can be selected and deselect programmatically with
  42. &cdeman.DtEditorSelectAll; and
  43. &cdeman.DtEditorDeselect;.</Para>
  44. <Para>The
  45. <Symbol Role="Variable">widget</Symbol> argument
  46. 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>DtEditorDeleteSelection</Function> function returns
  56. True;
  57. otherwise, if the primary selection is
  58. <SystemItem Class="Constant">NULL</SystemItem>, or if the widget
  59. does not own the primary selection, it returns
  60. False.
  61. </Para>
  62. </RefSect1>
  63. <RefSect1>
  64. <Title>SEE ALSO</Title>
  65. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditorClearSelection;, &cdeman.DtEditorCopyToClipboard;, &cdeman.DtEditorCutToClipboard;, &cdeman.DtEditorDeselect;, &cdeman.DtEditorPasteFromClipboard;, &cdeman.DtEditorSelectAll;, &cdeman.DtEditorUndoEdit;.</Para>
  66. </RefSect1>
  67. </RefEntry>
  68. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->