home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Unconsistent behavior in textboxscrollup and defines in MP 1.13
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="XMaM" data-source="post: 1169583" data-attributes="member: 134551"><p>I think there is inconsistent behavior with defines in <strong>textboxscrollup</strong> (maybe introduced or not completely solved by <a href="https://issues.team-mediaportal.com/browse/MP1-4695" target="_blank">MP1-4695</a>). I will try to explain it (not easy for me).</p><p>You can use <em><define></em> and <em><define property=...></em> in window XML file and in <strong>references.xml</strong> file, in different controls and different tags (<em><label>, <color>, <width>,</em>...). Some combinations seem to work and others do not.</p><p>Take for example this scenario:</p><p>In references.xml file:</p><p>[CODE]<define>#test.define_text:This is an example define text</define></p><p><define>#test.define_color:ffffffff</define></p><p><define property="true">#test.property_text:This is an example property text</define></p><p><define property="true">#test.property_color:ffffffff</define></p><p></p><p><style Name="style_test_control_define"></p><p> <label>#test.define_text_xml</label></p><p> <color>#test.define_color_xml</color></p><p></style></p><p><style Name="style_test_control_property"></p><p> <label>#test.property_text_xml</label></p><p> <color>#test.property_color_xml</color></p><p></style>[/CODE]</p><p></p><p></p><p>In any window XML file:</p><p>[CODE]<define>#test.define_text_xml:This is an example define text</define></p><p><define>#test.define_color_xml:ffffffff</define></p><p><define property="true">#test.property_text_xml:This is an example property text</define></p><p><define property="true">#test.property_color_xml:ffffffff</define>[/CODE]</p><p></p><p></p><p>Now, in the same window XML file, if you try to use define, property or style in <strong>textboxscrollup</strong>, some of them don't work.</p><p></p><p><em>#test.property_text_xml</em> is ok, as expected, but <em>#test.define_text_xml</em> don't work.</p><p><em>#test.define_text </em>and <em>#test.property_text</em> (both included in <strong>references.xml</strong>), neither works.</p><p></p><p>If you use the style <em>style_test_control_define</em> in the <strong>textboxscrollup</strong>, doesn't work (the label or color text are not converted)</p><p>If you use the style <em>style_test_control_property</em> in the <strong>textboxscrollup</strong>, it works, but also, if you try to override the tags (e.g. with <em><label></em>This is another text<em></label></em> in <strong>textboxscrollup</strong>), doesn't work.</p><p></p><p>Trying to summarize:</p><p>[CODE]</p><p>define in references.xml | don't work | can be overridden</p><p>define in window xml | don't work | can't be overridden</p><p>property in references.xml | don't work | can be overridden</p><p>property in window xml | work | can't be overridden</p><p>[/CODE]</p><p><span style="font-size: 10px">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.</span></p><p></p><p>Wow, this is a mess <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />. I hope this may be understandable, but I have tried to explain it as best I could <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite25" alt="(n)" title="Thumbs Down (n)" loading="lazy" data-shortname="(n)" />.</p></blockquote><p></p>
[QUOTE="XMaM, post: 1169583, member: 134551"] I think there is inconsistent behavior with defines in [B]textboxscrollup[/B] (maybe introduced or not completely solved by [URL='https://issues.team-mediaportal.com/browse/MP1-4695']MP1-4695[/URL]). I will try to explain it (not easy for me). You can use [I]<define>[/I] and [I]<define property=...>[/I] in window XML file and in [B]references.xml[/B] file, in different controls and different tags ([I]<label>, <color>, <width>,[/I]...). 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>[/CODE] 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>[/CODE] Now, in the same window XML file, if you try to use define, property or style in [B]textboxscrollup[/B], some of them don't work. [I]#test.property_text_xml[/I] is ok, as expected, but [I]#test.define_text_xml[/I] don't work. [I]#test.define_text [/I]and [I]#test.property_text[/I] (both included in [B]references.xml[/B]), neither works. If you use the style [I]style_test_control_define[/I] in the [B]textboxscrollup[/B], doesn't work (the label or color text are not converted) If you use the style [I]style_test_control_property[/I] in the [B]textboxscrollup[/B], it works, but also, if you try to override the tags (e.g. with [I]<label>[/I]This is another text[I]</label>[/I] in [B]textboxscrollup[/B]), 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 [/CODE] [SIZE=2]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.[/SIZE] Wow, this is a mess :confused:. I hope this may be understandable, but I have tried to explain it as best I could (n). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Unconsistent behavior in textboxscrollup and defines in MP 1.13
Contact us
RSS
Top
Bottom