| |||||||
| General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Sep 2006
Posts: 12
Thanks: 3
Thanked 6 Times in 2 Posts
Country: | Hello, I'm currently developing my first MediaPortal-plugin and I'm having some very basic problems with the GUIFacadeControl. No matter what I try I can't get any items in the list to show up on the screen. this is my XML: Code: <window>
<id>7654</id>
<defaultcontrol>50</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<controls>
<import>common.window.xml</import>
<import>common.facade.xml</import>
</controls>
</window>
And a snippet from my code: Code: [SkinControlAttribute(50)] protected GUIFacadeControl facadeView = null;
facadeView = new GUIFacadeControl(GetID);
facadeView.View = GUIFacadeControl.ViewMode.List;
facadeView.Clear();
facadeView.Add(new GUIListItem("item1"));
facadeView.Add(new GUIListItem("item2"));
I've tested adding some ButtonControls to the XML and they turn up OK on the screen. But I can't get this facade to work. Can somebody please help me? |
| | |
| |
| | #2 (permalink) |
| Portal Member Join Date: Sep 2006
Posts: 12
Thanks: 3
Thanked 6 Times in 2 Posts
Country: | I used the plugin-tutorial as a base for my plugin: PluginDevelopersGuide - MediaPortal Wiki Documentation and all that works great. But when I try to add a GUIFacadeControl to the prosjekt nothing happens, I can't get the list displayed on screen. If somebody could point out what code and what XML and code is necessary that would be great! because I can't seem to figure it out. The GUIFacadeControl is not documented in: SkinArchitecture - MediaPortal Wiki Documentation and that makes it a bit hard to understand how to go forward. any help is deeply appreciated! ![]() |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post
| I've had the same problem. It's working with the following: Code: <control>
<description>composite control consisting of a list control and a thumbnail panel</description>
<type>facadeview</type>
<id>1201</id>
<control>
<description>listcontrol</description>
<type>listcontrol</type>
<id>1201</id>
<scrollOffset>2</scrollOffset>
</control>
</control>
# code Code: [SkinControlAttribute(1201)]
public GUIFacadeControl testlist = null;
# ... some function which is to fill the list:
if (testlist == null)
{
testlist = new GUIFacadeControl(GetID);
}
testlist.View = GUIFacadeControl.ViewMode.List;
testlist.Add(new GUIListItem("item1"));
|
| | |
![]() |
| Bookmarks |
| Tags |
| guifacadecontrol, newbie |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Newbie Problem with Installation | SteveC-MM | MediaPortal 1 Talk | 4 | 2007-06-20 03:35 |
| GuiFacadeControl problem | GaryW | Plugins | 0 | 2006-10-02 09:37 |
| newbie!! tv problem | weyhrich_gt | Installation, configuration support | 1 | 2006-08-17 22:57 |
| Newbie -Jerky Video problem + No Signal Error HELP! | angel129116 | General Support | 9 | 2006-03-26 13:05 |
| NEWBIE: Problem with AlbumArt and question about MyPictures | JueLue | General Support | 0 | 2005-12-03 09:40 |