filmstrip (1 Viewer)

Zarra

Portal Member
March 24, 2008
26
0
Home Country
Germany Germany
Hello,

I'm currently developing my first MediaPortal-plugin and I'm having some very basic problems with the image and filmstrip view i like to add many images in the same screen like the Filmstrip view

but how can i add images to the Filmstrip

No matter what I try I can't get any items in the list to show up on the screen

Code:
    <!-- Graph oben mitte -->
    <control>
      <animation effect="fade" time="300">WindowOpen</animation>
      <description>Grafik</description>
      <type>image</type>
      <id>0112</id>
      <posX>252</posX>
      <posY>180</posY>
      <width>300</width>
      <height>300</height>
    </control>
    <!-- Label oben mitte id Körperliche Aktivität-->
    <control>
      <animation effect="fade" time="300">WindowOpen</animation>
      <description>Longitud Beschleu Peaks</description>
      <type>label</type>
      <id>201</id>
      <posX>388</posX>
      <posY>160</posY>
      <font>font12</font>
      <align>left</align>
      <textcolor>7f18c6de</textcolor>
    </control>

and the filmstrip :

Code:
      <control>
        <description>Filmstrip view</description>
        <type>filmstrip</type>
        <id>50</id>
        <onleft>10</onleft>
        <onright>2</onright>
        <onup>2</onup>
        <ondown>2</ondown>
        <background>context_background.png</background>
        <backgroundx>275</backgroundx>
        <backgroundy>175</backgroundy>
        <backgroundwidth>420</backgroundwidth>
        <backgroundheight>350</backgroundheight>
        <backgrounddiffuse>60ffffff</backgrounddiffuse>
      </control>
thank you for your help
 

Attachments

  • image.jpg
    image.jpg
    130.2 KB
  • image2.jpg
    image2.jpg
    103.9 KB

jburnette

Portal Pro
August 24, 2006
758
116
Kentucky
Home Country
United States of America United States of America
You can add items by creating a GUIListItem, setting the fields in it that you want set, and then it's as simple as filmstrip.Add(item). Of course, you'll need to replace the filmstrip with whatever you've declared your filmstrip as and item will be the name of your GUIListItem.
 

Zarra

Portal Member
March 24, 2008
26
0
Home Country
Germany Germany
thank you for your reply, i replaced the filmstrip with the GUIListItem but i dont find the Method to make a relation between the GUIListItem and the image
image.SetFileName("totalEnergy" + fileCounter.ToString() + ".png"); ?

<control>
<description>composite control consisting of a list control and a thumbnail panel</description>
<type>facadeview</type>
<id>1222</id>
<control>
<description>listcontrol</description>
<type>listcontrol</type>
<id>1222</id>
<posX>252</posX>
<posY>180</posY>
<width>300</width>
<height>300</height>
<scrollOffset>2</scrollOffset>
</control>
</control>


<!-- Graph oben mitte -->
<control>
<animation effect="fade" time="300">WindowOpen</animation>
<description>Grafik</description>
<type>image</type>
<id>0112</id>
<posX>252</posX>
<posY>180</posY>
<width>300</width>
<height>300</height>
</control>
<!-- Label oben mitte id Körperliche Aktivität-->
<control>
<animation effect="fade" time="300">WindowOpen</animation>
<description>Longitud Beschleu Peaks</description>
<type>label</type>
<id>201</id>
<posX>388</posX>
<posY>160</posY>
<font>font12</font>
<align>left</align>
<textcolor>7f18c6de</textcolor>
</control>


i dont know if you understand what i mean i like to have many images with a numeration like a spincontrol that control all my images?
 

Users who are viewing this thread

Top Bottom