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 »
WizTools - 1.x Plugin Development Toolkit

 
  • 0 Vote(s) - 0 Average
WizTools - 1.x Plugin Development Toolkit
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#41
2007-10-12, 02:55 AM
Updated zip in 1st post of this thread to version 1.0.12 with the following changes:

10/11/07 : v1.0.12
* Fixed Rendering required method for controls that are not visisble (always returns false).
* Added callback interface to WizUiButtonList
* Updates to HttpInfoGrabber
09/27/07 : v1.0.11
* Enhanced HttpInfoGrabber to provide potential show items and URLs. These are entries that show in the exact, partial, approximate and popular title sections.
* Added supporting methods parseTitleFromTitleUrlEntry(), parseUrlFromTitleUrlEntry(), getPotentialTitlesArrayList() for retrieving new data items in HttpInfoGrabber.
* Added exception handling on get Thumbnail image if not found.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#42
2007-10-12, 03:20 AM
pastro - thanks for the reply! But nope, not quite. As mentioned by JavaWiz below (well, above, I guess), the ability I was hoping for was being able to specify which listitem was at the top of the list, so if a user navigates off a page, then returns, they can be presented with the same values in the same positions.

JavaWiz - thanks very much! It wouldn't be the end of the world, or even the plugin, if I couldn't set a particular index to the top, but it's one of those 'would be nice' things. It works fine without it, but doesn't quite feel right.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#43
2007-10-12, 04:47 AM (This post was last modified: 2007-10-12, 05:51 AM by JavaWiz.)
Ommina Wrote:JavaWiz - thanks very much! It wouldn't be the end of the world, or even the plugin, if I couldn't set a particular index to the top, but it's one of those 'would be nice' things. It works fine without it, but doesn't quite feel right.
Try the attached DLL. I've added 2 methods. Let me know if this suits your needs...

publicbool setTopmostViewableIndex(int index)
and
[SIZE=1]publicbool setTopmostViewableIndex(int index, bool makeCurrentIndex)
[/SIZE]
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#44
2007-10-13, 07:34 PM
Yowza, thanks! Really, any time in the next month or so would have been just fine. I hope it didn't take you long to include...

I'm off to try it out now. Well, after I get another cup of coffee. Thank you again!
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#45
2007-10-13, 08:46 PM
So. Uhm. (Insert sheepish grin here.)

Can I request a get() to go along with that set? It occurs to me (admittedly, somewhat late) that it is going to be mighty difficult for me to set the topmost index at point B if I have no way of finding out what it is at point A.

Yeah, yeah, I should have thought that one through in the first place.

And no need to jump on this. Anytime is good. I've still plenty to do to keep me going for a while yet. Whenever is convenient and you're motivated to do it is yay.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#46
2007-10-13, 09:22 PM
I am using one wizuilist to display files in the filesystem and then a second to display a selected file(s). When I click on a file to either add or remove a file once in a while I get tossed back to the main menu. In the log I get the message shown below. Note that if I use the ok or enter key to select the file I never see this problem. Running on the debugger does not help as the error does not appear to be in my code. Not sure if it is in wizutilites but I thought I would at least check if anyone sees something like this.



007-10-13 16:08:37.874 VERBOSE [1] System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Image.get_Width()
at CAllocatorPresenter.SetRenderList(CAllocatorPresenter* , ArrayList renderList)
at NativeUtilities.MediaHelper.setDirect3DRenderList(ArrayList renderList)
at GBPVRX2.x0061b801bdf12d35.xdb012c437aec4a40(Boolean xd23bf32f3b17e3be)
at GBPVRX2.x0061b801bdf12d35.x135a03bc0f573b6c(Object xdf2e3583f942db7b, MouseEventArgs xc4f45905cb1fc7ba)
at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at GBPVRX2.x0061b801bdf12d35.WndProc(Message& m)
2007-10-13 16:08:37.874 VERBOSE [1] DisableScreenSaver()
2007-10-13 16:08:37.874 VERBOSE [1] ListBox2 renderingRequired.
2007-10-13 16:08:37.874 VERBOSE [1] currentIndex = 3 detailsViewVisibleIndex = 0
2007-10-13 16:08:37.884 VERBOSE [1] LIST: Using cached image
2007-10-13 16:08:37.884 VERBOSE [1] LIST: Using cached image
2007-10-13 16:08:37.884 VERBOSE [1] LIST: Using cached image
2007-10-13 16:08:37.884 VERBOSE [1] LIST: Using cached image
2007-10-13 16:08:37.884 VERBOSE [1] currentIndex = 0 detailsViewVisibleIndex = 0
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#47
2007-10-14, 03:32 AM
This error most likely means a GBPVRUiElement with null image object has been inserted into the render list. Its probably happening in wiztools.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#48
2007-10-14, 05:23 AM
You might try adding following code to your RenderList method:


Code:
public ArrayList GetRenderList()
{
    ArrayList renderList = new ArrayList();
    if (!initialized)
        return renderList;
    if (screenNameElement != null)
        renderList.Add(screenNameElement);
    ArrayList pluginControlList = ctlMgr.ControlList;
    foreach (AWizUiControl ctl in pluginControlList)
    {
[B]       if (ctl is WizUiList)[/B]
[B]       {[/B]
[B]           GBPVRUiElement[] elements = (GBPVRUiElement[]) ctl.GetRenderList().ToArray(typeof(GBPVRUiElement));[/B]
[B]           Logger.Verbose("RenderList for " + ctl.PlacementName + " has " + elements.Length + " elements");[/B]
[B]           for (int i = 0; i < elements.Length; i++)[/B]
[B]           {[/B]
[B]               Logger.Verbose(" item(" + i + ") Name: " + elements[i].name + " Width: " + elements[i].image.Width );[/B]
[B]           }[/B]
        }
        renderList.AddRange(ctl.GetRenderList());
    }
    if (this.activePopup != null)
        renderList.AddRange(((IUiTask)this.activePopup).GetRenderList());
    return renderList;
}

This should expose any null element (or image) in the render list returned from the WizUiList object.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#49
2007-10-14, 07:33 AM
I did something similar to expose the null item. It is a wizuiabel that has the image set to null. There isn't any reason that I can figure that the image would be nulled out sometimes. The area where this happens is where I am closing a popup and enabling or disabling buttons, and changing the args to the wizuilabel. The wizuilabel is an adjacent control to the buttons I am enabling and disabling.

It turned out I am always getting a null returned for the image when I go through the button enable disable portion of the code (normally it returns fine) but sometimes it would crash back to the top level and sometimes it would just log it and keep going.
I ended up patching it by going through the renderlist each time and pulling out a null if it existed and then I don't get any errors.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#50
2007-10-15, 04:12 AM
Ommina Wrote:So. Uhm. (Insert sheepish grin here.)

Can I request a get() to go along with that set? It occurs to me (admittedly, somewhat late) that it is going to be mighty difficult for me to set the topmost index at point B if I have no way of finding out what it is at point A.

Yeah, yeah, I should have thought that one through in the first place.

And no need to jump on this. Anytime is good. I've still plenty to do to keep me going for a while yet. Whenever is convenient and you're motivated to do it is yay.
Ok, try this one. I've removed the other two methods and replaced with new Property: TopmostViewableIndex. You can do the following

int top = list.TopmostViewableIndex;

or

list.TopmostViewableIndex = 5;

As long as value is > 0 and < list.Count
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 3 4 5 6 7 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,068 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,548 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,560 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,630 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,994 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,860 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,313 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,022 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,855 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 5,218 2012-08-12, 07:56 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode