Seitenhierarchie

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.32
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download


Question

How do I create my own custom GUI Dialog?

Answer

  1. Choose of existing dialog to modify it. https://github.com/MediaPortal/Media...ialogs/Dialogs
  2. Create your own dialog by overriding one of them
    Examples:
    https://code.google.com/p/mediaport....alogPreview.cs
    https://code.google.com/p/mediaport....kListDialog.cs
    https://code.google.com/p/moving-pic...nCodeDialog.cs
    https://code.google.com/p/moving-pic...neralRating.cs
    https://code.google.com/p/mptvseries...IUserRating.cs
    https://code.google.com/p/mptvseries.../GUIPinCode.cs
  3. Create skin files for your new dialog
    Take skin file of Dialog you overrided and modify it for your needs. Change Windowd ID, add new control etc.
    Skin files for standart skins (better start with supporting them) located here:
    https://github.com/MediaPortal/Media...tal.Base/skin/
  4. Now you can use custom dialog just as like as standart one

 

GUICheckListDialog dlg = (GUICheckListDialog)GUIWindowManager.GetWindow(GUICheckListDialog.ID);
            if (dlg == null)
                 return;
            dlg.Reset();
            dlg.SetHeading(...);
            dlg.Add(...);
             dlg.Add(...);
            }
            dlg.DoModal(GUIWindowManager.ActiveWindow);

   

 

This page has no comments.