Category Graphics and model display, Object ProGraphics

Function ProGraphicsTextDisplay


Description
Draws text on the screen.

NOTES:

  • These points are in the coordinate system of the current object. For example, if the current object is a part, the points must be in the part's coordinate system. If the current object is an assembly, the points must be in the assembly's coordinate system.
  • You can call the function ProText*CurrentSet() to set the text attributes before calling this function.
Replacement in Object TOOLKIT: pfcDisplay::DrawText2D
Synopsis
#include <ProGraphic.h>
ProErrorProGraphicsTextDisplay(
ProPoint3d point
/* (In)
The starting point for the text
*/
wchar_t* text
/* (In)
The text string
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully drew the text.
PRO_TK_E_NOT_FOUNDThe font specified in a previous call to ProtText*CurrentSet() was not found.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Setting Colors to Desired Values
  3. User Interface: Basic Graphics: Displaying Text
  4. User Interface: Basic Graphics: Controlling Text Attributes

Sample Code References:

  1. pt_examples ( TestDrawTbl.c )
  2. pt_examples ( TestDrawTbl.c )
  3. pt_examples ( TestDrawTbl.c )
  4. pt_examples ( TestGraphics.c )
  5. pt_examples ( UtilTree.c )
  6. pt_userguide ( UgGraphPolyLineDraw.c )
  7. pt_userguide ( UgGraphPolyLineDraw.c )