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: 544278" data-attributes="member: 86959"><p>The facade view does handle part of the up/down etc on its own...such as highlighting the item that is currently 'active'. The reason I am trying to figure out when something changes (the active/highlighted index) is so that I can change the text that is in the textbox that is on the screen (show description). </p><p></p><p>Typing this up, it just made me wonder if the FacadeView has any methods like "OnSelectedIndexChange"...I cant see any in the wiki, but that does not mean one don't exist.</p><p></p><p>I have tried playing around with where the location of the base class should at when called (before or after events), and nothing seems to do the trick. With that in mind, if I move it to the end of that case statement, so it is:</p><p>[code]</p><p>Case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_DOWN, _</p><p> MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_UP, _</p><p> MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_LEFT, _</p><p> MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_RIGHT, _</p><p> MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_MOVE</p><p> If catFacade.SelectedListItem.ItemId > 0 Then</p><p> If catFacade.SelectedListItem.IsFolder = True Then</p><p> If DirectCast(catFacade.SelectedListItem, GUIItemListing).IsBackDots = True Then</p><p> ScrollUpDesc.Label = "Up a level"</p><p> ScrollUpDesc.Label = catFacade.SelectedListItem.Label</p><p> End If</p><p> Else</p><p> ScrollUpDesc.Label = DirectCast(catFacade.SelectedListItem, GUIItemListing).item_desc</p><p> End If</p><p> End If</p><p> MyBase.OnAction(action)</p><p>[/code]</p><p>Then moving the mouse over the facade has no effect. The facade no longer even seems to detect the mouse is over it to highlight whatever it is hovering over. </p><p></p><p>Looking at other code, I see a lot of thigns that are using the facade view, but not in the same style that I am trying to. I do not think that my way is 'not possible', I just havent figured out the way to make it possible, heh.</p><p></p><p>The funny part about that is if I remove the last action type in the case (MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_MOVE), the clicking works as does everything else...but, I am not getting the trigger on ACTION_MOUSE_MOVE that I want.</p><p></p><p>Well, I think I figured it out...it now navigates through the facade in the fashion that I want it to, AND it correctly responds to when the mouse hovers over a new item in that facade. </p><p></p><p>The completed code is as follows:</p><p></p><p>[CODE] 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_MOVE_DOWN, MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_UP, MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_LEFT, MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_RIGHT ', MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_MOVE</p><p> MyBase.OnAction(action)</p><p> If catFacade.SelectedListItem.ItemId > 0 Then</p><p> If catFacade.SelectedListItem.IsFolder = True Then</p><p> If DirectCast(catFacade.SelectedListItem, GUIItemListing).IsBackDots = True Then</p><p> ScrollUpDesc.Label = "Up a level"</p><p> ScrollUpDesc.Label = catFacade.SelectedListItem.Label</p><p> End If</p><p> Else</p><p> ScrollUpDesc.Label = DirectCast(catFacade.SelectedListItem, GUIItemListing).item_desc</p><p> End If</p><p> End If</p><p> </p><p> Case MediaPortal.GUI.Library.Action.ActionType.ACTION_PREVIOUS_MENU</p><p> Dim db As New DataBase</p><p> GetCategories(db.GetCategoryInfo(prev_page).category_parent_category_id)</p><p> GetItems(db.GetCategoryInfo(prev_page).category_parent_category_id)</p><p> prev_page = db.GetCategoryInfo(prev_page).category_parent_category_id</p><p> Case Else</p><p> MyBase.OnAction(action)</p><p> End Select</p><p> End Sub</p><p> Public Overloads Overrides Function OnMessage(ByVal message As GUIMessage) As Boolean</p><p> If message.Message = GUIMessage.MessageType.GUI_MSG_ITEM_FOCUS_CHANGED Then</p><p> If catFacade.SelectedListItem.ItemId > 0 Then</p><p> If catFacade.SelectedListItem.IsFolder = True Then</p><p> If DirectCast(catFacade.SelectedListItem, GUIItemListing).IsBackDots = True Then</p><p> ScrollUpDesc.Label = "Up a level"</p><p> ScrollUpDesc.Label = catFacade.SelectedListItem.Label</p><p> End If</p><p> Else</p><p> ScrollUpDesc.Label = DirectCast(catFacade.SelectedListItem, GUIItemListing).item_desc</p><p> End If</p><p> End If</p><p> End If</p><p> If message.Message = GUIMessage.MessageType.GUI_MSG_CLICKED Then</p><p> facadeClicked()</p><p> End If</p><p> Return MyBase.OnMessage(message)</p><p> End Function[/CODE]</p><p></p><p>I thank you so much for your help...hopefully I can begin to start coding the portions where the media will be shown/played/etc now.</p></blockquote><p></p>
[QUOTE="jmhecker, post: 544278, member: 86959"] The facade view does handle part of the up/down etc on its own...such as highlighting the item that is currently 'active'. The reason I am trying to figure out when something changes (the active/highlighted index) is so that I can change the text that is in the textbox that is on the screen (show description). Typing this up, it just made me wonder if the FacadeView has any methods like "OnSelectedIndexChange"...I cant see any in the wiki, but that does not mean one don't exist. I have tried playing around with where the location of the base class should at when called (before or after events), and nothing seems to do the trick. With that in mind, if I move it to the end of that case statement, so it is: [code] Case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_DOWN, _ MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_UP, _ MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_LEFT, _ MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_RIGHT, _ MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_MOVE If catFacade.SelectedListItem.ItemId > 0 Then If catFacade.SelectedListItem.IsFolder = True Then If DirectCast(catFacade.SelectedListItem, GUIItemListing).IsBackDots = True Then ScrollUpDesc.Label = "Up a level" ScrollUpDesc.Label = catFacade.SelectedListItem.Label End If Else ScrollUpDesc.Label = DirectCast(catFacade.SelectedListItem, GUIItemListing).item_desc End If End If MyBase.OnAction(action) [/code] Then moving the mouse over the facade has no effect. The facade no longer even seems to detect the mouse is over it to highlight whatever it is hovering over. Looking at other code, I see a lot of thigns that are using the facade view, but not in the same style that I am trying to. I do not think that my way is 'not possible', I just havent figured out the way to make it possible, heh. The funny part about that is if I remove the last action type in the case (MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_MOVE), the clicking works as does everything else...but, I am not getting the trigger on ACTION_MOUSE_MOVE that I want. Well, I think I figured it out...it now navigates through the facade in the fashion that I want it to, AND it correctly responds to when the mouse hovers over a new item in that facade. The completed code is as follows: [CODE] Public Overloads Overrides Sub OnAction(ByVal action As MediaPortal.GUI.Library.Action) Select Case action.wID Case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_DOWN, MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_UP, MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_LEFT, MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_RIGHT ', MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_MOVE MyBase.OnAction(action) If catFacade.SelectedListItem.ItemId > 0 Then If catFacade.SelectedListItem.IsFolder = True Then If DirectCast(catFacade.SelectedListItem, GUIItemListing).IsBackDots = True Then ScrollUpDesc.Label = "Up a level" ScrollUpDesc.Label = catFacade.SelectedListItem.Label End If Else ScrollUpDesc.Label = DirectCast(catFacade.SelectedListItem, GUIItemListing).item_desc End If End If Case MediaPortal.GUI.Library.Action.ActionType.ACTION_PREVIOUS_MENU Dim db As New DataBase GetCategories(db.GetCategoryInfo(prev_page).category_parent_category_id) GetItems(db.GetCategoryInfo(prev_page).category_parent_category_id) prev_page = db.GetCategoryInfo(prev_page).category_parent_category_id Case Else MyBase.OnAction(action) End Select End Sub Public Overloads Overrides Function OnMessage(ByVal message As GUIMessage) As Boolean If message.Message = GUIMessage.MessageType.GUI_MSG_ITEM_FOCUS_CHANGED Then If catFacade.SelectedListItem.ItemId > 0 Then If catFacade.SelectedListItem.IsFolder = True Then If DirectCast(catFacade.SelectedListItem, GUIItemListing).IsBackDots = True Then ScrollUpDesc.Label = "Up a level" ScrollUpDesc.Label = catFacade.SelectedListItem.Label End If Else ScrollUpDesc.Label = DirectCast(catFacade.SelectedListItem, GUIItemListing).item_desc End If End If End If If message.Message = GUIMessage.MessageType.GUI_MSG_CLICKED Then facadeClicked() End If Return MyBase.OnMessage(message) End Function[/CODE] I thank you so much for your help...hopefully I can begin to start coding the portions where the media will be shown/played/etc now. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Help Requested
Contact us
RSS
Top
Bottom