Category Graphics and model display, Object ProText

Function ProTextColorModify


Description
Enables you to change the text color so any subsequent graphics window text is drawn in the specified color.
Replacement in Object TOOLKIT: wfcWDisplay::ModifyTextColor
Synopsis
#include <ProColor.h>
ProErrorProTextColorModify(
ProColor* new_text_color
/* (In)
The new color to use to display text. If the color method is PRO_COLOR_METHOD_DEFAULT, the color used will be PRO_TEXT_COLOR. May be NULL, in which case the current text color will be returned.
*/
ProColor* p_old_text_color
/* (Out)
The previous text color. May be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully changed the color.
PRO_TK_NO_CHANGEThe current color is the same as the new color.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.

Manual References:

  1. User Interface: Basic Graphics: Setting Colors to Desired Values
  2. User Interface: Basic Graphics: Setting Colors to Desired Values

Sample Code References:

  1. pt_examples ( TestGraphics.c )
  2. pt_examples ( TestGraphics.c )
  3. pt_examples ( TestGraphics.c )
  4. pt_userguide ( UgGraphColorsAdjust.c )
  5. pt_userguide ( UgGraphColorsAdjust.c )
  6. pt_userguide ( UgGraphColorsAdjust.c )