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

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#21
2007-09-14, 03:58 AM
I setup three buttons and a buttonlist. The buttonlist has a returntomainmenu in it.
The three buttons start out with visible set to false for each.
The return works.
I then toggle then all visible.
The return works
I then toggle them all invisible.
The return no longer works, it just stays in the plugin menu.
Any ideas?
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
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#22
2007-09-14, 09:55 AM
Is there a means (or the possibility of you adding), access to the source URL the IMDB returned info used? I would like to scrape for some more info, namely the film 'poster' or image.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#23
2007-09-14, 02:54 PM
Sorry guys, I have been on a business trip all week and have not had time to address your questions...

Quote:Is there a way to make a wizuilist not be multiline? It automatically adds a second line when the text doesn't fit.
I know I can shorten the text to make sure it always fits, but I'd prefer it was truncated to a single line.
I think you can do this in the skin, but I think I can also do it programmatically based on some code that was developed for the TextBox. I'll take a look.

Quote:Probably something I am doing, but as I step through the controls it works correctly when I go to the left and it goes about halfway through if I go to the right and then it starts over. Any ideas?
Not sure I understand, are you talking about tabbing thru the controls? Are you saying the Back-tab (ie. when I go left) does not function properly?

Quote:I setup three buttons and a buttonlist. The buttonlist has a returntomainmenu in it.
The three buttons start out with visible set to false for each.
The return works.
I then toggle then all visible.
The return works
I then toggle them all invisible.
The return no longer works, it just stays in the plugin menu.
Any ideas?
I will attempt to recreate this and see what is going on.

Quote:Is there a means (or the possibility of you adding), access to the source URL the IMDB returned info used? I would like to scrape for some more info, namely the film 'poster' or image.
Sure, I think I can do that. In fact, I can make the URL another property in the object. But I will expose the Detail URL if I was able to navigate that far.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#24
2007-09-14, 07:03 PM
JavaWiz Wrote:Sorry guys, I have been on a business trip all week and have not had time to address your questions...


I think you can do this in the skin, but I think I can also do it programmatically based on some code that was developed for the TextBox. I'll take a look.

Not sure I understand, are you talking about tabbing thru the controls? Are you saying the Back-tab (ie. when I go left) does not function properly?


I will attempt to recreate this and see what is going on.

Sure, I think I can do that. In fact, I can make the URL another property in the object. But I will expose the Detail URL if I was able to navigate that far.

For the moving through the controls question, I've added a few controls to your demo program and removed a few of the ones you had but the logic is basically the same. Whenever you press a right or a left arrow it cycles through the controls. One direction hits all of the controls, the other does not.

For the button visible problem. This occurs when I set the button visibility to false in the callback. So basically I press the button, and in the callback I set the button visibility to false. At that point the return to main doesn't work. In realitiy I set the visibilty to false for three buttons but the only one that causes this behavior is the one that initiated the callback. If I set the button enable to false, that works fine, except you can still see the button.
Hope that makes sense.
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
#25
2007-09-14, 11:17 PM
pastro Wrote:For the moving through the controls question, I've added a few controls to your demo program and removed a few of the ones you had but the logic is basically the same. Whenever you press a right or a left arrow it cycles through the controls. One direction hits all of the controls, the other does not.
Ok, it looks like this occurs on the List box. The code needs to be modified as follows:

