Read Text Liabrary

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
umesh.patil
Posts: 15
Joined: Mon Dec 05, 2011 12:25 am

Read Text Liabrary

Post by umesh.patil »

hi

I am using t7a. I want to add Text Library Texts in to List box or combo box. It should show the list of text from Groups in Text Library in combo or list box. how to do this.


Thanks
Umesh patil

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Read Text Liabrary

Post by mark.monroe »

You can not link a Text Library to a List box, you can with a Combo Box. If you want to create dynamic text with a List box you will need to do it through code. Here is an example that fills a List box with some values when the Screen opens. You would just need to change those values based on the value of a Tag.

Code: Select all

    public partial class Screen1
    {			
		void Screen1_Opened(System.Object sender, System.EventArgs e)
		{
			for(int i=0;i<5;i++){ 				
				ListBox1.Items.Add("Count " + i.ToString());				
			}
		}			
		void ListBox1_MouseDown(System.Object sender, System.Windows.Forms.MouseEventArgs e)
		{
			Globals.Tags.Tag1.Value = ListBox1.SelectedIndex;
		}		
    }
To link a ComboBox to a Text Library create a combo box and double click it. Then go to the Dynamics tab and click general. Then go to the Text section and there you can select what Text Library you want to use.
double_click_combo.png
double_click_combo.png (170.33 KiB) Viewed 7701 times
DynamicsGeneral.png
DynamicsGeneral.png (135.9 KiB) Viewed 7701 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

flubb
Posts: 1
Joined: Fri Feb 16, 2018 12:02 am

Re: Read Text Liabrary

Post by flubb »

Has this been changed?
Tried to make a combobox, and then go to dynamic-general, but the "Text" property isnt there.

Post Reply