home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
How do you remove the menu item for a process plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="patrick" data-source="post: 172559" data-attributes="member: 12502"><p>Hi,</p><p></p><p>Return false for the GetHome method</p><p></p><p>[code]</p><p>/// <summary> </p><p>/// If the plugin should have its own button on the main menu of MediaPortal then it</p><p>/// should return true to this method, otherwise if it should not be on home</p><p>/// it should return false </p><p>/// </summary> </p><p>/// <param name="strButtonText">text the button should have</param> </p><p>/// <param name="strButtonImage">image for the button, or empty for default</param></p><p>/// <param name="strButtonImageFocus">image for the button, or empty for default</param></p><p>/// <param name="strPictureImage">subpicture for the button or empty for none</param></p><p>/// <returns>true : plugin needs its own button on home </p><p>/// false : plugin does not need its own button on home</returns> </p><p>public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)</p><p> {</p><p> strButtonText = String.Empty;</p><p> strButtonImage = String.Empty;</p><p> strButtonImageFocus = String.Empty;</p><p> strPictureImage = String.Empty;</p><p> return false;</p><p> }</p><p>[/code]</p><p></p><p>HTH,</p><p>patrick</p></blockquote><p></p>
[QUOTE="patrick, post: 172559, member: 12502"] 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; } [/code] HTH, patrick [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
How do you remove the menu item for a process plugin
Contact us
RSS
Top
Bottom