In the Controls_OnKeyDown Method
Code:
...
[SIZE=1][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=1] (ctlMgr.CurrentControl == lstMyList1)[/SIZE]
[SIZE=1]{[/SIZE]
[SIZE=1] handled = lstMyList1.OnKeyDown(e);[/SIZE]
[SIZE=1][COLOR=#0000ff] if[/COLOR][/SIZE][SIZE=1] (handled)[/SIZE]
[SIZE=1] {[/SIZE]
[SIZE=1][COLOR=#2b91af] WizUiList[/COLOR][/SIZE][SIZE=1].[/SIZE][SIZE=1][COLOR=#2b91af]WizListItem[/COLOR][/SIZE][SIZE=1] listItem = ([/SIZE][SIZE=1][COLOR=#2b91af]WizUiList[/COLOR][/SIZE][SIZE=1].[/SIZE][SIZE=1][COLOR=#2b91af]WizListItem[/COLOR][/SIZE][SIZE=1])lstMyList1.getCurrentItem();[/SIZE]
[SIZE=1] lblSimple.Text = [/SIZE][SIZE=1][COLOR=#a31515]"'"[/COLOR][/SIZE][SIZE=1] + listItem.properties[[/SIZE][SIZE=1][COLOR=#a31515]"@text"[/COLOR][/SIZE][SIZE=1]] + [/SIZE][SIZE=1][COLOR=#a31515]"' is "[/COLOR][/SIZE][SIZE=1] + listItem.properties    [[/SIZE][SIZE=1][COLOR=#a31515]"@tag[/COLOR][/SIZE][SIZE=1][COLOR=#a31515]"[/COLOR][/SIZE][SIZE=1]];[/SIZE]
[SIZE=1] }[/SIZE]
[SIZE=1]}[/SIZE]
[SIZE=1][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=1] (ctlMgr.CurrentControl == lstMyList2 && [B]!handled[/B])[/SIZE]
[SIZE=1]{[/SIZE]
[SIZE=1] handled = lstMyList2.OnKeyDown(e);[/SIZE]
...
Note the !handled in the if statement for lstMyList2.

Prior to adding that, OnKeyDown handled the event for lstMyList1 (which set focus to the 2nd list box), then dropped out of the 1st list if statement. The code then hit the if statement for lstMyList2 (which was set to the currentCtl ). Then the 2nd list processed the key event and tabbed to the next control. Since the key event was already processed for the 1st control, we should not have executed the code for the 2nd list.
pastro Wrote:For the button visible problem. This occurs when I set the button visibility to false in the callback. So basically I press the button, and in the callback I set the button visibility to false. At that point the return to main doesn't work. In realitiy I set the visibilty to false for three buttons but the only one that causes this behavior is the one that initiated the callback. If I set the button enable to false, that works fine, except you can still see the button.
Hope that makes sense.
Any chance you could send me some sample code on this? I cannot seem to make it fail on my machine.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#26
2007-09-15, 01:13 AM
McBainUK Wrote:Is there a means (or the possibility of you adding), access to the source URL the IMDB returned info used? I would like to scrape for some more info, namely the film 'poster' or image.
Newest version of the DLL (v1.0.9) exposes DetailURL and ThumbnailURL. I have not deployed this version yet, but feel free to use, it should be backward compatible with prior versions.

Modification History:
----------------------
09/??/07 : v1.0.9
* Added DetailURL to MovieInfo object used in HttpInfoGrabber. This contains the URL of the movie detail page if found.
* Added ThumbnailURL to MovieInfo object used in HttpInfoGrabber. This contains the URL of the movie poster if found.

09/09/07 : v1.0.8
* updated HttpInfoGrabber to better identify titles
* Added 2 new methods to HttpInfoGrabber, numberOfPotentialHits() and getPotentialTitleHits()
* Added WizThumbnail object to assist in retrieving movie thumbnail images
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#27
2007-09-15, 02:30 AM
JavaWiz Wrote:Ok, it looks like this occurs on the List box. The code needs to be modified as follows:

In the Controls_OnKeyDown Method
Code:
...
[SIZE=1][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=1] (ctlMgr.CurrentControl == lstMyList1)[/SIZE]
[SIZE=1]{[/SIZE]
[SIZE=1]handled = lstMyList1.OnKeyDown(e);[/SIZE]
[SIZE=1][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=1] (handled)[/SIZE]
[SIZE=1]{[/SIZE]
[SIZE=1][COLOR=#2b91af]WizUiList[/COLOR][/SIZE][SIZE=1].[/SIZE][SIZE=1][COLOR=#2b91af]WizListItem[/COLOR][/SIZE][SIZE=1] listItem = ([/SIZE][SIZE=1][COLOR=#2b91af]WizUiList[/COLOR][/SIZE][SIZE=1].[/SIZE][SIZE=1][COLOR=#2b91af]WizListItem[/COLOR][/SIZE][SIZE=1])lstMyList1.getCurrentItem();[/SIZE]
[SIZE=1]lblSimple.Text = [/SIZE][SIZE=1][COLOR=#a31515]"'"[/COLOR][/SIZE][SIZE=1] + listItem.properties[[/SIZE][SIZE=1][COLOR=#a31515]"@text"[/COLOR][/SIZE][SIZE=1]] + [/SIZE][SIZE=1][COLOR=#a31515]"' is "[/COLOR][/SIZE][SIZE=1] + listItem.properties    [[/SIZE][SIZE=1][COLOR=#a31515]"@tag[/COLOR][/SIZE][SIZE=1][COLOR=#a31515]"[/COLOR][/SIZE][SIZE=1]];[/SIZE]
[SIZE=1]}[/SIZE]
[SIZE=1]}[/SIZE]
[SIZE=1][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=1] (ctlMgr.CurrentControl == lstMyList2 && [B]!handled[/B])[/SIZE]
[SIZE=1]{[/SIZE]
[SIZE=1]handled = lstMyList2.OnKeyDown(e);[/SIZE]
...
Note the !handled in the if statement for lstMyList2.

Prior to adding that, OnKeyDown handled the event for lstMyList1 (which set focus to the 2nd list box), then dropped out of the 1st list if statement. The code then hit the if statement for lstMyList2 (which was set to the currentCtl ). Then the 2nd list processed the key event and tabbed to the next control. Since the key event was already processed for the 1st control, we should not have executed the code for the 2nd list.

Any chance you could send me some sample code on this? I cannot seem to make it fail on my machine.

Seems like I could just use a
if {
.
.
}
else if {
.
}

and so on and then it wouldn't have that problem.

I'll put some code together for the other problem and send it to you. Thanks
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
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#28
2007-09-16, 07:42 AM
JavaWiz Wrote:Newest version of the DLL (v1.0.9) exposes DetailURL and ThumbnailURL. I have not deployed this version yet, but feel free to use, it should be backward compatible with prior versions.

Modification History:
----------------------
09/??/07 : v1.0.9
* Added DetailURL to MovieInfo object used in HttpInfoGrabber. This contains the URL of the movie detail page if found.
* Added ThumbnailURL to MovieInfo object used in HttpInfoGrabber. This contains the URL of the movie poster if found.

09/09/07 : v1.0.8
* updated HttpInfoGrabber to better identify titles
* Added 2 new methods to HttpInfoGrabber, numberOfPotentialHits() and getPotentialTitleHits()
* Added WizThumbnail object to assist in retrieving movie thumbnail images
I will let you know how I get on.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#29
2007-09-17, 04:05 AM
Are (the equivalent of, I suppose) the three 'folder' options available for the list control? That is, NormalFolder, SelectedFolder, and SelectedInactiveFolder.

Or, I guess, some other way that I might have missed to indicate to the user that they are traversing the directory structure. Right now I'm just preceding the directory name with "SubFolder:" but it just isn't as pretty!

I can get used to it if it just isn't possible, but if I'm missing the obvious, I'd sure like to use it.

Thanks!
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#30
2007-09-17, 04:12 AM
Ommina Wrote:Are (the equivalent of, I suppose) the three 'folder' options available for the list control? That is, NormalFolder, SelectedFolder, and SelectedInactiveFolder.

Or, I guess, some other way that I might have missed to indicate to the user that they are traversing the directory structure. Right now I'm just preceding the directory name with "SubFolder:" but it just isn't as pretty!

I can get used to it if it just isn't possible, but if I'm missing the obvious, I'd sure like to use it.

Thanks!
The list control is simply a list. It has nothing to do with folders. The elements in the list can have skin definitions for normal, selected and selectedInactive. The list itself only has 1 background, and does not change whether the list has focus or not.

Hope this answers your question.
« Next Oldest | Next Newest »

Users browsing this thread: 4 Guest(s)

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


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