Dynamic Labels
- Jacques Marais
Owned by Jacques Marais
Description
Any label, heading or title for view components, including the view itself, can be dynamically specified using a unit variable. The variable lookup is controlled via the lang file and specified inside curly brackets using the fully qualified variable name. This includes the unit name followed by a colon followed by the variable name. Also note that the feature is not available to Helium menu items.
Example
View XML
<info label="info_label.country_division"> <binding variable="state" /> </info>
Backing unit
Unit CountryUtil; Â string countryDivision; Â void init() { countryDivision = "province"; }
en.lang file entry
info_label.country_division={CountryUtil:countryDivision}