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
Input / Output interfaces
Mini Display
Latest iMon + Minidisplay
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="catavolt" data-source="post: 1190945" data-attributes="member: 54906"><p>THX, [USER=89825]@Kotik[/USER] <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p>Let me explain a bit:</p><p><em><strong>#highlightedbutton</strong></em> is a kind of internal MP property and is always available with the correct value, whether it is explicitly set in a label or not.</p><p>I use it e.g. to determine the latest media shown on the BasicHome: <em><strong>string.contains(#highlightedbutton,VIDEO2)</strong></em>.</p><p>In this case VIDEO2 is TVSeries. </p><p>So the label string <strong><em><label>#(string.format('{0}',#highlightedbutton))</label></em></strong> results in "TVSeries".</p><p>If minidisplay doesn´t show it correct, then there must something be done within that plugin.</p><p>You may test that the above string works correct, when you use this code in BasicHome:</p><p>[CODE=XML]<control></p><p> <description>Dummy button for minidisplay</description></p><p> <type>button</type></p><p> <posX>800</posX></p><p> <posY>20</posY></p><p> <id>0</id></p><p> <label>#(string.format('{0}',#highlightedbutton))</label></p><p> <textureFocus /></p><p> <textureNoFocus /></p><p> <colordiffuse>ffffffff</colordiffuse></p><p> </control>[/CODE]</p><p>Then the label of the actual focussed button is shown at the top in the middle of BasicHome screen <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="catavolt, post: 1190945, member: 54906"] THX, [USER=89825]@Kotik[/USER] ;) Let me explain a bit: [I][B]#highlightedbutton[/B][/I] is a kind of internal MP property and is always available with the correct value, whether it is explicitly set in a label or not. I use it e.g. to determine the latest media shown on the BasicHome: [I][B]string.contains(#highlightedbutton,VIDEO2)[/B][/I]. In this case VIDEO2 is TVSeries. So the label string [B][I]<label>#(string.format('{0}',#highlightedbutton))</label>[/I][/B] results in "TVSeries". If minidisplay doesn´t show it correct, then there must something be done within that plugin. You may test that the above string works correct, when you use this code in BasicHome: [CODE=XML]<control> <description>Dummy button for minidisplay</description> <type>button</type> <posX>800</posX> <posY>20</posY> <id>0</id> <label>#(string.format('{0}',#highlightedbutton))</label> <textureFocus /> <textureNoFocus /> <colordiffuse>ffffffff</colordiffuse> </control>[/CODE] Then the label of the actual focussed button is shown at the top in the middle of BasicHome screen ;) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Input / Output interfaces
Mini Display
Latest iMon + Minidisplay
Contact us
RSS
Top
Bottom