Category Creo Parametric user interface, Object ProMouse

Function ProMouseBoxInput


Description
Draws a dynamic rectangle from the specified point (in screen coordinates) to the current mouse position, until the user presses the left mouse button. The function then returns the coordinates of the box entered.

If you hit the middle or right mouse button instead of picking the first vertex, the function aborts.

Replacement in Object TOOLKIT: pfcSession::UIPickMouseBox
Synopsis
#include <ProGraphic.h>
ProErrorProMouseBoxInput(
ProPoint3d point
/* (In)
If not equal to NULL, this specifies the coordinates of one of the corners of the box. If this is NULL, the function obtains the placement of both corners of the box.
*/
ProOutline outline
/* (Out)
The coordinates of the box, as selected by the user.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully returned the box outline.
PRO_TK_GENERAL_ERRORThe user picked a command.

Manual References:

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

Sample Code References:

  1. pt_examples ( TestGraphics.c )