OnPageLoad() (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Hi

    Is it possible to have a process-plugin that can contain the code below, and if yes, which references should I have in my project?

    protected override void OnPageLoad()
    {
    base.OnPageLoad();
    }

    When debugging it says that
    Code:
    Error	1	'MediaPortal.Plugins.MediaStream.OnPageLoad()': no suitable method found to override

    I'm guessing thats because I'm missing a reference, but can't figure out which!

    With the code I wan't to modify a allready existing window...

    :D
     

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    43
    Texas
    Home Country
    United States of America United States of America
    I have never done a process plug-in so take this with a grain of salt, but I think you can't override OnPageLoad because a process plug-in is not a "page" or "window". i am not sure what class is your base class for a process plug-in but I can almost guarantee you it just doesn't include OnPageLoad(). If you want to know when a new window or page or whatever the terminology is is loaded, maybe take a peek at the OnMessage or OnAction methods. I am speculating but I would imagine there is some event in there for when a new window is opened. Hope that helps...
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    • Thread starter
    • Moderator
    • #3
    Thanks for the help, although I didn't solve the problem yet. The funny thing is that you before RC4 could access buttons, labels etc. in a process-plugin. Now, you can still access labels, but buttons are a no go. In RC3, I could easily set focus...
     

    Users who are viewing this thread

    Top Bottom