Hi,
I am making my own WMP skin as project for my school. I have used a
listbox in my skin but the listbox does something very strange. When i
click one time on the listbox (to slect the listbox so I can choose an
item), it moves to above and a little bit to the left. I can use it
then but it's not at the position I want. If I close the listbox
(listbox.dismiss() ) en reopen it (listbox.show() ), it stays at the
same place. But the first time it moves. Can this be a bug???
Here is the code I use for the listbox:
id = "viewbug"
titleBar = "false"
backgroundColor = "#FF00FF"
height = "400"
width = "800"
scriptFile = "bug.js"
>
id = "oog"
clippingColor = "#CCCCCC"
backgroundImage = "oogdicht.bmp"
zIndex = "8"
>
mappingImage = "map.bmp"
hoverImage = "hover.bmp">
mappingColor = "#00FF00"
upToolTip = "Power On"
onClick="openURL()"
/>
id = "keuzelijst"
top="248"
left="600"
width="102"
height="19"
backgroundColor = "#00CCFF"
border="false"
visible="false"
zIndex = "15"
ondblclick="KeuzeVideo()"
>
value = "Via Website"
/>
value = "Manuele Ingave"
/>
scriptfile :
function openURL() {
keuzelijst.show();
}
function KeuzeVideo() {
if (keuzelijst.getItem(keuzelijst.SelectedItem)=="Via Website")
{
player.LaunchUrl("http://www.google.be");
}
else {
if (keuzelijst.getItem(keuzelijst.SelectedItem)=="Manuele Ingave")
{
keuzelijst.dismiss();
}
}
}
P.S. : Sorry for my English if there are any faults in it!!
Guy