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
Development
General Development (no feature request here!)
Horizontal list of buttons/images (tab functionality)
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="GetWell" data-source="post: 780226" data-attributes="member: 25426"><p>still no luck :-(</p><p></p><p>this is really weird. I have tried to put in a dummy control and can see it in MP, but I can't reach it.</p><p></p><p>I have also tried without GetWindow()</p><p>Codebehind:</p><p>[PHP]protected GUIGroup _Group;</p><p> protected GUIGroup MainGroup</p><p> {</p><p> get</p><p> {</p><p> if (_Group == null)</p><p> _Group = GUIWindowManager.GetWindow(99207).GetControl(6) as GUIGroup;</p><p> return _Group;</p><p> }</p><p> }</p><p></p><p>...</p><p>...</p><p></p><p>GUIButtonControl btn = new GUIButtonControl(6);</p><p>MainGroup.AddControl(btn);[/PHP]</p><p></p><p>XML</p><p>[PHP]<control></p><p> <description></description></p><p> <type>group</type></p><p> <id>6</id></p><p> <posX>10</posX></p><p> <posY>10</posY></p><p> <width>550</width></p><p> <layout>StackLayout(2,Horizontal)</layout></p><p> <visible>yes</visible></p><p> <animation effect="fade" time="1000">visiblechange</animation></p><p> <control></p><p> <type>image</type></p><p> <texture>notificationbar/button_background_focus.png</texture></p><p> <id>101</id></p><p> <posX>10</posX></p><p> <posY>10</posY></p><p> <width>50</width></p><p> <height>40</height></p><p> </control></p><p> </control>[/PHP]</p></blockquote><p></p>
[QUOTE="GetWell, post: 780226, member: 25426"] still no luck :-( this is really weird. I have tried to put in a dummy control and can see it in MP, but I can't reach it. I have also tried without GetWindow() Codebehind: [PHP]protected GUIGroup _Group; protected GUIGroup MainGroup { get { if (_Group == null) _Group = GUIWindowManager.GetWindow(99207).GetControl(6) as GUIGroup; return _Group; } } ... ... GUIButtonControl btn = new GUIButtonControl(6); MainGroup.AddControl(btn);[/PHP] XML [PHP]<control> <description></description> <type>group</type> <id>6</id> <posX>10</posX> <posY>10</posY> <width>550</width> <layout>StackLayout(2,Horizontal)</layout> <visible>yes</visible> <animation effect="fade" time="1000">visiblechange</animation> <control> <type>image</type> <texture>notificationbar/button_background_focus.png</texture> <id>101</id> <posX>10</posX> <posY>10</posY> <width>50</width> <height>40</height> </control> </control>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Horizontal list of buttons/images (tab functionality)
Contact us
RSS
Top
Bottom