Table of Contents

 
SetText
 

Purpose

Assigns new text to an object

 

Protoype

void CTextMngr::SetText (string str_text_id, string str_new_text = "")
 

Parameters

text_id the ID of the text object to set
new_text the new string to assign to the text object
 

Description

This function changes the actual text that is displayed on the screen. You pass the ID of the text object for str_text_id and then the string that you want the text object to display on the screen for str_new_text. If you want to modify the text already stored in the object, you can use GetText() to extract the string.

 
Use
CTextMngr text;
text.SetText("my_text", "I want to display this now");
 

Prev: SetSelect