wxText::SetValue

void SetValue(char * value)

Sets the text. value must be deallocated by the calling program.