sending click to context menu
#1
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.
Reply
#2
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
Reply
#3
pieh Wrote:First button in context menu will be 1001 (don't know if it will work for You)

Would that be the order in the actual context menu entries that appear in the favourites dialog or the order in GUIDialog.h ?

I tried both, and some other ID's but unfortunately it doesn't work for me.
Reply
#4
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.
Image
Reply
#5
If you move away from the selected item to your button then the context menu will behave differently or not all.
Reply

Logout Mark Read Team Forum Stats Members Help
sending click to context menu0