ListBox object

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
kkwon2
Posts: 26
Joined: Thu Dec 13, 2012 2:07 pm

ListBox object

Post 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?

AMitchneck
Posts: 137
Joined: Mon Jun 11, 2012 2:10 pm

Re: ListBox object

Post 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.
Adam M.
Controls Engineer
FlexEnergy

kkwon2
Posts: 26
Joined: Thu Dec 13, 2012 2:07 pm

Re: ListBox object

Post by kkwon2 »

Will try text box.

Thanks,
Ken

Post Reply