NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 20 21 22 23 24 … 93 Next »
Problem using UIStatic

 
  • 0 Vote(s) - 0 Average
Problem using UIStatic
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#11
2010-02-11, 05:50 PM
You are addig the uistatic to renderlist but then returning the base.GetRenderList(). It should be:

Code:
public override ArrayList GetRenderList()
        {
            renderList = new ArrayList();
            renderList.Add(base.GetRenderList());
            renderList.Add(statusInfoText.GetRenderList());
            logMessage("GetRenderList()", "called");
            return renderList;
        }
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#12
2010-02-11, 06:16 PM
Are, right you are. That'll definitely be it.
philcooling
Offline

Junior Member

Posts: 15
Threads: 5
Joined: Nov 2009
#13
2010-02-12, 11:07 AM
That was it! Thanks for your help guys. I have been piecing together sample code and snippets from the forums and wiki and trying to feel my way!

BTW. Calling renderList.Add resulted in a cast error but using renderlist.AddRange worked. Here's my revised code if it helps people in the future.

Code:
public override ArrayList GetRenderList()
        {
            renderList = new ArrayList();
            renderList.AddRange(base.GetRenderList());
            renderList.AddRange(statusInfoText.GetRenderList());
            logMessage("GetRenderList()", "called");
            return renderList;
        }
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#14
2010-02-12, 06:34 PM
Ah yeah, my mistake. GetRenderList returns an ArrayList so you would need AddRange.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  UiStatic vs UiElement? imilne 8 3,520 2012-12-24, 02:31 PM
Last Post: imilne
  Problem with preview image for Pending Recordings Northpole 2 2,053 2012-08-14, 02:56 AM
Last Post: Northpole
  ActivatePopup: SSPlus problem ACTCMS 10 4,904 2012-07-18, 09:43 PM
Last Post: ACTCMS
  Weird Code problem - serialisation (I'll spell it the proper way!!"0 psycik 22 6,384 2011-11-25, 03:16 AM
Last Post: whurlston
  Resolving required plugin assemblies problem McBainUK 37 12,361 2011-10-26, 06:12 PM
Last Post: psycik
  Drawing UiStatic mvallevand 4 2,316 2009-09-02, 10:06 PM
Last Post: mvallevand
  IVideoPlugin Problem SummerTimeBlues 9 4,025 2009-07-31, 04:02 AM
Last Post: sgilani
  Vista problem loading MovieWizManager.exe? JavaWiz 5 2,745 2008-06-05, 06:23 AM
Last Post: whurlston
  Missing assembly problem... bgowland 16 4,674 2008-01-10, 06:43 PM
Last Post: bgowland
  UIStatic update idkpmiller 3 1,976 2008-01-10, 02:35 AM
Last Post: idkpmiller

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

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

Linear Mode
Threaded Mode