Posts: 3,660
Joined: Feb 2008
Reputation:
93
Jeroen
Team-Kodi Member
Posts: 3,660
2011-06-26, 17:10
(This post was last modified: 2011-06-26, 17:20 by Jeroen.)
Would/should it be possible to send a click to the context menu from a dialog?
I'm trying to make a button in the favourites dialog send a click, like renaming a favourite, essentially bypassing opening the context menu.
I looked up the ID's in GUIDialogContextMenu.h, for example
<onclick>SendClick(contextmenu,2)</onclick>
but no dice unfortunately.
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
First button in context menu will be 1001 (don't know if it will work for You)
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
My previous forum/trac nickname: grajen3
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
First button in the contextmenu is always 1001, followed by 1002 etc... I don't think sendclick will work if the window is not open. If you do it in the contextmenu, it's working.
Posts: 17,404
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,404
If you move away from the selected item to your button then the context menu will behave differently or not all.