cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

ProUILabel as a list displayer

MrSteveR_3
12-Amethyst

ProUILabel as a list displayer

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!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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'.

View solution in original post

2 REPLIES 2

Hi,

I suggest you to ask PTC Support.


Martin Hanák

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'.