Guest simon211175 Posted June 6, 2005 Report Posted June 6, 2005 Hey guys, creating another homescreen, and I wanted to have an unselected and a selected image for the shortcut bar - with the unselected bar showing no icons (ie using the {hide="yes"} setting). Stupid thing doesn't work though, and I could use some help. My code is currently as follows: <!-- RJShortcut --> <plugin clsid="{F3750050-8E30-4c61-A864-4301F5D7C065}" height="89"> <background b-border-width="0"> <format state="unselected" y="70" x="0" bgimage="\Storage\Application Data\Home\SinCitySH\RJSunselected.jpg" /> <format state="selected" y="70" x="0" bgimage="\Storage\Application Data\Home\SinCitySH\RJSimage.jpg" /> </background> <format state="unselected" padding-left="32" padding-top="70" padding-bottom="0" > <shortcutbar hide="yes"/> </format> <format state="selected" padding-left="32" padding-top="70" padding-bottom="0" > <shortcutbar icon-spacing="2" icon-size="small"> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut1.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut2.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut3.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut4.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut5.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut6.lnk"/> </shortcutbar> </format> </plugin>
Guest simon211175 Posted June 13, 2005 Report Posted June 13, 2005 Should I take it from the lack of response that I'm attempting something impossible?
Guest drblow Posted June 13, 2005 Report Posted June 13, 2005 I dunno about hiding the icons, never tried that! But here's a snipit of code from my Panther theme, that uses a background image for the selected state. I assume if you add an unselected state to the background tag, it will also accept a background image. Let me know if it doesn't work. <!-- RJShortcut --> <plugin clsid="{F3750050-8E30-4c61-A864-4301F5D7C065}" height="16"> <!-- hiding shortcut icons by placing 217 in the x --> <background> <format state="selected" valign="top" halign="right" bgcolor="transparent" bgimage="\Storage\Application Data\Home\Panther\panthershort.gif"/> </background> <shortcutbar icon-spacing="0" icon-size="small" x="220" y="0" > <shortcut target="/Storage/Windows/Start Menu/Programs/CityTime Alarms.lnk"/> <shortcut target="/Storage/Windows/Start Menu/Settings.lnk"/> <shortcut target="/Storage/Windows/Start Menu/Accessories/Orneta Notepad.lnk"/> <shortcut target="/Storage/Windows/Start Menu/Accessories/File Manager.lnk"/> <shortcut target="/Storage/Windows/Start Menu/Programs/SP Task Mgr EN.lnk"/> <shortcut target="/Storage/Windows/Start Menu/Call History.lnk"/> <shortcut target="/Storage/Windows/Start Menu/Media/WMPlayer.lnk"/> <shortcut target="/Storage/Windows/Start Menu/Accessories/Calculator.lnk"/> <shortcut target="/Storage/Windows/Start Menu/Programs/quickreset.exe"/> </shortcutbar> <appname valign="top" y="1" x="70" w="75" font-size="12" font-weight="bold" fgcolor="#888888"> <format state="selected" font-weight="bold" fgcolor="#000000"/> </appname> </plugin>
Guest simon211175 Posted June 13, 2005 Report Posted June 13, 2005 thanks DrBlow - I was actually looking at that theme just before you posted the code ;) I've managed to work it out (although for a different theme than originally designing) - using the following code. I'm guessing though this might only work if the shortcut bar is at the bottom, because I set the unselected format to start showing the icons below the specified height of the plugin: <plugin clsid="{F3750050-8E30-4c61-A864-4301F5D7C065}" height="115"> <background> <format state="selected" valign="top" halign="right" bgimage="\Storage\Application Data\Home\scratchSH\rjss.gif"/> </background> <format state="selected" padding-left="21" padding-top="93" padding-bottom="0" /> <format state="unselected" padding-left="21" padding-top="115" /> <shortcutbar icon-spacing="8" icon-size="small"> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut1.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut2.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut3.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut4.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut5.lnk"/> <shortcut target="\Storage\Application Data\Home\Shortcuts\Shortcut6.lnk"/> </shortcutbar> </plugin>
Guest simon211175 Posted June 13, 2005 Report Posted June 13, 2005 and here's the result if anyone's interested:
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now