NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 5 6 7 8 9 … 93 Next »
Noobie Here!

 
  • 0 Vote(s) - 0 Average
Noobie Here!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#81
2014-03-22, 06:39 PM
jrockow Wrote:This doesn't look the same as yours?
I don't know why that'd be. Maybe you're using the free version of Visual Studio and it doesn't have this. Another way, if yours has it, is in the Debug menu, you can use 'Attach To Process' to debug an already running copy of NextPVR.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#82
2014-03-22, 06:40 PM
jrockow Wrote:My problem is I don't know how to code the popup window to select the recording.
As I said, the same code works fine in the main module.
jrockow Wrote:I had an idea to put the select object call in my main module before calling the popup, and then just pass the filename value over to the popup skin, but I'm not having much luck declaring the item as public.
Sorry, I can't follow you. I'm not sure what you're trying to do, or what you might have done wrong.
jrockow
Offline

Senior Member

Posts: 716
Threads: 111
Joined: Nov 2005
#83
2014-03-22, 06:48 PM
I put this code in the main module for calling the popup.

Dim ONumber = listShowTimes.GetSelectedObject("@oid")
Dim recording As ScheduledRecording = ScheduledRecording.LoadByOID(ONumber)
foundrec = (recording.Filename)

Essentially I now know the filename before calling the popup.

I then tried to just play "foundrec" in the popup skin.

In thoery it looks like it may solve my problem, but I don't know how to pass the "foundrec" variable over to the popup skin.
Unless I declare it in the popup window I can't use it.
If I declare it in the popup skin, the filename value is gone.

I have it declared PUBLIC in the main module, but it still doesn't seem to work.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#84
2014-03-22, 07:01 PM
jrockow Wrote:Essentially I now know the filename before calling the popup.

I then tried to just play "foundrec" in the popup skin.

In thoery it looks like it may solve my problem, but I don't know how to pass the "foundrec" variable over to the popup skin.
Unless I declare it in the popup window I can't use it.
If I declare it in the popup skin, the filename value is gone.
It's pretty hard to guess exactly what you're doing. If the problem is just getting a variable from your main screen to the popup though, then there is plenty of ways you can do that. You could just add an extra parameter to the constructor, and pass it in when you create the popup. Alternatively, you could also pass it in the args hashtable.
jrockow
Offline

Senior Member

Posts: 716
Threads: 111
Joined: Nov 2005
#85
2014-03-22, 07:14 PM
I believe passing the variable to the popup is what I need to do.
Unfortunately the methods you describe are Greek to me.
I will continue to work on it and see what I can come up with.
Thanx again!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,100
Threads: 957
Joined: May 2006
#86
2014-03-22, 07:21 PM
The simplest way for me when I have too many variable is to treat the popup as any other class and create public variables that you access from

SomePopup popup = new SomePopup(new SkinHelper("Test4\\popup.xml"), "PopupBackground", new Hashtable(), this);
popup.publicVariable = xxx;
PluginHelperFactory.GetPluginHelper().ActivatePopup(popup);

Martin
jrockow
Offline

Senior Member

Posts: 716
Threads: 111
Joined: Nov 2005
#87
2014-03-22, 07:57 PM
Martin, thanx for jumping in to help.
This is my VB code.

Dim popup As New SomePopup(New SkinHelper("NewRec\popup.xml"), "PopupBackground", New Hashtable(), Me)
popup.publicVariable = foundrec
PluginHelperFactory.GetPluginHelper().ActivatePopup(popup)

The only change I made was to add the line in the middle that you suggested.
This gives me a new error:

'publicVariable' is not a member of 'NewRec.Test3.SomePopup'.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#88
2014-03-22, 08:05 PM
You'd need to declare that variable in your popup class.

Code:
Public publicVariable As String

Give it a real name though - not "publicVariable"
jrockow
Offline

Senior Member

Posts: 716
Threads: 111
Joined: Nov 2005
#89
2014-03-22, 08:13 PM
That looks like a winner!

You guys must really be getting bored with me by now Smile

Thanx to both of you again!
jrockow
Offline

Senior Member

Posts: 716
Threads: 111
Joined: Nov 2005
#90
2014-03-23, 05:54 PM
Things are really looking good, however, now I'm stuck on getting RESUME to work.
In posts #65 and #66 you gave me the code necessary for this function.
But once again I don't know know where to put it, and in what order.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


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

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

Linear Mode
Threaded Mode