Category Menu manager menus, Object ProMenu

Function ProMenuCreate


Description
Displays the menu on the screen. A menu must be loaded before it can be displayed; when a menu is redisplayed, all menu items are accessible.

This function affects Menu-Manager (mode-specific) menus only.

The menu type is almost always a main menu (type PROMENUTYPE_MAIN). An example of a submenu (type PROMENUTYPE_SUB) is the Done/Quit submenu below the Sketcher menu. Done/Quit has no title and serves only as an extension of the Sketcher menu (the PROMENUTYPE_MAIN menu).

Synopsis
#include <ProMenu.h>
ProErrorProMenuCreate(
ProMenuType type
/* (In)
The menu type (PROMENUTYPE_MAIN for a main menu, PROMENUTYPE_SUB for a submenu).
*/
ProMenuName menuname
/* (In)
The name of the menu.
*/
int* menu_id
/* (Out)
The identifier of the menu displayed. This argument can be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully displayed the menu.
PRO_TK_GENERAL_ERRORThe specified menu does not exist.
See Also
ProMenuFromStringsRegister

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Menus, Commands, and Popupmenus: New Menus
  3. User Interface: Menus, Commands, and Popupmenus: New Menus
  4. User Interface: Menus, Commands, and Popupmenus: New Menus
  5. User Interface: Menus, Commands, and Popupmenus: Submenus
  6. User Interface: Menus, Commands, and Popupmenus: Submenus
  7. User Interface: Menus, Commands, and Popupmenus: Data Menus
  8. User Interface: Menus, Commands, and Popupmenus: Setting Menu Buttons
  9. User Interface: Menus, Commands, and Popupmenus: Controlling Accessibility of Menu Buttons
  10. User Interface: Menus, Commands, and Popupmenus: Run-time Menus

Sample Code References:

  1. pt_async ( TestAsync.c )
  2. pt_examples ( TestAnalysis.c )
  3. pt_examples ( TestAnimation.c )
  4. pt_examples ( TestAsm.c )
  5. pt_examples ( TestAsm.c )
  6. pt_examples ( TestAsm.c )
  7. pt_examples ( TestAsm.c )
  8. pt_examples ( TestAsm.c )
  9. pt_examples ( TestDrag.c )
  10. pt_examples ( TestExtref.c )
  11. pt_examples ( TestExtref.c )
  12. pt_examples ( TestImm.c )
  13. pt_examples ( TestMechanism.c )
  14. pt_examples ( TestMoldbase.c )
  15. pt_examples ( TestMultiCADFile.c )
  16. pt_examples ( TestProcstep.c )
  17. pt_examples ( TestSkelet.c )
  18. pt_examples ( TestSkelet.c )
  19. pt_examples ( TestSkelet.c )
  20. pt_examples ( TestSkelet.c )
  21. pt_examples ( TestWeld.c )
  22. pt_examples ( TestConfig.c )
  23. pt_examples ( TestConfig.c )
  24. pt_examples ( TestDbms.c )
  25. pt_examples ( TestDbms.c )
  26. pt_examples ( TestDbms.c )
  27. pt_examples ( TestDimension.c )
  28. pt_examples ( TestDimension.c )
  29. pt_examples ( TestDimension.c )
  30. pt_examples ( TestDimension.c )
  31. pt_examples ( TestInterface.c )
  32. pt_examples ( TestInterface.c )
  33. pt_examples ( TestInterface.c )
  34. pt_examples ( TestInterface.c )
  35. pt_examples ( TestInterface.c )
  36. pt_examples ( TestDispObject.c )
  37. pt_examples ( TestExtobj.c )
  38. pt_examples ( TestExtobj.c )
  39. pt_examples ( TestFamTab.c )
  40. pt_examples ( TestFeats.c )
  41. pt_examples ( TestFeats.c )
  42. pt_examples ( TestFeats.c )
  43. pt_examples ( TestFeats.c )
  44. pt_examples ( TestFeats.c )
  45. pt_examples ( TestFeats.c )
  46. pt_examples ( SketchFeatureCreate.c )
  47. pt_examples ( TestDtmPln.c )
  48. pt_examples ( TestDtmPln.c )
  49. pt_examples ( TestDtmPln.c )
  50. pt_examples ( TestExtrude.c )
  51. pt_examples ( TestExtrude.c )
  52. pt_examples ( TestExtrude.c )
  53. pt_examples ( TestExtrude.c )
  54. pt_examples ( TestGenedata.c )
  55. pt_examples ( TestGenedata.c )
  56. pt_examples ( TestGeom.c )
  57. pt_examples ( TestMeasure.c )
  58. pt_examples ( TestXsec.c )
  59. pt_examples ( TestDisplist.c )
  60. pt_examples ( TestDisplist.c )
  61. pt_examples ( TestDrwSheets.c )
  62. pt_examples ( TestDrwSimprep.c )
  63. pt_examples ( TestDrwView.c )
  64. pt_examples ( TestDrwView.c )
  65. pt_examples ( TestDrwView.c )
  66. pt_examples ( TestDtlentity.c )
  67. pt_examples ( TestDtlgroup.c )
  68. pt_examples ( TestDtlgroup.c )
  69. pt_examples ( TestDtlnote.c )
  70. pt_examples ( TestDtlnote.c )
  71. pt_examples ( TestDtlsyminst.c )
  72. pt_examples ( TestDtlsyminst.c )
  73. pt_examples ( TestGraphics.c )
  74. pt_examples ( TestGraphics.c )
  75. pt_examples ( TestGraphics.c )
  76. pt_examples ( TestLayer.c )
  77. pt_examples ( TestLayer.c )
  78. pt_examples ( TestLayer.c )
  79. pt_examples ( TestLayer.c )
  80. pt_examples ( TestLayer.c )
  81. pt_examples ( TestLayer.c )
  82. pt_examples ( TestLayer.c )
  83. pt_examples ( TestLayer.c )
  84. pt_examples ( TestLayer.c )
  85. pt_examples ( TestLinestyle.c )
  86. pt_examples ( TestRay.c )
  87. pt_examples ( TestSymDefMenu.c )
  88. pt_examples ( TestSymDefMenu.c )
  89. pt_examples ( TestSymDefMenu.c )
  90. pt_examples ( TestText.c )
  91. pt_examples ( TestView.c )
  92. pt_examples ( TestDrawing.c )
  93. pt_examples ( TestDrawing.c )
  94. pt_examples ( TestMain.c )
  95. pt_examples ( TestMain.c )
  96. pt_examples ( TestMain.c )
  97. pt_examples ( TestMain.c )
  98. pt_examples ( TestMain.c )
  99. pt_examples ( TestMain.c )
  100. pt_examples ( TestMain.c )
  101. pt_examples ( TestMenu.c )
  102. pt_examples ( TestMenu.c )
  103. pt_examples ( TestCavityLayout.c )
  104. pt_examples ( TestClCmd.c )
  105. pt_examples ( TestClCmd.c )
  106. pt_examples ( TestMfgFixt.c )
  107. pt_examples ( TestMoldLayout.c )
  108. pt_examples ( TestTool.c )
  109. pt_examples ( TestTool.c )
  110. pt_examples ( TestTool.c )
  111. pt_examples ( UtilMfgNew.c )
  112. pt_examples ( UtilMfgNew.c )
  113. pt_examples ( UtilMfgNew.c )
  114. pt_examples ( UtilMfgNew.c )
  115. pt_examples ( UtilMfgNew.c )
  116. pt_examples ( UtilMfgNew.c )
  117. pt_examples ( TestMisc.c )
  118. pt_examples ( TestNotify.c )
  119. pt_examples ( TestNotify.c )
  120. pt_examples ( TestGtol.c )
  121. pt_examples ( TestGtol.c )
  122. pt_examples ( TestGtol.c )
  123. pt_examples ( TestParams.c )
  124. pt_examples ( TestRelation.c )
  125. pt_examples ( TestRelation.c )
  126. pt_examples ( TestSetup.c )
  127. pt_examples ( TestSetup.c )
  128. pt_examples ( TestSetup.c )
  129. pt_examples ( TestSetup.c )
  130. pt_examples ( TestSetup.c )
  131. pt_examples ( TestSetup.c )
  132. pt_examples ( TestPartMaterial.c )
  133. pt_examples ( TestSect.c )
  134. pt_examples ( TestSect.c )
  135. pt_examples ( UtilSect.c )
  136. pt_examples ( TestSelect.c )
  137. pt_examples ( TestRule.c )
  138. pt_examples ( TestSimpRep.c )
  139. pt_examples ( TestSimpRep.c )
  140. pt_examples ( TestSimpRep.c )
  141. pt_examples ( TestSimpRep.c )
  142. pt_examples ( TestSimpRep.c )
  143. pt_examples ( TestSimpRep.c )
  144. pt_examples ( TestSimpRep.c )
  145. pt_examples ( TestSimpRep.c )
  146. pt_examples ( TestCollect.c )
  147. pt_examples ( UtilMenu.c )
  148. pt_examples ( UtilMenu.c )
  149. pt_examples ( UtilMenu.c )
  150. pt_mech_examples ( PTMechExItemInfo.c )
  151. pt_mech_examples ( PTMechExLoadOper.c )
  152. pt_mech_examples ( PTMechExLoadOper.c )
  153. pt_mech_examples ( PTMechExLoadOper.c )
  154. pt_userguide ( UgInterfaceMenu.c )
  155. pt_userguide ( UgAsmMenu.c )
  156. pt_userguide ( UgAsmMenu.c )
  157. pt_userguide ( UgAsmMenu.c )
  158. pt_userguide ( UgAsmMenu.c )
  159. pt_userguide ( UgCommonMenus.c )
  160. pt_userguide ( UgCommonMenus.c )
  161. pt_userguide ( UgCommonMenus.c )
  162. pt_userguide ( UgCommonMenus.c )
  163. pt_userguide ( UgCommonMenus.c )
  164. pt_userguide ( UgCommonMenus.c )
  165. pt_userguide ( UgCommonMenus.c )
  166. pt_userguide ( UgCommonMenus.c )
  167. pt_userguide ( UgCommonMenus.c )
  168. pt_userguide ( UgCommonMenus.c )
  169. pt_userguide ( UgCommonMenus.c )
  170. pt_userguide ( UgCommonMenus.c )
  171. pt_userguide ( UgCommonMenus.c )
  172. pt_userguide ( UgCommonMenus.c )
  173. pt_userguide ( UgDrawingMenu.c )
  174. pt_userguide ( UgDrawingMenu.c )
  175. pt_userguide ( UgDrawingMenu.c )
  176. pt_userguide ( UgDrawingMenu.c )
  177. pt_userguide ( UgDrawingMenu.c )
  178. pt_userguide ( UgDrawingMenu.c )
  179. pt_userguide ( UgDrawingMenu.c )
  180. pt_userguide ( UgDrawingMenu.c )
  181. pt_userguide ( UgDrawingMenu.c )
  182. pt_userguide ( UgMFGMenu.c )
  183. pt_userguide ( UgMFGMenu.c )
  184. pt_userguide ( UgMainMenu.c )
  185. pt_userguide ( UgMainMenu.c )
  186. pt_userguide ( UgMainMenu.c )
  187. pt_userguide ( UgMenuMenusSetup.c )
  188. pt_userguide ( UgMenuMenusSetup.c )
  189. pt_userguide ( UgNewDrawingMenu.c )
  190. pt_userguide ( UgPartMenu.c )
  191. pt_userguide ( UgPartMenu.c )
  192. pt_userguide ( UgPlotSetup.c )
  193. pt_userguide ( UgREADME.c )
  194. pt_userguide ( UgUIMenu.c )
  195. pt_userguide ( UgMenuBitsChange.c )
  196. pt_userguide ( UgMenuJustificationGet.c )
  197. pt_userguide ( UgMenuJustificationGet.c )
  198. pt_userguide ( UgMenuJustificationGet.c )
  199. pt_userguide ( UgMenuNewMenuUse.c )
  200. pt_userguide ( UgMenuValueSelect.c )
  201. pt_userguide ( UgModelLayerCreate.c )
  202. pt_userguide ( UgModelLayerItemsAdd.c )
  203. pt_userguide ( UgSolidMenu.c )