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
Read Text Liabrary
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Read Text Liabrary
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.
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.
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;
}
}
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: Read Text Liabrary
Has this been changed?
Tried to make a combobox, and then go to dynamic-general, but the "Text" property isnt there.
Tried to make a combobox, and then go to dynamic-general, but the "Text" property isnt there.