Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Read Text Liabrary
PostPosted: Wed Mar 28, 2012 6:39 am 

Joined: Mon Dec 05, 2011 12:25 am
Posts: 15

Offline
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


 Profile  
 
 Post subject: Re: Read Text Liabrary
PostPosted: Wed Mar 28, 2012 8:35 am 

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

Offline
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:
    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.

Attachment:
double_click_combo.png
double_click_combo.png [ 170.33 KiB | Viewed 3139 times ]

Attachment:
DynamicsGeneral.png
DynamicsGeneral.png [ 135.9 KiB | Viewed 3139 times ]

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Read Text Liabrary
PostPosted: Fri Feb 16, 2018 12:40 am 

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

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


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: