I am trying to find out the component name of the current component that is active and visible in the window through setContentComponent. I thought that the function getName would be the right one, but it is returning an empty string.
My usage is as follows:
String componentName = getName();
String text = T(“Blah”);
printf(“component name: %s\n”,componentName.toUTF8());
I know I am printing to STDOUT correctly, I just don’t know how I am missing the usage of getName() to find the component that is active and visible.
Any help appreciated.