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: 544130" data-attributes="member: 86959"><p>I found the skin editor a few days ago, and have a good layout done with it, but it is missing one important thing....a graphic or 2. I suck at graphics...opened up Photoshop and tried to come up with something, but what turned out was something that looked like a bluish-green potatoe chip bag done in the style of Picasso...not really what I was aiming for, heh.</p><p></p><p>Now, onto something that is really puzzling.</p><p></p><p>[CODE]</p><p> Protected Overloads Overrides Sub OnClicked(ByVal controlId As Integer, _</p><p> ByVal control As GUIControl, _</p><p> ByVal actionType As MediaPortal.GUI.Library.Action.ActionType)</p><p> If controlId = catFacade.GetID Then</p><p> MsgBox("clicked")</p><p> facadeClicked()</p><p> End If</p><p> MyBase.OnClicked(controlId, control, actionType)</p><p> End Sub</p><p>[/CODE]</p><p>That does exactly what you would expect...it pops up a lil message window for me saying "clicked", and calls facadeClicked. This works for both the Keyboard <strong><em><u>AND</u></em></strong> Mouse (added emphasis to the word AND)</p><p></p><p>Then, I do this:</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_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> 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> Case MediaPortal.GUI.Library.Action.ActionType.ACTION_PREVIOUS_MENU</p><p> Dim db As New DataBase</p><p> prev_page = db.GetCategoryInfo(prev_page).category_parent_category_id</p><p> GetCategories(prev_page)</p><p> GetItems(prev_page)</p><p> Case Else</p><p> MyBase.OnAction(action)</p><p> End Select</p><p> End Sub</p><p>[/CODE]</p><p></p><p>Before I mention what this breaks, I want to let you konw that ACTION_PREVIOUS_MENU works like a charm...again, thank you so much for that piece of knowledge <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Now, what is broken: Mouse clicking on the facade. I know it has to do with ACTION_MOUSE_MOVE in the first case statement, because if I remove it, mouse clicking goes back to being functional. </p><p></p><p>This got me to thinking...perhaps I in order to catch the clicks via the mouse, I need to use ACTION_MOUSE_CLICK (even though I know I do not have to, as the OnClick method was picking it up prior to me adding the case statements)</p><p></p><p>So, I changed it all to look like this:</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_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> 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> Case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_CLICK</p><p> MsgBox("click")</p><p> Case MediaPortal.GUI.Library.Action.ActionType.ACTION_PREVIOUS_MENU</p><p> MsgBox("esc")</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> 'MyBase.OnAction(action)</p><p> End Sub</p><p>[/CODE]</p><p>The only thing that changed, was the addition of:</p><p>[CODE]</p><p> Case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_CLICK</p><p> MsgBox("click")</p><p>[/CODE]</p><p>I added that, thinking (read: hoping) that it would catch the mouse click using ACTION_MOUSE_CLICK....boy, was I wrong.</p><p></p><p>So, I am wondering if there is some sort of order of operations that needs to be in place with the case statements...or if perhaps I need to switch to an IF/THEN/ELSE setup here (I can't see why I would have to). Or if perhaps there is just that one random thing I am missing...I have been staring at this for a while now, trying different combination's and such. Any thoughts?</p><p></p><p>I have tried looking at MovingPictures, as well as your sports thing, but I wasn't seeing ACTION_MOUSE_CLICK anywhere, so I think I am going about this the wrong way.</p></blockquote><p></p>
[QUOTE="jmhecker, post: 544130, member: 86959"] I found the skin editor a few days ago, and have a good layout done with it, but it is missing one important thing....a graphic or 2. I suck at graphics...opened up Photoshop and tried to come up with something, but what turned out was something that looked like a bluish-green potatoe chip bag done in the style of Picasso...not really what I was aiming for, heh. Now, onto something that is really puzzling. [CODE] Protected Overloads Overrides Sub OnClicked(ByVal controlId As Integer, _ ByVal control As GUIControl, _ ByVal actionType As MediaPortal.GUI.Library.Action.ActionType) If controlId = catFacade.GetID Then MsgBox("clicked") facadeClicked() End If MyBase.OnClicked(controlId, control, actionType) End Sub [/CODE] That does exactly what you would expect...it pops up a lil message window for me saying "clicked", and calls facadeClicked. This works for both the Keyboard [B][I][U]AND[/U][/I][/B] Mouse (added emphasis to the word AND) Then, I do this: [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 prev_page = db.GetCategoryInfo(prev_page).category_parent_category_id GetCategories(prev_page) GetItems(prev_page) Case Else MyBase.OnAction(action) End Select End Sub [/CODE] Before I mention what this breaks, I want to let you konw that ACTION_PREVIOUS_MENU works like a charm...again, thank you so much for that piece of knowledge :) Now, what is broken: Mouse clicking on the facade. I know it has to do with ACTION_MOUSE_MOVE in the first case statement, because if I remove it, mouse clicking goes back to being functional. This got me to thinking...perhaps I in order to catch the clicks via the mouse, I need to use ACTION_MOUSE_CLICK (even though I know I do not have to, as the OnClick method was picking it up prior to me adding the case statements) So, I changed it all to look like this: [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_MOUSE_CLICK MsgBox("click") Case MediaPortal.GUI.Library.Action.ActionType.ACTION_PREVIOUS_MENU MsgBox("esc") 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 'MyBase.OnAction(action) End Sub [/CODE] The only thing that changed, was the addition of: [CODE] Case MediaPortal.GUI.Library.Action.ActionType.ACTION_MOUSE_CLICK MsgBox("click") [/CODE] I added that, thinking (read: hoping) that it would catch the mouse click using ACTION_MOUSE_CLICK....boy, was I wrong. So, I am wondering if there is some sort of order of operations that needs to be in place with the case statements...or if perhaps I need to switch to an IF/THEN/ELSE setup here (I can't see why I would have to). Or if perhaps there is just that one random thing I am missing...I have been staring at this for a while now, trying different combination's and such. Any thoughts? I have tried looking at MovingPictures, as well as your sports thing, but I wasn't seeing ACTION_MOUSE_CLICK anywhere, so I think I am going about this the wrong way. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Help Requested
Contact us
RSS
Top
Bottom