MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
Thread Tools Display Modes
Old 2008-02-15, 14:36   #1 (permalink)
Portal Member
 
Join Date: Sep 2006
Posts: 12
Thanks: 3
Thanked 6 Times in 2 Posts

Country:


Question GUIFacadeControl newbie problem

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>
I'm trying to use the default facade-control. Is this correct?

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"));
but the screen still turns up empty when I start my plugin.

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?
MrBacardi is offline   Reply With Quote
Old 2008-02-16, 10:20   #2 (permalink)
Portal Member
 
Join Date: Sep 2006
Posts: 12
Thanks: 3
Thanked 6 Times in 2 Posts

Country:


Default

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!
MrBacardi is offline   Reply With Quote
Old 2008-03-27, 18:45   #3 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 15
Thanks: 0
Thanked 5 Times in 1 Post


Default

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"));
panni is offline   Reply With Quote
Reply

Bookmarks

Tags
guifacadecontrol, newbie

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

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


All times are GMT +1. The time now is 23:42.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress