Kodi Community Forum
why do some buttons not have an onclick - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: why do some buttons not have an onclick (/showthread.php?tid=61781)



why do some buttons not have an onclick - vajonam - 2009-11-16

hi there,

I am question about some buttons in the PM3 skin dont have an onclick but still seem to do stuff..

for example

Code:
<control type="button" id="3">
                                        <description>Sort by button</description>
                                        <posx>0</posx>
                                        <posy>45</posy>
                                        <include>ButtonCommonValues</include>
                                        <label>103</label>
                                        <onleft>50</onleft>
                                        <onright>4</onright>
                                        <onup>2</onup>
                                        <ondown>99</ondown>
                                </control>

how do these work? are there hooks in the code itself that listen for these clicks ? i.e windows 5 controlid=3 ?


- ronie - 2009-11-16

yup, xbmc handles those button internally.


- vajonam - 2009-11-17

any where i might find which buttons are handled internally?

also are the buttons identified by a combination of windowid,controlid?


- ronie - 2009-11-17

you have to check the sourcecode of the respective window or dialog.
the button definitions are listed somewhere at the top of the files.


- vajonam - 2009-11-17

thanks ronnie.

GUIWindowSystemInfo.cpp etc.. i see now.