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
#91
2007-12-29, 01:06 AM
idkpmiller Wrote:1. should I be using the dll from the first post in this thread or the latest one?
Best to use the lastest version. Can be found at: http://gbpvr.com/pmwiki/pmwiki.php/Utility/WizUtilities (WizDLLs.zip)
Quote:2. The clear selection list button doesnt seem to do anything in the demo is that something you are aware of?
It seems to work for me ok. The trick is to make multiple selections in the 2nd list (by clicking several different items). Pressing the button, clears the selected items in the list.
Quote:3. sharpdev gives a single warning:
Warning CS0414: The private field 'WizPlugin.ExamplePopup.mNeedsRendering' is assigned but its value is never used
That very well may be, the sample popup is just that an example that shows how to construct a popup, this sample really does not do anything, the variable could be commented out.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#92
2007-12-29, 02:56 AM
Hi JavaWiz,

I seem to have hit a known issue with your helper that stops me from using it, I go round in circles :confused:

The issue is when I try to inherit your helper it says I need to create a Sub New() which I do. Then I have the error which says

First statement of this 'Sub New' must be a call to 'MyBase.New' or 'MyClass.New' because base class 'WizUtilities.WizUiHelper.WizUiList' of 'GameZone2008.WizPlugin.WizUiHelperPlugin' does not have an accessible 'Sub New' that can be called with no arguments.

If I do a google for the error I get this link that shows I go round in circles...

http://support.microsoft.com/kb/833898

Any way you can help here?

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#93
2007-12-29, 04:00 AM
idkpmiller Wrote:Hi JavaWiz,

I seem to have hit a known issue with your helper that stops me from using it, I go round in circles :confused:

The issue is when I try to inherit your helper it says I need to create a Sub New() which I do. Then I have the error which says

First statement of this 'Sub New' must be a call to 'MyBase.New' or 'MyClass.New' because base class 'WizUtilities.WizUiHelper.WizUiList' of 'GameZone2008.WizPlugin.WizUiHelperPlugin' does not have an accessible 'Sub New' that can be called with no arguments.

Any way you can help here?

Cheers
Can you send me a sample of the code? I'll try to mod the DLL so it can be used by VB. I'll download the MS Visual Studio VB Express and see what I can do.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#94
2007-12-29, 10:06 AM
Thanks for the offer Jacawiz; However

After lots of tinkering I have got it to work, YAY!!! Big Grin

It has to have been the worst translation from c# to vb.net I have ever seen sharp Develop ever do Sad

Only thing left to do is sort out why the ExamplePopup isnt working then I can start playing...

Still have over a week of hols left so hopefully enough time to get GameZone v2 out Big Grin

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#95
2007-12-29, 07:12 PM
Good luck. If you come across any gotcha's with VB, maybe you can post here and I will put in my notes along with the DLLs help files. Also, if you have the example plugin, or something similar, I'd be glad to include it in the distro for others to learn from.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#96
2007-12-29, 11:46 PM
I will change the names to match your sample then upload the VB sample there are alot of gotchas when converting the c#.

Ok back to my issues, I have the full sample plugin working and now I am trying to work with it to migrate GameZone.

First problem is the same as I said in a separate thread, the buttons can only be added using a string which is not very flexible for dynamically created buttons.

example code:

Dim captions As String() = {"Connect String", "Main Menu"}
cmdButtonList = New WizUiButtonList(skinHelper, "ButtonList", captions)
ctlMgr.AddControl(cmdButtonList)

now say a GameZone user has enabled emulators 1, 5, 8, 11 and made up his own say custom1.
He therefore only wants to see those buttons for the emulators he currently has and not for all the others, see the problem?

I used to use the GBPVRUIelements by McBain which I could use the code below to add buttons.

If ePSXeENA = True Then
menuButtons.Add("ePSXe")
End If
If MameENA = True Then
menuButtons.Add("Mame")
End If

This was possible as the buttonlist was an arraylist.

Any ideas how this type of thing can be acomplished?

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#97
2007-12-30, 02:01 AM
Ok my solution is to use a string not an arraylist and do the following:


Dim sourceString As String = "Connect String,"
sourceString = sourceString & "Install Dir,"
sourceString = sourceString & "Plugin Dir,"
sourceString = sourceString & "Hide List1,"
sourceString = sourceString & "Main Menu"
Dim splitstring() As String = sourceString.Split(",")

captions = splitstring

cmdButtonList = New WizUiButtonList(skinHelper, "ButtonList", captions)
ctlMgr.AddControl(cmdButtonList)



This works fine Big Grin
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#98
2007-12-30, 02:43 AM
idkpmiller Wrote:Dim sourceString As String = "Connect String,"
sourceString = sourceString & "Install Dir,"
sourceString = sourceString & "Plugin Dir,"
sourceString = sourceString & "Hide List1,"
sourceString = sourceString & "Main Menu"
Dim splitstring() As String = sourceString.Split(",")

captions = splitstring

cmdButtonList = New WizUiButtonList(skinHelper, "ButtonList", captions)
ctlMgr.AddControl(cmdButtonList)
Or, at least in C# you can
ArrayList captionArray = new ArrayList();
captionArray.Add("Install Dir");
captionArray.Add("Plugin Dir");
...
string[] captions = (string[]) captionArray.ToArray(typeof(string));

You may also be able to do something similar in VB.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#99
2007-12-30, 08:23 AM
OMG that works great! I tried looking everywhere for that routine, cheers for that. Big Grin
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#100
2008-01-01, 09:05 AM
First off the andatory, Happy New Year!
Big Grin

JavaWiz if you have time could you post a routine to handle files in your list I am trying to add two properties @text which I use to store the filename without the path and extention (shortname) and @tag which I am using to store the longname this includes the pathand extention.

I would like to display just the shortname but upon selection etrive the shortname and the longname selected.

I am having issues getting this to workas I want it, do you have any example snippets of code that would show me how the uilist works better with multiple properties

Thanks
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 8 9 10 11 12 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,104 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,576 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,614 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,653 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,018 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,894 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,340 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,035 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,876 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 5,273 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