I think there is inconsistent behavior with defines in textboxscrollup (maybe introduced or not completely solved by MP1-4695). I will try to explain it (not easy for me).
You can use <define> and <define property=...> in window XML file and in references.xml file, in different controls and different tags (<label>, <color>, <width>,...). Some combinations seem to work and others do not.
Take for example this scenario:
In references.xml file:
In any window XML file:
Now, in the same window XML file, if you try to use define, property or style in textboxscrollup, some of them don't work.
#test.property_text_xml is ok, as expected, but #test.define_text_xml don't work.
#test.define_text and #test.property_text (both included in references.xml), neither works.
If you use the style style_test_control_define in the textboxscrollup, doesn't work (the label or color text are not converted)
If you use the style style_test_control_property in the textboxscrollup, it works, but also, if you try to override the tags (e.g. with <label>This is another text</label> in textboxscrollup), doesn't work.
Trying to summarize:
Can or can't be overridden refers to the use in defining a style in references.xml and then try to change in the window file.
Wow, this is a mess
. I hope this may be understandable, but I have tried to explain it as best I could
.
You can use <define> and <define property=...> in window XML file and in references.xml file, in different controls and different tags (<label>, <color>, <width>,...). Some combinations seem to work and others do not.
Take for example this scenario:
In references.xml file:
Code:
<define>#test.define_text:This is an example define text</define>
<define>#test.define_color:ffffffff</define>
<define property="true">#test.property_text:This is an example property text</define>
<define property="true">#test.property_color:ffffffff</define>
<style Name="style_test_control_define">
<label>#test.define_text_xml</label>
<color>#test.define_color_xml</color>
</style>
<style Name="style_test_control_property">
<label>#test.property_text_xml</label>
<color>#test.property_color_xml</color>
</style>
In any window XML file:
Code:
<define>#test.define_text_xml:This is an example define text</define>
<define>#test.define_color_xml:ffffffff</define>
<define property="true">#test.property_text_xml:This is an example property text</define>
<define property="true">#test.property_color_xml:ffffffff</define>
Now, in the same window XML file, if you try to use define, property or style in textboxscrollup, some of them don't work.
#test.property_text_xml is ok, as expected, but #test.define_text_xml don't work.
#test.define_text and #test.property_text (both included in references.xml), neither works.
If you use the style style_test_control_define in the textboxscrollup, doesn't work (the label or color text are not converted)
If you use the style style_test_control_property in the textboxscrollup, it works, but also, if you try to override the tags (e.g. with <label>This is another text</label> in textboxscrollup), doesn't work.
Trying to summarize:
Code:
define in references.xml | don't work | can be overridden
define in window xml | don't work | can't be overridden
property in references.xml | don't work | can be overridden
property in window xml | work | can't be overridden
Wow, this is a mess