NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 28 29 30 31 32 … 93 Next »
GBPVRX2.Popups.PopupBase - exited, still triggering callbacks

 
  • 0 Vote(s) - 0 Average
GBPVRX2.Popups.PopupBase - exited, still triggering callbacks
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2008-09-29, 06:27 AM
Hi

Got a GBPVRX2.Popups.PopupBase object, that processes a "Close" button correctly, and then after dealing with the button in the with the UiSimpleList.CommandCallback.

I then Deactivate the popup, in the hope that I can use it again. But on the next render, or keypress the HandlePopupCallback interface method fires again.

I've found I can null the popup, but figured there might be another way that means I wouldn't have to re-create the popup.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2008-09-29, 03:46 PM
In the callback you need to call "setPopup(null)" if you want to close the popup.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2008-09-30, 07:05 AM
Hi did that, and it closed it.....but when i re-used the same popup object - it immediately fired off the call back again.

I guess I'm not supposed to do it like that. I've tried a progressPopup.Reinitialise and it didn't cancel the callback,
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#4
2008-09-30, 07:23 AM
And while I'm exiting plugins, I get this when I exit.

I've done an "esc" and the popup screen is returning a true from OnKeyDown.
Which then returns true from the IMenuTask OnKeyDown.

Then I see IMenuTask.needRendering fire, but I haven't got anything to return true from, the popup object is null at this point.

I normally take a second or so, a keypress or a mouse movement for the screen to refresh.

Any ideas on solving this??
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#5
2008-09-30, 10:10 PM
Bump for sub...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2008-09-30, 10:56 PM
Can you try calling "PluginHelperFactory.getPluginHelper().ForceRepaint();" after calling setPopup(null) to see if it gets rid of this screen corruption? Some of the built in screens have to resort to doing this to - I havnt looked into why in while, so cant remember the full details.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#7
2008-09-30, 11:50 PM
ok, something to try at least...though maybe ai had to keep returning needsrendering for a file...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Closing Deactivating popups with handlePopupCallback psycik 4 1,593 2008-12-09, 08:38 AM
Last Post: psycik
  GBPVRX2.Popups.PopupBase don't close on button press psycik 2 1,432 2008-11-03, 07:35 AM
Last Post: psycik
  GBPVRX2.Popups.PopupBase - GetBackgroundArgs() psycik 5 2,084 2008-10-30, 08:49 AM
Last Post: whurlston
  Custom popups? bgowland 2 1,760 2008-05-11, 12:26 AM
Last Post: bgowland
  Horizontal buttons in popups. whurlston 6 2,257 2008-03-30, 12:19 PM
Last Post: roy
  Triggering GBPVRRecordingService to reload the database. tmrt 3 1,573 2008-03-05, 06:36 PM
Last Post: sub
  Memory management - controls and popups JavaWiz 2 1,899 2008-01-06, 02:48 AM
Last Post: JavaWiz
  'Please wait...' type popups? bgowland 8 2,962 2007-10-26, 02:14 PM
Last Post: bgowland
  GBPVRX2.dll skate15e 3 1,884 2007-09-26, 08:25 AM
Last Post: skate15e

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

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

Linear Mode
Threaded Mode