a flag is set by or-ing the flags parameter with the flag (text.flags |= SHOW;) and reset by and-ing the flags parameter with the inverse flag (text.flags &= ~SHOW;).
So you could do:
retention_name_txt.flags &= ~WWRAP; // to reset
retention_name_txt.flags |= WWRAP; // to set
Also, you could check for the length on the string with
str_len.But I would personally use imgui for this purposes, cause it's very simple and easy to use + offers much more than acknex panels/texts has.
You can find it here:
Imgui Lite-C DevelopmentBest regards.