ComboAdd.sgm 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!-- $XConsortium: ComboAdd.sgm /main/10 1996/08/30 12:54:06 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.XCDI.MAN15.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN15.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtComboBoxAddItem</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtComboBoxAddItem</Function></RefName>
  17. <RefPurpose>add an item to the ComboBox widget
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  22. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  23. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  25. <!-- (c) Copyright 1993, 1994, 1995 Interleaf, Inc.-->
  26. <RefSynopsisDiv>
  27. <FuncSynopsis Remap="ANSI">
  28. <FuncSynopsisInfo>#include &lt;Dt/ComboBox.h>
  29. </FuncSynopsisInfo>
  30. <FuncDef>void <Function>DtComboBoxAddItem</Function></FuncDef>
  31. <ParamDef>Widget <Parameter>w</Parameter></ParamDef>
  32. <ParamDef>XmString <Parameter>item</Parameter></ParamDef>
  33. <ParamDef>int <Parameter>pos</Parameter></ParamDef>
  34. <ParamDef>Boolean <Parameter>unique</Parameter></ParamDef>
  35. </FuncSynopsis>
  36. </RefSynopsisDiv>
  37. <RefSect1>
  38. <Title>DESCRIPTION</Title>
  39. <note><para>This function has been superseded by the equivalent
  40. Motif function, <function>XmComboBoxAddItem</function>. Please refer to the
  41. <![ %CDE.C.CDE; [<emphasis>Motif Programmer's Reference</emphasis>]]><![ %CDE.C.XO; [&str-ZM;]]> for more information.
  42. </para>
  43. </note>
  44. <Para>The
  45. <Function>DtComboBoxAddItem</Function> function adds the given item to the DtComboBox at the given position.
  46. </Para>
  47. <Para>The
  48. <Symbol Role="Variable">w</Symbol> argument specifies the DtComboBox widget ID.
  49. </Para>
  50. <Para>The
  51. <Symbol Role="Variable">item</Symbol> argument specifies the
  52. <StructName Role="typedef">XmString</StructName> for the new item.
  53. </Para>
  54. <Para>The
  55. <Emphasis>pos</Emphasis> argument specifies the position of the new item.
  56. </Para>
  57. <Para>The
  58. <Emphasis>unique</Emphasis> argument specifies if this item should duplicate an identical item or not.
  59. </Para>
  60. </RefSect1>
  61. <RefSect1>
  62. <Title>RETURN VALUE</Title>
  63. <Para>The
  64. <Function>DtComboBoxAddItem</Function> function returns no value.
  65. </Para>
  66. </RefSect1>
  67. <RefSect1>
  68. <Title>APPLICATION USAGE</Title>
  69. <Para>The functions
  70. <Function>DtComboBoxAddItem</Function> and
  71. <Function>DtComboBoxDeletePos</Function> have different naming conventions (Item versus Pos)
  72. because of the objects they are manipulating.
  73. The Item is a string to be added,
  74. the Pos is a numeric position number.
  75. </Para>
  76. </RefSect1>
  77. <RefSect1>
  78. <Title>SEE ALSO</Title>
  79. <Para>&cdeman.DtComboBox;,
  80. &cdeman.DtComboBoxDeletePos;, &cdeman.DtComboBoxSetItem;, &cdeman.DtComboBoxSelectItem;.</Para>
  81. </RefSect1>
  82. </RefEntry>
  83. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->