How do you remove the menu item for a process plugin (1 Viewer)

patrick

Portal Pro
April 20, 2005
608
45
Southeast
Home Country
United States of America United States of America
Hi,

Return false for the GetHome method

Code:
/// <summary> 
/// If the plugin should have its own button on the main menu of MediaPortal then it
/// should return true to this method, otherwise if it should not be on home
/// it should return false 
/// </summary> 
/// <param name="strButtonText">text the button should have</param> 
/// <param name="strButtonImage">image for the button, or empty for default</param>
/// <param name="strButtonImageFocus">image for the button, or empty for default</param>
/// <param name="strPictureImage">subpicture for the button or empty for none</param>
/// <returns>true  : plugin needs its own button on home 
///          false : plugin does not need its own button on home</returns> 
public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
        {
            strButtonText       = String.Empty;
            strButtonImage      = String.Empty;
            strButtonImageFocus = String.Empty;
            strPictureImage     = String.Empty;
            return false;
        }

HTH,
patrick
 

mfalk

Portal Pro
July 10, 2006
122
4
Home Country
Denmark Denmark
Thanx

gemx: It was freely translated from Danish, but it is the manu in mediaportal where plugins by default goes to.

Patric: That seems to be the solution, thanx :)

br
Michael
 

Users who are viewing this thread

Top Bottom