As I have mentioned in a previous post (https://forum.team-mediaportal.com/mediaportal-plugins-47/new-plugin-mp-my-collection-73996/), 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.
None of those options in the ActionType Enumeration seem to call when the Escape key is pressed. So, I tried putting in:
directly before the Select Case statement, and those message boxes are never displayed. Is there something preventing me from hooking into the Escape key?
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
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)
directly before the Select Case statement, and those message boxes are never displayed. Is there something preventing me from hooking into the Escape key?