Category Creo Parametric user interface, Object ProMouse

Function ProMouseTrack


Description
Reports the current mouse position immediately, regardless of whether any buttons are pressed.
Replacement in Object TOOLKIT: pfcSession::UIGetCurrentMouseStatus
Synopsis
#include <ProGraphic.h>
ProErrorProMouseTrack(
int options
/* (In)
The mouse tracking options. Supply one or more of the PRO_MOUSETRACK_OPT constants OR'd together for this argument. This bitmask allows you to track using grid snap, and also to allow viewing operations using the middle mouse button while tracking. If options is 0, the function returns the exact mouse coordinates while disabling all viewing operations (this is the usual type of call).
*/
ProMouseButton* button_pressed
/* (Out)
Specifies which mouse buttons were pressed.
*/
ProPoint3d position
/* (Out)
The logical window coordinates of the current mouse position.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_ABORTThe user aborted input.
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 ( TestGraphics.c )