NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 25 26 27 28 29 … 93 Next »
reading the skin.xml file attributes

 
  • 0 Vote(s) - 0 Average
reading the skin.xml file attributes
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#1
2009-02-03, 06:00 AM
Hi,

I am hoping there is an easy way to read in the row attribut which I use for both my listbox and the menubuttons to control the number of rows displayed, I use Wiz utilities so any magic thats available would be really good.

Example line from skin.xml illustrating the rows=

Code:
<Placement name="ButtonList" loc="5.12, 10.0" size="20.0,5.0" offset="5.0" rows="11"/>

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#2
2009-02-03, 06:03 AM
From WizButtonList...
Code:
[SIZE=2][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]XmlNode[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] node = skinHelper.getPlacementNode(placementName);
[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]try
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]{
numViewableRows = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].Parse(node.Attributes.GetNamedItem([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"rows"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]).InnerText, [/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]NumberFormatInfo[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].InvariantInfo);
}
[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]catch
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]{
numViewableRows = captions.Length;
}
[/SIZE]
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#3
2009-02-03, 09:23 AM
Well that was easy.. Cheers JW
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Skin help (correct location?) SFX Group 4 3,858 2018-01-24, 07:42 AM
Last Post: pBS
  skin question pBS 2 3,330 2016-06-18, 07:03 PM
Last Post: pBS
  How Does "Use S01E01 File naming format if possible" work puck64 7 5,298 2015-08-25, 10:21 AM
Last Post: puck64
  Skin - view further into the future, scale the guide Vitenka 5 3,249 2014-11-26, 07:28 PM
Last Post: Vitenka
  NEWA - using buffer file produced by /public/VLCService?Channel= bgowland 5 2,783 2014-01-02, 06:36 AM
Last Post: bgowland
  Is the input file for pvrx2.exe -import unique to NextPVR? spinnaker 1 1,765 2013-10-08, 02:25 AM
Last Post: sub
  Accessing music file metadata in C# bgowland 6 3,271 2013-01-26, 05:14 AM
Last Post: bgowland
  Skin element Details in NowNext Jaggy 2 1,778 2011-09-19, 11:50 PM
Last Post: Jaggy
  Skin Help with Line Drawing Northpole 2 1,890 2011-07-19, 05:14 PM
Last Post: Northpole
  Anyone interested in developing a Skin Plugin? Hairy 13 4,949 2011-07-10, 04:13 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode