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="Sebastiii" data-source="post: 1171625" data-attributes="member: 60104"><p>Ok, now i remember when debugging the original issue, we have this in \mediaportal\Core\guilib\GUITextScrollUpControl.cs :</p><p></p><p>The '_containsProperty' is set to true when and only when the property start with #......</p><p></p><p>So for ex :</p><p><define property="true" evaluateNow="false">#desc.text: Dean is surprised when he checks Bobbys cell phone and hears a message that says Bobby or his next of kin have been named as a beneficiary in an heiress will. Hoping that means extra money, Dean talks Sam into hitting the road to claim their fortune. However, what they encounter at the house is far from a treasure chest. </define></p><p></p><p>This property start with #desc.text, so when GUITextScrollUpControl code detect #desc.text, _containsProperty is true and then the text is displayed.</p><p></p><p>The fix from Jira, does that :</p><p></p><p>[code=csharp]if (text.Length > 0 && text[0] == '#' && control.Type != "textboxscrollup")</p><p> {</p><p> string foundDefine = null;</p><p></p><p> if (defines.TryGetValue(text, out foundDefine))</p><p> {</p><p> text = foundDefine;</p><p> }</p><p> else</p><p> {</p><p> if (_cachedDefines.TryGetValue(text, out foundDefine))</p><p> {</p><p> text = foundDefine;</p><p> }</p><p> }</p><p> }[/code]</p><p></p><p>If the property start with # (here #desc.text) we will not try to look/search if #desc.text contain a define value (the text : Dean is surprised .....) because if the property will be converted to a text (here), the code from GUITextScrollUpControl will not be used and then nothing displayed.</p><p></p><p>To summarize :</p><p>Before the Jira, the property was checked and if a define value was found, the property was converted to the text and then textboxscrollup display nothing.</p><p>With the Jira, it doesn't try to convert/find a define from the property and then textboxscrollup does his job and do the convertion.</p><p></p><p>But now in your example, it seems that we need to convert the property with the correspondent value like you can see it working on 1.12.</p><p></p><p>So i don't know what to do right now lol</p></blockquote><p></p>
[QUOTE="Sebastiii, post: 1171625, member: 60104"] Ok, now i remember when debugging the original issue, we have this in \mediaportal\Core\guilib\GUITextScrollUpControl.cs : The '_containsProperty' is set to true when and only when the property start with #...... So for ex : <define property="true" evaluateNow="false">#desc.text: Dean is surprised when he checks Bobbys cell phone and hears a message that says Bobby or his next of kin have been named as a beneficiary in an heiress will. Hoping that means extra money, Dean talks Sam into hitting the road to claim their fortune. However, what they encounter at the house is far from a treasure chest. </define> This property start with #desc.text, so when GUITextScrollUpControl code detect #desc.text, _containsProperty is true and then the text is displayed. The fix from Jira, does that : [code=csharp]if (text.Length > 0 && text[0] == '#' && control.Type != "textboxscrollup") { string foundDefine = null; if (defines.TryGetValue(text, out foundDefine)) { text = foundDefine; } else { if (_cachedDefines.TryGetValue(text, out foundDefine)) { text = foundDefine; } } }[/code] If the property start with # (here #desc.text) we will not try to look/search if #desc.text contain a define value (the text : Dean is surprised .....) because if the property will be converted to a text (here), the code from GUITextScrollUpControl will not be used and then nothing displayed. To summarize : Before the Jira, the property was checked and if a define value was found, the property was converted to the text and then textboxscrollup display nothing. With the Jira, it doesn't try to convert/find a define from the property and then textboxscrollup does his job and do the convertion. But now in your example, it seems that we need to convert the property with the correspondent value like you can see it working on 1.12. So i don't know what to do right now lol [/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