Problems with the order of VIEW elements in WMP skins

Saturday, July 19, 2003 by CerebroJD | Discussion: Skinning

I'm making a skin for media player with two windows. One is the normal window and the other is the video window. When I put the normal window VIEW before the other video VIEW then the normal window is visible but there is no video. When I put the video VIEW first, it shows up but no normal window. Its really wierd and I cant get them both to show up at the smae time. Anyone have any clues on this problem?
Solar Flare
Reply #1 Tuesday, July 22, 2003 11:16 AM
theme.openView('theNameOfYour2ndView');

You can call this under the first view's OnLoad function if you want it to open right away, or on a button's OnClick function. Also: theme.closeView('...');.
CerebroJD
Reply #2 Tuesday, July 22, 2003 1:27 PM
I put it in the OnLoad function but it still wont show up! Grr, this is getting frusterating! I appreciate your help though. I dont know why this wont work! This is the VIEW's code: (replace [ and ] with angle brackets)

[VIEW title="Video"
width="470"
height="1000"
titleBar="false"
resizable="false"
zIndex="1"]

[SUBVIEW id="Visuals"
top="-200" (note: this is set to -200 because it is supposed to slide down into place. Even when I change it though, it still doesnt work)
left="100"
backgroundImage="vidbackground.bmp"
onEndMove="JScript: ShowVid();"
visible="true"]

[video id="Vid"
left="12"
top="9"
width="225"
height="156"
onVideoStart="JScript: MoveVid();"
onVideoEnd="JScript: VidUp();"
visible="true"/]

[/SUBVIEW]
[/VIEW]

Do you see anything wrong with this code?
Solar Flare
Reply #3 Tuesday, July 22, 2003 2:33 PM
I don't think the content of the video view matters (I would make it the second view, with the main view being first). Although wait a sec... you should have a

id="viewvid"

line in the video view, which you don't currently have, then try again the

[VIEW id="mainview"
(variable stuff)
OnClick="blahblahblah;theme.openView('viewvid');"
]

See if that works, in other words, much more simply, I think you just need "id" instead of "title" for the 2nd view. HTH,

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01