home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
text Label differences between 0.2.3 and 1.0.0.0 rc2
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="tangmonster" data-source="post: 286898" data-attributes="member: 40621"><p>Hi</p><p></p><p>I am very new to the hole C# xml thing but i think i am kind of figuring things out to do what i want to do.</p><p></p><p>I want to "browse" through the cover images of my lp's and also have a info button to disply text about the album.</p><p>I have created a directory with a bunch of artist-album.jpg and artist-album.txt files.</p><p></p><p>So i am writing a plugin to scroll through these. The images are simple. I create a Image control with the texture called "#Album_Cover" and in c# I scroll through the list of files and </p><p></p><p>GUIPropertyManager.SetProperty("#Album_Cover", jpgfiles[a].FullName)</p><p></p><p>This works great.</p><p></p><p>Now for the text. I experimented on a pc using 0.2.3.0 , and i can load the text easily with another Control in xml</p><p> </p><p><label>#Album_text</label></p><p></p><p>And in code:</p><p></p><p>GUIPropertyManager.SetProperty("#Album_text", MyTxtFile.ReadToEnd());</p><p></p><p>this works like a charm.</p><p></p><p>But as SOON as i copy my dll file and xml files to 1.0.0.0 RC2 , NO text.</p><p></p><p>Images works fine , BUT text don't work?</p><p>Sometimes i get the first line of a text file but most text files show nothing.</p><p></p><p>Are there some rules that changed with 1.0.0.0 rc2 ?</p><p></p><p>something i have to take into account.</p><p></p><p>Thanks a lot for your help.</p><p></p><p>Please don't flame a n00b.</p><p></p><p>Tang</p></blockquote><p></p>
[QUOTE="tangmonster, post: 286898, member: 40621"] Hi I am very new to the hole C# xml thing but i think i am kind of figuring things out to do what i want to do. I want to "browse" through the cover images of my lp's and also have a info button to disply text about the album. I have created a directory with a bunch of artist-album.jpg and artist-album.txt files. So i am writing a plugin to scroll through these. The images are simple. I create a Image control with the texture called "#Album_Cover" and in c# I scroll through the list of files and GUIPropertyManager.SetProperty("#Album_Cover", jpgfiles[a].FullName) This works great. Now for the text. I experimented on a pc using 0.2.3.0 , and i can load the text easily with another Control in xml <label>#Album_text</label> And in code: GUIPropertyManager.SetProperty("#Album_text", MyTxtFile.ReadToEnd()); this works like a charm. But as SOON as i copy my dll file and xml files to 1.0.0.0 RC2 , NO text. Images works fine , BUT text don't work? Sometimes i get the first line of a text file but most text files show nothing. Are there some rules that changed with 1.0.0.0 rc2 ? something i have to take into account. Thanks a lot for your help. Please don't flame a n00b. Tang [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
text Label differences between 0.2.3 and 1.0.0.0 rc2
Contact us
RSS
Top
Bottom