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
Help Requested
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="jmhecker" data-source="post: 541952" data-attributes="member: 86959"><p>As I have mentioned in a previous post (<a href="https://forum.team-mediaportal.com/mediaportal-plugins-47/new-plugin-mp-my-collection-73996/" target="_blank">https://forum.team-mediaportal.com/mediaportal-plugins-47/new-plugin-mp-my-collection-73996/</a>), I am working on a plugin that is basically a "Blank Canvas" for parts of your collection.</p><p></p><p>I am just about done with the configuration backend, and am doing some work on the frontend for within MediaPortal, but am running into some problems working with the controls that are available. </p><p></p><p>If anyone is able to offer any tips and tricks that they have learned about the different controls and best practice methods, it would be appreciated. (IE: catching key presses, common errors, etc)</p><p></p><p>--</p><p>Jason</p><p></p><p>EDIT:</p><p>I have ran into a 'dead end'. I am attempting to detect when the "Escape" key is pressed while in my plugin. </p><p></p><p>[CODE]</p><p> Public Overloads Overrides Sub OnAction(ByVal action As MediaPortal.GUI.Library.Action)</p><p> Select Case action.wID</p><p> Case MediaPortal.GUI.Library.Action.ActionType.ACTION_EXIT, MediaPortal.GUI.Library.Action.ActionType.ACTION_PARENT_DIR, MediaPortal.GUI.Library.Action.ActionType.ACTION_HOME, MediaPortal.GUI.Library.Action.ActionType.ACTION_KEY_PRESSED</p><p> MsgBox("escape") </p><p> End Select</p><p> MyBase.OnAction(action)</p><p> End Sub</p><p>[/CODE]</p><p></p><p>None of those options in the ActionType Enumeration seem to call when the Escape key is pressed. So, I tried putting in:</p><p></p><p>[CODE]</p><p> MsgBox(action.m_key.KeyCode)</p><p> MsgBox(action.m_key.KeyChar)</p><p>[/CODE]</p><p></p><p>directly before the Select Case statement, and those message boxes are never displayed. Is there something preventing me from hooking into the Escape key?</p></blockquote><p></p>
[QUOTE="jmhecker, post: 541952, member: 86959"] As I have mentioned in a previous post ([url]https://forum.team-mediaportal.com/mediaportal-plugins-47/new-plugin-mp-my-collection-73996/[/url]), I am working on a plugin that is basically a "Blank Canvas" for parts of your collection. I am just about done with the configuration backend, and am doing some work on the frontend for within MediaPortal, but am running into some problems working with the controls that are available. If anyone is able to offer any tips and tricks that they have learned about the different controls and best practice methods, it would be appreciated. (IE: catching key presses, common errors, etc) -- Jason EDIT: I have ran into a 'dead end'. I am attempting to detect when the "Escape" key is pressed while in my plugin. [CODE] Public Overloads Overrides Sub OnAction(ByVal action As MediaPortal.GUI.Library.Action) Select Case action.wID Case MediaPortal.GUI.Library.Action.ActionType.ACTION_EXIT, MediaPortal.GUI.Library.Action.ActionType.ACTION_PARENT_DIR, MediaPortal.GUI.Library.Action.ActionType.ACTION_HOME, MediaPortal.GUI.Library.Action.ActionType.ACTION_KEY_PRESSED MsgBox("escape") End Select MyBase.OnAction(action) End Sub [/CODE] None of those options in the ActionType Enumeration seem to call when the Escape key is pressed. So, I tried putting in: [CODE] MsgBox(action.m_key.KeyCode) MsgBox(action.m_key.KeyChar) [/CODE] directly before the Select Case statement, and those message boxes are never displayed. Is there something preventing me from hooking into the Escape key? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Help Requested
Contact us
RSS
Top
Bottom