GUIDialogOK Missing? (1 Viewer)

GF__74

Portal Member
June 8, 2008
16
1
Akl, NZ
Home Country
New Zealand New Zealand
I have been going through the Plugin creation tutorial here. I am using VS2005 SP1 on a Vista (x86) machine, running MPv1

All was going well until i got to this bit of code.
Code:
private void OnButtonOne()
{
  GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow(
    (int)GUIWindow.Window.WINDOW_DIALOG_OK);
  dlg.SetHeading("Button has been pressed");
  dlg.SetLine(1, "You pressed button 1");
  dlg.SetLine(2, String.Empty);
  dlg.SetLine(3, String.Empty);
  dlg.DoModal(GUIWindowManager.ActiveWindow);
}

I get the compile error
The type or namespace name 'GUIDialogOK' could not be found (are you missing a using directive or an assembly reference?)

I am using the following as per the guide.

Code:
using System;
using System.Windows.Forms;
using MediaPortal.GUI.Library;

Now, i can only assume that proceedures in Core.Dll have changed since this guide was last updated, but i may be wrong.

Any ideas??

Thanks

G
 

GF__74

Portal Member
June 8, 2008
16
1
Akl, NZ
Home Country
New Zealand New Zealand
Upon further investigation, it appears that they have moved these controls into a different dll (Dialogs.dll), but this file is not included within the precompiled release and i am having create problems compiling the differing dll from the source code.

Anyone know what i am supposed to do here.

Once i have sorted this i might have a go at editting that tutorial.

Thanks,

G
 

rekenaar

Retired Team Member
  • Premium Supporter
  • December 17, 2006
    4,421
    805
    Home Country
    South Africa South Africa
    Hi there :)

    Dialogs.dll should be in your plugin\windows directory.
     

    GF__74

    Portal Member
    June 8, 2008
    16
    1
    Akl, NZ
    Home Country
    New Zealand New Zealand
    I am sure i did a search for this, but i guess not.

    I think i might update the documentation for the tutorial to reflect this.

    :D

    G
     

    rekenaar

    Retired Team Member
  • Premium Supporter
  • December 17, 2006
    4,421
    805
    Home Country
    South Africa South Africa
    Would be great if you can write down a few pointers/steps for the whole process.

    thanks
     

    Users who are viewing this thread

    Top Bottom