Posts: 17,381
Joined: Aug 2007
Reputation:
582
Hitcher
Team-Kodi Member
Posts: 17,381
But it's possible to make your own.
When you click the button set focus on a list control (which is hidden unless focused) which contains the choices. When a choice is selected set focus back to the button which displays the string you picked.
Posts: 219
Joined: Feb 2012
Reputation:
0
Hi, Hitcher Thanks for Help.
I tried your suggestion , I put one list control (with two choices) just below a button with following condition:
<visible>Control.HasFocus(4) | Control.HasFocus(5) </visible>
where 4 is id of button & 5 is id of the list control. when I move mouse over button the list becomes visible otherwise not visible. This is ok but I want to that list should be visible when I click on the button not just focus,
so what should be the condition in <visible> ?? </visible> of list control ?
And when I click on a choice of the list control the action is performed which I have written in
<onclick> ... </onclick>
but the label of the above button should also be changed as with selected choice label & list should become invisible.
So how can I do that?
Please HELP Thank You.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
2012-03-15, 14:43
(This post was last modified: 2012-03-15, 14:45 by `Black.)
Add <visible allowhiddenfocus="true">Control.HasFocus(5)</visible> to the list control. To your button add <onclick>SetFocus(5)</onclick>.
To your list items add <onclick>SetString(choice,label of the item)</onclick>. You can display the string with $INFO[Skin.String(choice)].