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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

ProUILabel as a list displayer

MrSteveR_3
14-Alexandrite

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!

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
FabianWolf
13-Aquamarine
(To:MrSteveR_3)

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
FabianWolf
13-Aquamarine
(To:MrSteveR_3)

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

Announcements


Top Tags