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
#231
2008-06-07, 03:02 AM
JavaWiz Wrote:What control is this happening in (WizUiList, WizUiLabel, ....)?

Good point, it's not in your dll. I'll keep looking.
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
#232
2008-06-07, 03:07 AM
pastro Wrote:Good point, it's not in your dll. I'll keep looking.
If you are creating your own GBPVRUiElement, there is a property forceRefresh that can be set to insure that it gets repainted on next render cycle.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#233
2008-06-07, 03:13 AM
JavaWiz Wrote:If you are creating your own GBPVRUiElement, there is a property forceRefresh that can be set to insure that it gets repainted on next render cycle.


Actually sorry about the confusion, its a WizUiLabel.
Can I force a refresh on this?
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
#234
2008-06-07, 03:36 AM (This post was last modified: 2008-06-07, 03:54 AM by JavaWiz.)
pastro Wrote:Actually sorry about the confusion, its a WizUiLabel.
Can I force a refresh on this?
If you change any parameter, it should force a refresh. I've attached a new version of the DLL that has a different algorithm for determining if something has changed in the control, see if this helps.

It also exposes a new method on the text box and label .forceRefresh()

EDIT: Wait, seems to be a bug in that version...
EDIT2: Ok, try now
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#235
2008-06-07, 04:10 AM
JavaWiz Wrote:If you change any parameter, it should force a refresh. I've attached a new version of the DLL that has a different algorithm for determining if something has changed in the control, see if this helps.

It also exposes a new method on the text box and label .forceRefresh()

EDIT: Wait, seems to be a bug in that version...
EDIT2: Ok, try now


No change. I'll try the forceRefresh
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
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#236
2008-06-07, 04:27 AM
pastro Wrote:No change. I'll try the forceRefresh


No change with the force refresh.
I am getting the getimage callback, it just doesn't want to display the new image
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
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#237
2008-06-07, 04:38 AM
pastro Wrote:No change with the force refresh.
I am getting the getimage callback, it just doesn't want to display the new image

Ok actually I'm not getting the getimage callback for some reason in this case. Even with the forcerefresh. Probably a code issue. I'll look into it.
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
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#238
2008-06-07, 04:57 AM (This post was last modified: 2008-06-07, 05:20 AM by pastro.)
I'm not really sure how to force a getimage callback. Here is a couple lines of code
lblProgramInfo.addArg("@CurrentPos", "Current Position: " + m_CurPos.ToString("F2"));
lblProgramInfo.addArg(
"@TrimEnd", "Selected OutTime: " + (Convert.ToSingle((string) item.getProperty("@OutTime")).ToString("F2")));
lblProgramInfo.addArg(
"@TrimStart", "Selected InTime: " + (Convert.ToSingle((string)item.getProperty("@InTime")).ToString("F2")));
targetProgram.listcopy = (
SortedList)skiplist.Clone();
targetProgram.duration = (
float)m_AVFileObject.Duration;
targetProgram.m_currpos = m_CurPos;
lblProgramInfo.addArg(
"@thumbnail1", targetProgram);
lblProgramInfo.forceRefresh();

In one case I am changing the CurPos and I get the thumbnail1 callback. It appears that when I call it with the same CurPos value I don't get the getimage1 callback.
Does that make sense?
EDIT:
If I use m_CurPos+=.1 before it's represpective addarg then I get the callback. If the m_CurPos doesn't change then no image callback.
Is there way to force the getimage callback to happen?

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

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#239
2008-06-07, 05:49 AM
Added the following code and then I always get the callback.


DateTime currentSystemTime = DateTime.Now;
lblProgramInfo.addArg(
"@fake",currentSystemTime.ToString());

In the past I would get the imagecallback whether the arguments were the same or not. It seems now I don't get the callback unless the args change.
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
#240
2008-06-07, 09:22 AM
pastro Wrote:Added the following code and then I always get the callback.


DateTime currentSystemTime = DateTime.Now;
lblProgramInfo.addArg("@fake",currentSystemTime.ToString());

In the past I would get the imagecallback whether the arguments were the same or not. It seems now I don't get the callback unless the args change.
I'll try to write a snippet that fails in order to determine if it's WizTools that is failing, or something new in 1.2.13.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 22 23 24 25 26 … 31 Next »
Jump to page 


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