MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2008-07-25, 16:08   #1 (permalink)
Portal Member
 
tangmonster's Avatar
 
Join Date: Feb 2007
Location: cape town
Age: 28
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default text Label differences between 0.2.3 and 1.0.0.0 rc2

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
__________________
MY personalised DIY home sound in the making:

linky

Next step is subwoofer amp and all the surround speakers
tangmonster is offline   Reply With Quote
Old 2008-07-25, 19:54   #2 (permalink)
Portal Member
 
moiristo's Avatar
 
Join Date: Nov 2006
Location: Enschede
Posts: 292
Thanks: 6
Thanked 21 Times in 12 Posts

Country:

My System

Send a message via ICQ to moiristo Send a message via MSN to moiristo
Default

I don't know the answer, but maybe the label can't handle linebreaks? Have you tried escaping those?
__________________
Greetz, moiristo

moiristo is offline   Reply With Quote
Old 2008-07-26, 11:39   #3 (permalink)
Portal Member
 
tangmonster's Avatar
 
Join Date: Feb 2007
Location: cape town
Age: 28
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

Thanks for the reply!

it seems like it is something like that , I will try and go through string and convert line breaks into newline or something before I try and display it and see if it works.

Is there anybody that can verify if there was a change?
__________________
MY personalised DIY home sound in the making:

linky

Next step is subwoofer amp and all the surround speakers
tangmonster is offline   Reply With Quote
Old 2008-07-28, 12:04   #4 (permalink)
Portal Member
 
tangmonster's Avatar
 
Join Date: Feb 2007
Location: cape town
Age: 28
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

Found my solution

I didn't know about :

textboxscrollup

this works great.
__________________
MY personalised DIY home sound in the making:

linky

Next step is subwoofer amp and all the surround speakers
tangmonster is offline   Reply With Quote
Reply

Bookmarks

Tags
differences, label, rc2, text

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
GUI Differences My Videos vs. My TV-Series hawihoney Improvement Suggestions 2 2008-01-27 13:28
Differences on share monitoring? hawihoney Listen Music 2 2007-03-12 14:24
MP 0.2.2 & 0.2.2SVN differences moiristo Plugins 5 2007-02-08 01:02
Differences in MCE remotes? Grayda General 2 2007-01-18 21:43
What are the differences between 0.2.0.0 and 0.1.3.0 ?? ToP Codecs, External Players 3 2006-04-24 15:55


All times are GMT +1. The time now is 05:29.


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
Advertisement System V2.6 By   Branden