Posts: 1,584
Joined: Nov 2007
Reputation:
44
wyrm
Skilled Skinner
Posts: 1,584
2014-10-22, 08:24
Hi Guys,
Sorry if this is obvious, but I have gone looking and I can't find how to bring up a "Context" menu from a button. I am currently playing around with a new skin concept and need some way to bring up the context menu from a mouse/touch interface. I have tried looking in a number of Touch compatible skins and don't see anywhere that the context menu is called.
Could someone please point me in the right direction for finding this (pointing and laughing is expected and entirely up to you).
Wyrm (xTV-SAF)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions
here if you can't access skin settings.
FAQ's located at :-
http://kodi.wiki/view/Add-on:AppTV
Posts: 1,126
Joined: Mar 2012
Reputation:
37
MassIV
Skilled Skinner
Posts: 1,126
Context menu is only available for items that have context options.
If a button has focus, the item does not have focus so xbmc has no idea what to fill the menu with.
On touch you can open context by long press (hold) on the item.
[RELEASE] Metroid
[RELEASE] IrcChat
Posts: 4,060
Joined: Mar 2010
Reputation:
94
Yep ofcourse you're right, ignore my post please.
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
I implemented a right-click menu for home window in my skin by using a script window instead of home.xml. works great, but you have to deal with python.
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
just a remark: I am not sure if the method I am using would ever be allowed for an official-repo skin since it breaks the default keymapping (<home> keymap part wont work anymore)
If you could be more specific about what you want to achieve I could probably give you some other ideas.
Posts: 17,250
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,250
As said it wouldn't work when using a panel view.
Interested in why press and hold isn't sufficient though?
The only other way would be a change to the core where clicking can be changed between Context, Info, and Play.
Posts: 1,584
Joined: Nov 2007
Reputation:
44
wyrm
Skilled Skinner
Posts: 1,584
What I was trying to achieve was to allow the user to trigger the context menu for each item in a list by either moving to the side (for remote users) or touching a arrow button on the edge of the list item (for mouse or touch users). This was before I found out about the long press to trigger the context menu (thanks for that Hitcher) and me realising that as phil65 pointed out that it would not work for a panel view.
Overall reason for this and other questions is that I am helping someone with a skin concept for a touch enabled device and I have never dealt with touch in a skin before, so I'm learning what I need as I go along. Each set back is an opportunity to learn something new. That and hopefully I can apply the new knowledge to a on again/ off again project of my own.
As to the idea of providing a way to call this menu (context) from within a skin, while on first thought it seems like a good idea, again anything involving a panel view would make it unworkable, so I don't see a lot of point following up on this. Just my 2c on this.
Wyrm
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions
here if you can't access skin settings.
FAQ's located at :-
http://kodi.wiki/view/Add-on:AppTV