Category Menu manager menus, Object ProMenu

Function ProMenuPush


Description
Temporarily hides the last menu created, even though it is strictly still in context, to make room for lower-level menus. The functions ProMenuPush(), ProMenuPop(), and ProMenuVisibilityGet() let you push a menu, pop a menu, and ask whether a menu is currently visible.

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

An example of this is when you select Make Datum during feature creation. This is called pushing menus because they are put on a LIFO stack from which they can be popped to make them reappear.

It is the responsibility of the application developer to use the correct sequence of calls to ProMenuCreate(), ProMenuDeleteWithStatus(), ProMenuPush(), and ProMenuPop().

If a main menu has submenus, they are treated as one and are pushed together with one call to ProMenuPush().

Synopsis
#include <ProMenu.h>
ProErrorProMenuPush(void)
Returns
PRO_TK_NO_ERRORThe function successfully pushed the menu.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
See Also
ProMenuCreate
ProMenuDeleteWithStatus
ProMenuPop
ProMenuVisibilityGet

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Menus, Commands, and Popupmenus: Pushing and Popping Menus
  3. User Interface: Menus, Commands, and Popupmenus: Pushing and Popping Menus

Sample Code References:

  1. pt_examples ( TestProcstep.c )
  2. pt_examples ( TestInterface.c )
  3. pt_examples ( TestFamTab.c )
  4. pt_examples ( TestFeats.c )
  5. pt_examples ( TestFeats.c )
  6. pt_examples ( TestFeats.c )
  7. pt_examples ( TestDtmPln.c )
  8. pt_examples ( TestDrwView.c )
  9. pt_examples ( TestDrawing.c )
  10. pt_examples ( TestMain.c )
  11. pt_examples ( TestMain.c )
  12. pt_examples ( TestMenu.c )
  13. pt_examples ( TestMfgMenu.c )
  14. pt_examples ( TestMfgNCSeq.c )
  15. pt_examples ( TestMfgWcell.c )
  16. pt_examples ( TestMfgWcell.c )
  17. pt_examples ( TestRelation.c )
  18. pt_examples ( TestSimpRep.c )
  19. pt_examples ( TestSimpRep.c )
  20. pt_mech_examples ( PTMechExItemInfo.c )
  21. pt_mech_examples ( PTMechExLoadOper.c )
  22. pt_mech_examples ( PTMechExLoadOper.c )
  23. pt_mech_examples ( PTMechExLoadOper.c )
  24. pt_userguide ( UgInterfaceMenu.c )
  25. pt_userguide ( UgAsmMenu.c )
  26. pt_userguide ( UgAsmMenu.c )
  27. pt_userguide ( UgAsmMenu.c )
  28. pt_userguide ( UgAsmMenu.c )
  29. pt_userguide ( UgCommonMenus.c )
  30. pt_userguide ( UgCommonMenus.c )
  31. pt_userguide ( UgCommonMenus.c )
  32. pt_userguide ( UgCommonMenus.c )
  33. pt_userguide ( UgCommonMenus.c )
  34. pt_userguide ( UgCommonMenus.c )
  35. pt_userguide ( UgCommonMenus.c )
  36. pt_userguide ( UgCommonMenus.c )
  37. pt_userguide ( UgCommonMenus.c )
  38. pt_userguide ( UgCommonMenus.c )
  39. pt_userguide ( UgCommonMenus.c )
  40. pt_userguide ( UgCommonMenus.c )
  41. pt_userguide ( UgCommonMenus.c )
  42. pt_userguide ( UgCommonMenus.c )
  43. pt_userguide ( UgCommonMenus.c )
  44. pt_userguide ( UgDrawingMenu.c )
  45. pt_userguide ( UgDrawingMenu.c )
  46. pt_userguide ( UgDrawingMenu.c )
  47. pt_userguide ( UgDrawingMenu.c )
  48. pt_userguide ( UgDrawingMenu.c )
  49. pt_userguide ( UgDrawingMenu.c )
  50. pt_userguide ( UgDrawingMenu.c )
  51. pt_userguide ( UgDrawingMenu.c )
  52. pt_userguide ( UgDrawingMenu.c )
  53. pt_userguide ( UgMFGMenu.c )
  54. pt_userguide ( UgMFGMenu.c )
  55. pt_userguide ( UgMainMenu.c )
  56. pt_userguide ( UgMainMenu.c )
  57. pt_userguide ( UgMainMenu.c )
  58. pt_userguide ( UgMainMenu.c )
  59. pt_userguide ( UgMenuMenusSetup.c )
  60. pt_userguide ( UgNewDrawingMenu.c )
  61. pt_userguide ( UgPartMenu.c )
  62. pt_userguide ( UgPartMenu.c )
  63. pt_userguide ( UgUIMenu.c )
  64. pt_userguide ( UgSolidMenu.c )