NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 19 20 21 22 23 … 93 Next »
Updating images

 
  • 0 Vote(s) - 0 Average
Updating images
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#1
2010-07-30, 02:59 PM
OK... If I currently have a UiScreen displaying, I can display a title and image using (pseudo):
Code:
screenHT["@title"] = "My Title";
screenHT["@image"] = myImage;
screenUI.Args = screenHT;

Now, when I update the title/image on the screen, by button press or whatever, the title is getting updated, but the image is not. If I update for a third time, title gets updated and the image gets updated to the image I sent on the second update.

I'm just wondering if there is something I am not doing right for images. I've verified I am sending the updated image to the hashtable for the screen and updating it. I just can't seem to get the screen to update with that image.
Author of Weather (NPVR) & Weather2 (GBPVR)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,793
Threads: 769
Joined: Nov 2003
#2
2010-07-30, 04:41 PM
That snippet of code is correct. I'm pretty sure it's something you're doing wrong though. If any part of your static has been updated (title), then it definitiely redrawing the whole static, using the parameters you supplied - ie, it cant be getting an old image from somewhere else.
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#3
2010-07-30, 05:07 PM
My animation isn't working either... so I'm not sure what the problem is...
Author of Weather (NPVR) & Weather2 (GBPVR)
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#4
2010-07-30, 05:27 PM
sub,
Once I forced the title to update with my animation, I get the animation of the image as well.

What triggers "NeedsRendering" for an image change on the UiStatic element? Is there a possible problem there?
Author of Weather (NPVR) & Weather2 (GBPVR)
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#5
2010-07-30, 05:32 PM
actually, it's still not updating right... the image is still behind the title... grrrr
Author of Weather (NPVR) & Weather2 (GBPVR)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,793
Threads: 769
Joined: Nov 2003
#6
2010-07-30, 05:42 PM
I dont really have enough information to go on. You might need to send me your code to take a look at.
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#7
2010-07-30, 05:46 PM
sub Wrote:I dont really have enough information to go on. You might need to send me your code to take a look at.

That would be great if you wouldn't mind... do you want the entire solution?
Author of Weather (NPVR) & Weather2 (GBPVR)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,793
Threads: 769
Joined: Nov 2003
#8
2010-07-30, 05:46 PM
scb147 Wrote:What triggers "NeedsRendering" for an image change on the UiStatic element? Is there a possible problem there?
The application continually calls NeedsRendering() on the active plugin. You'd typically then call NeedsRendering() on any controls your plugin shows. ie, the application doesnt directly call NeedRendering() on your UiStatic - you need to do that yourself.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,793
Threads: 769
Joined: Nov 2003
#9
2010-07-30, 05:46 PM
scb147 Wrote:That would be great if you wouldn't mind... do you want the entire solution?
That would be easiest.
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#10
2010-07-30, 05:54 PM
I emailed it to you... don't judge my coding abilities (or lack thereof) Big Grin

EDIT: the email bounced back... I guess you have a new email address?
Author of Weather (NPVR) & Weather2 (GBPVR)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Images in lists using a lot of memory cncb 4 4,119 2015-11-12, 12:02 AM
Last Post: sub
  updating EPG reven 3 2,088 2012-11-30, 09:05 PM
Last Post: reven
  A list of changing images McBainUK 1 1,902 2011-06-21, 04:36 PM
Last Post: sub
  Displaying images ACTCMS 6 2,586 2009-12-29, 12:37 PM
Last Post: ACTCMS
  Retrieving Images from GetRenderList psycik 11 3,871 2008-08-10, 08:33 PM
Last Post: mvallevand
  Controlling fixedAspectRatio images in a skin ACTCMS 2 1,794 2008-03-29, 03:14 AM
Last Post: ACTCMS
  GBPVRUIElement - updating frequently psycik 6 2,368 2008-01-04, 10:16 AM
Last Post: psycik
  Using getnamedimage and images of specific sizes pastro 4 1,993 2007-09-26, 03:10 AM
Last Post: pastro
  Common Images Plugins Skins & Community Skin Project MixMan 98 22,472 2006-08-24, 01:51 PM
Last Post: MixMan
  @time and @date not updating Digital712 3 2,130 2006-08-23, 02:06 AM
Last Post: Fatman_do

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

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

Linear Mode
Threaded Mode