janm7462 Posted June 24, 2014 Report Share Posted June 24, 2014 Hello, I want dynamic text to buttons, listbox or combobox. How do I do that?. Jan Martijn Quote Link to comment Share on other sites More sharing options...
Eyal Koren Posted June 24, 2014 Report Share Posted June 24, 2014 Hello Jan, you have two approaches in your case: the first is using a "List of Texts" HMI element. You can define different texts and activate them according to an index value. Also, you can attach different actions to the element which will give it a button functionality. The second is more complicated solution (and less effective on my opinion, especially if you want to use several languages in your project), but it is closer to your definition of "attaching a string variable to a button": You can use the Unilogic languages feature to define more than one language in you project. Then, for every HMI element you can define its own appearance depending on you language selection. Selecting the active language is done via the "Actions" screen. I hope that answer your question. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.