Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
I need your help! I need to display a dialog with a list of message, but I have no many example with ProUILabel and what I did always fail.
I tried to put code below inside a loop with an incrementing DIALOG_LABEL and label_text as message:
ProUIDialogLabelAdd(DIALOG_NAME,DIALOG_LABEL,&grid_opts);
ProMessageToBuffer(label_txt, user_msg_new, "board_selection");
ProUILabelTextSet(DIALOG_NAME,DIALOG_LABEL,label_txt);
Is there a easier way to display the box with list of message? Is ProUIDialogLabelAdd and ProUILabelTextSet fit for that?
Thank you!
Solved! Go to Solution.
Hello Steve,
sounds like a ProUILabel is not the right component for your purpose.
You better add a text area via ProUIDialogTextareaAdd.
Pre-assemble your messages inside a loop into a single wide string and apply it using function ProUITextareaValueSet.
In order to insert a line break use L'\n'.
Hi,
I suggest you to ask PTC Support.
Hello Steve,
sounds like a ProUILabel is not the right component for your purpose.
You better add a text area via ProUIDialogTextareaAdd.
Pre-assemble your messages inside a loop into a single wide string and apply it using function ProUITextareaValueSet.
In order to insert a line break use L'\n'.