Page 1 of 1

ListBox object

Posted: Mon Dec 11, 2017 2:31 pm
by kkwon2
Hi,

Using a list box to display a message; typically only one message will be shown at a time. Need Multilanguage support, so using the list box Configure Texts dialog to enter the text. Text will depend on a tags value.

TagMessageIndex

Message Start Value End Value
Text1 1 1
Text2 2 2
Text3 3 3

So if TagMessageIndex is 1, Text1 is displayed in the List box.
TagMessageIndex is 2, Text2 is displayed in the List box. etc.

Just wonder why all Text messages are displayed in the Listbox as I add them to the Configure Texts dialog; note not yet running the application. Or am I not using the Configure Texts properly?

Re: ListBox object

Posted: Tue Dec 12, 2017 7:46 am
by AMitchneck
It sounds like what you really want to use is a textbox not a listbox. A listbox is designed to give a list of items for a user to select. From playing with it a little, it seems the configure texts is used to create the list of items and set a tag to the value associated with the selected index. If all you are displaying is one (even multi-line) message then I would switch to a textbox.

In my application, I use a listbox to display multiple events in sequential order. To support multi-language, I clear the listbox and reload it with the new language using script.

Re: ListBox object

Posted: Tue Dec 12, 2017 7:52 am
by kkwon2
Will try text box.

Thanks,
Ken