Quick Sign In:  

Forum: VirtualDJ Skins

Topic: Pannels for different OS

This topic is old and might contain outdated or incorrect information.

Hi Guys,
I am currently building a skin, I would like to know if it is possible to have different pannels to display for different OS. The current problem I have is, I have made my skin for windows but would like to make it available for MAC users aswell, but everything is all laid out and where the minimize, maximize, close buttons go for mac, I have the logo. So i would like to add a pannel that will only display for MAC users, where I can move the logo along and place the buttons in, something like this....

<pannel id="pc" group="OS" visible="yes">
<size width="1224" height="68"/>
<pos x="28" y="41"/>
<down x="24" y="1780"/>
<up x="24" y="1780"/>
<selected x="24" y="1780"/>
</pannel>
<pannel id="mac" group="OS" visible="yes">
<size width="1224" height="68"/>
<pos x="28" y="41"/>
<down x="24" y="1780"/>
<up x="24" y="1780"/>
<selected x="24" y="1780"/>
</pannel>

Would something like this work ?
Thanks in advance
 

Posted Wed 08 Aug 12 @ 11:10 am
djdadPRO InfinityDevelopment ManagerMember since 2005
Havent tried to create panels for different OS to be honest.

For buttons and other elements the parametr os="pc" or os="mac" works fine.

You can try ..
<pannel os="pc" id="name1" group="groupname" visible="yes">
...
</pannel>

<pannel os="mac" id="name2" group="groupname" visible="yes">
...
</pannel>

Try without the visible parameter too.
 

Posted Wed 08 Aug 12 @ 12:48 pm
Thanks DJDad, I have put the code into the xml file and all seems well on PC, no errors, however i can't test it on mac as i dont have one. so I can only assume that its working.

Not getting any errors when i remove the visible param either, seems to be working ok
 

Posted Wed 08 Aug 12 @ 1:05 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
I dont have a MAC as well, but if i need to test something like this, i just invert my selections of the os parametr ;)
 

Posted Wed 08 Aug 12 @ 2:01 pm
Ok inverted the OS param, and it works perfect. Thanks for your help.
 

Posted Wed 08 Aug 12 @ 3:36 pm
One more quick question, is it just the 4 elements I have to set the mac param for, logo, min, max, and close to make it work on mac ?
 

Posted Wed 08 Aug 12 @ 4:20 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Well the os parametr was implemented in ver 7 to be able to display different close/min/max buttons to look similar to OSX. and since those buttons have to be on the left side, we used that for the logo to place it at the right side fo rMacs.
I dont find any other reason to use that parametr.
You also need to know, that this os parametr is not necessary to be used. You could have the same buttons for both PC and Mac skins. No need to use them really for a custom made skin.
 

Posted Wed 08 Aug 12 @ 6:04 pm


(Old topics and forums are automatically closed)