快速登录:  

Forum: VirtualDJ Skins

话题: <window class=""...> <define> & specified default parameters

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

NicotuxHome userMember since 2014
supose you define an element like this
<define class="extraelement" color="bgcolor" border="bordercolor">
.....
</define>

then create a panel using it
<panel class="extraelement" x="+0" y=+0" width="320" height="200" > ...</panel>
the panel will create with a background "bgcolor" and a "bordercolor" colored border default size 1 pixel

next create a window instead
<window class="extraelement" x="+0" y=+0" width="320" height="200" />
nothing appears

create a more complex window
<window class="extraelement" x="+0" y=+0" width="640" height="400">
<panel class="extraelement" x="+0" y=+0" width="320" height="200" />
</window>
the window is "transparent a la VDJ" ... no background drawn and the pannel appears normally

specify defaults parameters as parameters
<window class="extraelement" x="+0" y=+0" width="640" height="400" color="bgcolor" border="border">
<panel class="extraelement" x="+0" y=+0" width="320" height="200" />
</window>

this time all is ok
as with simple

<window x="+0" y=+0" width="640" height="400" color="bgcolor" border="border">
<panel class="extraelement" x="+0" y=+0" width="320" height="200" />
</window>

it appears <window> element does not accept class="extraelement" as a parameter (or parameters from the <define> line)
 

发表时间 Sun 20 Sep 20 @ 2:05 pm
AdionPRO InfinityCTOMember since 2006
Window doesn't read color or border to begin with, the background of a window is defined in the <background> child.
 

发表时间 Sun 20 Sep 20 @ 2:20 pm
NicotuxHome userMember since 2014
strange it does work fine when windows is declare standalone (used for years in many skins because never saw/get a background child work, maybe i do it wrong)
will take a look deeper, but its not the point ;)

- posx posy width height shown ... are sure elements a window element would have to read but doesn't from a define line
- no element that define in the class will draw in <window .../>
it look like a panel (or a group) child is a mandatory child in this case to draw a defined class window

no parameter & no child ... that's why i doubt window read class parameter
 

发表时间 Sun 20 Sep 20 @ 2:57 pm
AdionPRO InfinityCTOMember since 2006
That is correct as well, window indeed doesn't apply any class definitions
 

发表时间 Sun 20 Sep 20 @ 3:54 pm


(陈旧帖子或论坛版块会自动关闭)