Which control is used to display scrollable text + images?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
denywinarto Offline
Senior Member
Posts: 154
Joined: Jun 2012
Reputation: 0
Post: #1
Im trying to create a xbmc manual / how to based on transparency's credits section

[Image: 20120726_220754.jpg]

so basically i want to insert images between those texts,
i know page control only works with textbox and lists type,
but i cant call an image from grouplist type, can anyone guide me?

why dont i use pdf? i've tried running adobe reader using executor and adv plugin, it takes longg time to load then it freezes and i have to stop the reader..
and i need some kind of how to in my language, its necessary because this is for public usage.
(This post was last modified: 2012-07-27 04:36 by denywinarto.)
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #2
You have the code.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
denywinarto Offline
Senior Member
Posts: 154
Joined: Jun 2012
Reputation: 0
Post: #3
I decided to use advanced launcher + adobe pdf.. it's easier, maybe if there's a window skin that has similar attribute i will make one
find quote
Sranshaft Online
Posting Freak
Posts: 1,335
Joined: Dec 2008
Reputation: 19
Location: Melbourne, Australia
Post: #4
Why, can't you use an image in a grouplist, again? The following code should do what you're after. What it's doing is throwing all controls one after the last vertically which is what I guess you want? Just keep repeating image > text > image > text. The scrollbar will adjust accordingly.

Code:
<control type="group">
            
                <posx>470</posx>
                <posy>40</posy>
            
                <control type="label">
                    
                    <posx>0</posx>
                    <posy>-50</posy>
                    <width min="20" max="530">auto</width>
                    <height>100</height>
                    <label>Overview</label>
                    <font>Menu-Scroll</font>
                    <textcolor>Label_Dark</textcolor>
                    <aligny>top</aligny>
                    <wrapmultiline>true</wrapmultiline>
                    <scrollspeed>0</scrollspeed>
                    
                </control>
            
                <control type="grouplist">
                    
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>700</width>
                    <height>532</height>
                    <pagecontrol>80</pagecontrol>
                    <onright>50</onright>
                    <onleft>50</onleft>
                    <orientation>vertical</orientation>
                    <usecontrolcoords>true</usecontrolcoords>
                    <itemgap>10</itemgap>
                    
                    <control type="image">
                        
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>700</width>
                        <height>340</height>
                        <texture background="true" aligny="top">$INFO[Listitem.Property(Fanart_Image)]</texture>
                        <aspectratio>scale</aspectratio>
                        
                    </control>
                    
                    <control type="label">
                
                        <include>Common_InfoDialog_Header</include>
                        <posy>32</posy>
                        <label>Description</label>
                        
                    </control>
                  
                    <control type="label">
                        
                        <include>Common_InfoDialog_Label</include>
                        <height>300</height>
                        <label>$VAR[Info_Description]</label>
                        
                    </control>
                    
                </control>
                
                <!--Scrollbar-->
                <control type="scrollbar" id="80">
                
                    <posx>720</posx>
                    <posy>0</posy>
                    <width>5</width>
                    <height>530</height>
                    <texturesliderbackground>colors/color_white.png</texturesliderbackground>
                    <texturesliderbar>colors/color_grey.png</texturesliderbar>
                    <texturesliderbarfocus>colors/color_grey.png</texturesliderbarfocus>
                    <orientation>vertical</orientation>
                    <showonepage>false</showonepage>
                    <onleft>9001</onleft>
                    <onright>50</onright>
                    
                    <animation effect="fade" start="100" end="25" time="200" reversible="true" condition="!Control.HasFocus(80)">Conditional</animation>
                    <animation effect="fade" start="25" end="100" time="200" reversible="true" condition="Control.HasFocus(80)">Conditional</animation>
                    
                </control>            
                
            </control>

[Image: watched-fanart.jpg]
(This post was last modified: 2012-08-04 15:18 by Sranshaft.)
find quote