Category Creo Parametric user interface, Object ProMouse

Function ProMousePickGet


Description
Reports the mouse position when the user presses one of the mouse buttons. It does not return until the user presses a button.

NOTE:

You must check the return value to make sure the user did not select a command.

Replacement in Object TOOLKIT: pfcSession::UIGetNextMousePick
Synopsis
#include <ProGraphic.h>
ProErrorProMousePickGet(
ProMouseButton expected_button
/* (In)
The identifier of the mouse button the user is expected to use to make the pick. If the user can pick with any button, use PRO_ANY_BUTTON.
*/
ProMouseButton* button_pressed
/* (Out)
The identifier of the button used to make the pick.
*/
ProPoint3d position
/* (Out)
The coordinates of the picked point.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Getting Mouse Input
  3. User Interface: Basic Graphics: Getting Mouse Input

Sample Code References:

  1. pt_examples ( TestDimension.c )
  2. pt_examples ( TestDimension.c )
  3. pt_examples ( TestDimension.c )
  4. pt_examples ( TestExtrude.c )
  5. pt_examples ( TestExtrude.c )
  6. pt_examples ( TestExtrude.c )
  7. pt_examples ( TestExtrude.c )
  8. pt_examples ( TestExtrude.c )
  9. pt_examples ( TestExtrude.c )
  10. pt_examples ( TestExtrude.c )
  11. pt_examples ( TestExtrude.c )
  12. pt_examples ( TestExtrude.c )
  13. pt_examples ( TestDrawTbl.c )
  14. pt_examples ( TestDrawTbl.c )
  15. pt_examples ( TestDrawTbl.c )
  16. pt_examples ( TestDrawTbl.c )
  17. pt_examples ( TestDrwView.c )
  18. pt_examples ( TestDrwView.c )
  19. pt_examples ( TestDrwView.c )
  20. pt_examples ( TestDtlentity.c )
  21. pt_examples ( TestDtlentity.c )
  22. pt_examples ( TestDtlentity.c )
  23. pt_examples ( TestDtlentity.c )
  24. pt_examples ( TestDtlentity.c )
  25. pt_examples ( TestDtlentity.c )
  26. pt_examples ( TestDtlentity.c )
  27. pt_examples ( TestDtlentity.c )
  28. pt_examples ( TestDtlentity.c )
  29. pt_examples ( TestDtlentity.c )
  30. pt_examples ( TestDtlentity.c )
  31. pt_examples ( TestDtlentity.c )
  32. pt_examples ( TestDtlnote.c )
  33. pt_examples ( TestDtlnote.c )
  34. pt_examples ( TestDtlsyminst.c )
  35. pt_examples ( TestGraphics.c )
  36. pt_examples ( TestGraphics.c )
  37. pt_examples ( TestGraphics.c )
  38. pt_examples ( TestGraphics.c )
  39. pt_examples ( TestGraphics.c )
  40. pt_examples ( TestGraphics.c )
  41. pt_examples ( TestGraphics.c )
  42. pt_examples ( TestGraphics.c )
  43. pt_examples ( TestGraphics.c )
  44. pt_examples ( TestGraphics.c )
  45. pt_examples ( TestGraphics.c )
  46. pt_examples ( TestGraphics.c )
  47. pt_examples ( TestSymDefMenu.c )
  48. pt_examples ( TestGtol.c )
  49. pt_examples ( TestSetup.c )
  50. pt_userguide ( UgDtlentityExamples.c )
  51. pt_userguide ( UgDtlentityExamples.c )
  52. pt_userguide ( UgDtlnoteExamples.c )
  53. pt_userguide ( UgDwgtableExamples.c )
  54. pt_userguide ( UgFundCsysTrf.c )
  55. pt_userguide ( UgGraphLineCircleDraw.c )
  56. pt_userguide ( UgSolidNoteCreate.c )
  57. pt_userguide ( UgUtilPick.c )