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
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#171
2008-01-08, 11:57 AM
Just so other developers don't fall into the same trap to see the solution for the UIStatic issue I was having check out this thread, http://forums.nextpvr.com/showthread.php?t=32494

Thanks go to all that assisted on this long road particularly McBainUK for the solution.

THANKS.
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
#172
2008-01-08, 05:00 PM
idkpmiller Wrote:I am just thinking ahead how are people handling the installation for using the new Wiz DLLs (three of them) on to a users system that only has the older single Wiz DLL?

I am assuming I should be copying the wiz DLL into the plugins/common directory what others should be copied there?

I am also making a plugin/<Plugin name> directory I am assuming that is the current best practise.

Appreciate hearing what others are doing.

Cheers
I'm thinking there may be two ways to deal with this:
  • If the developer is using an installer, they could bundler their version of the DLLs with their install. The installer should be smart enough NOT to overlay with an old version of the DLL.
or
  • I could make an installer for the WizDLLs and post the most current versions on the Wiki (can be found here as a zip now). The pre-reqs for the plugin could point to the Wiki location for the most current versions.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#173
2008-01-11, 12:24 AM
Where am I supposed to action keys that are mapped in keyhelper.

Example I have GameZone_Kill mapped normally to the decimal key on the num pad but which OnKeyDown should handle it?

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
#174
2008-01-11, 03:12 AM
I seem to be having a problem with wrapping the selected list item, I am using the code below for the "UP" key.

Code:
selectedFileInList -= 1
                            '' If we have gone past the beginning, wrap to the end
                            If selectedFileInList <= 0 Then
                                selectedFileInList = (fileList.Count)
                                lstMyList1.setCurrentIndex(selectedFileInList)
                                lstMyList1.MoreRenderingRequired()
                                
                            End If
                            NoOFPagesFilesLabel.Clear()
                            NoOFPagesFilesLabel.Text = selectedFileInList

As you can see I have temporarily hijacked the NoOFPagesFilesLabel to display a realtime fileList index.

What happens is if I am the top of the list (=0) and I press up then the NoOFPagesFilesLabel shows that it has wrapped but the selected item doesnt move stays at the 0 position.

I also do a similar thing with DOWN key this does a slightly different issue whereby it gets to the last item and the next key press it stays at the last item the next key press moves the selected item to the second item in the list (=1) it misses out the 0 item completely.

Any ideas, it would seem I am fighting some wrap round code in the WiZUI helper.

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
#175
2008-01-11, 06:43 AM
This is how i would handle wrap-around lists

The list control is called lstMyList1, in the Controls_OnKeyDown method (or OnKey method) there would be something like:

Code:
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] (ctlMgr.CurrentControl == lstMyList1 && !handled)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]   int[/COLOR][/SIZE][SIZE=2] curIdx = lstMyList1.getCurrentItemIndex();[/SIZE]
[SIZE=2]   handled = lstMyList1.OnKeyDown(e);[/SIZE]
[SIZE=2][COLOR=#0000ff]   if[/COLOR][/SIZE][SIZE=2] (handled)[/SIZE]
[SIZE=2]   {[/SIZE]
[SIZE=2]       // If the list position did not change[/SIZE]
[SIZE=2][COLOR=#0000ff]       if[/COLOR][/SIZE][SIZE=2] (curIdx == lstMyList1.getCurrentItemIndex())[/SIZE]
[SIZE=2]           // If we are on the 1st element, and the UP key was pressed[/SIZE]
[SIZE=2][COLOR=#0000ff]           if[/COLOR][/SIZE][SIZE=2] (curIdx == 0 && e.KeyCode == [/SIZE][SIZE=2][COLOR=#2b91af]Keys[/COLOR][/SIZE][SIZE=2].Up)[/SIZE]
[SIZE=2]               lstMyList1.setCurrentIndex(lstMyList1.Count-1);[/SIZE]
[SIZE=2]           // If we are on the last element, and the DOWN key was pressed[/SIZE]
[SIZE=2][COLOR=#0000ff]           else[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] (curIdx == lstMyList1.Count-1 && e.KeyCode == [/SIZE][SIZE=2][COLOR=#2b91af]Keys[/COLOR][/SIZE][SIZE=2].Down)[/SIZE]
[SIZE=2]               lstMyList1.setCurrentIndex(0);[/SIZE]
[SIZE=2]   }[/SIZE]
[SIZE=2]}[/SIZE]

The lstMyList1.MoreRenderingRequired() should not be called from your code, it is a read-only method indicating if the list needs to be re-rerendered, by changing the selected item, that would cause the method to return true.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#176
2008-01-11, 06:59 AM
Now that I think about it, I will add this capability to the List control. I will implement as a property you can set - AutoWrap.

So, when creating the control you can simply:

lstMyList1.AutoWrap = true;
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#177
2008-01-11, 12:35 PM
JavaWiz Wrote:Now that I think about it, I will add this capability to the List control. I will implement as a property you can set - AutoWrap.

So, when creating the control you can simply:

lstMyList1.AutoWrap = true;

Wicked!

I will await the new version and move onto my next task in the meantime 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
#178
2008-01-25, 03:17 AM
idkpmiller Wrote:Wicked!

I will await the new version and move onto my next task in the meantime Big Grin

The AutoWrap feature has been implemented in version 1.0.15.3 found here: http://gbpvr.com/pmwiki/pmwiki.php/Utility/WizUtilities
skate15e
Offline

Member

Posts: 100
Threads: 16
Joined: Oct 2006
#179
2008-03-01, 02:20 PM
My program is working great using your tools, THANKS! I noticed something in the logs I am wondering about. There are significant entires about a list I am working with (see attached log). Is this normal? Thanks in advance for you help.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#180
2008-03-02, 03:26 AM
skate15e Wrote:My program is working great using your tools, THANKS! I noticed something in the logs I am wondering about. There are significant entires about a list I am working with (see attached log). Is this normal? Thanks in advance for you help.
Yes, you can ignore those. There were for debugging and will be removed at some point.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (31): « Previous 1 … 16 17 18 19 20 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,106 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,578 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,615 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,655 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,020 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,896 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,341 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