<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>winJade &#187; Ave</title>
	<atom:link href="http://winjade.net/tag/ave/feed/" rel="self" type="application/rss+xml" />
	<link>http://winjade.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 27 Jun 2010 23:47:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Vista Style Builder</title>
		<link>http://winjade.net/2008/06/vista-style-builder/</link>
		<comments>http://winjade.net/2008/06/vista-style-builder/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 17:37:25 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips/Tricks/Hacks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Ave]]></category>
		<category><![CDATA[hax]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.aeroxp.org/?p=71</guid>
		<description><![CDATA[The last couple of weeks, I have been working incredibly hard on a tool to create Vista Style Builder. Vista Style Builder supports everything that is needed to create Visual Styles for Vista:

Import and export images
Change, add or remove properties
Import and export STREAM images
Compile into a totally new MsStyles-file

In this post I will highlight some details [...]]]></description>
			<content:encoded><![CDATA[<p>The last couple of weeks, I have been working incredibly hard on a tool to create Vista Style Builder. Vista Style Builder supports everything that is needed to create Visual Styles for Vista:</p>
<ul>
<li>Import and export images</li>
<li>Change, add or remove properties</li>
<li>Import and export <em>STREAM</em> images</li>
<li>Compile into a totally new MsStyles-file</li>
</ul>
<p>In this post I will highlight some details of Vista Style Builder (VSB) which show how much easier this application makes it to edit MsStyles.</p>
<p><span id="more-71"></span></p>
<h3>The Main Window</h3>
<p style="text-align: center;"><a href="http://winjade.net/wp-content/uploads/2008/06/main.png"><img class="alignnone size-full wp-image-72 aligncenter" src="http://winjade.net/wp-content/uploads/2008/06/main.png" alt="" width="500" height="396" /></a></p>
<p>Most of the time when creating Visual Styles, you will be looking at the main window of VSB. This main window exists basically of four parts:</p>
<ul>
<li>The command bar in the top of the window to do things</li>
<li>The UI parts browser on the left which displays every UI part in a MsStyle neatly grouped into categories</li>
<li>The Preview pane, which will show the images used in a UI part</li>
<li>The property view in the bottomright, showing an editable list of all properties for a UI part</li>
</ul>
<p>As you might notice, there is no menu bar anymore. In line with most Vista applications, VSB uses a commandbar for all possible actions that can be done.</p>
<h3>Importing Images</h3>
<p>VSB allows a user to export the images used in a Visual Style in order to edited the images in an external application, such as Adobe Photoshop. It is possible to export a strip of images (e.g. all different button states in one image), but it is also possible to just export one state of an image (e.g. the button-pressed image).</p>
<p>Importing is done in a similar fashion: you can import an image with all states or just one state directly. VSB always provides a default name for importing and exporting, so if you follow that naming schemes, you can quickly import and export images.</p>
<p>VSB will notice it if you try to import an image of different dimensions than the original; it will actually ask you what you want to do:</p>
<p style="text-align: center;"><a href="http://winjade.net/wp-content/uploads/2008/06/resize.png"><img class="alignnone size-full wp-image-73 aligncenter" src="http://winjade.net/wp-content/uploads/2008/06/resize.png" alt="" width="500" height="268" /></a></p>
<h3>Alpha Channel Importing</h3>
<p>One of the problems people are currently facing with Vista Styles is that photoshop and Vista uses a slightly &#8211; or so it seems &#8211; different format: the alpha channel comes out wrong in MsStyles for files imported manually.<br />
Vista Style Builder fixes this incompatibility when importing images.</p>
<h3>Adding Properties</h3>
<p>Another feature in VSB is the possibility to add new properties to UI parts. This makes it possible, for example, to give the taskbar fonts a glow or even make the breadcrumb bar glow.</p>
<p style="text-align: center;"><a href="http://winjade.net/wp-content/uploads/2008/06/addprop.png"><img class="alignnone size-full wp-image-74 aligncenter" src="http://winjade.net/wp-content/uploads/2008/06/addprop.png" alt="" width="500" height="197" /></a></p>
<p>Properties are added through a easy to use dialog which allows you to select the type of property (e.g. enum or color), the name (e.g. iconeffect or textcolor) and the value. For enumeration-types, such as Iconeffect, a listbox will automatically show all possible values.</p>
<h3>StyleHacks</h3>
<p>People often want to change the same things in their Visual Styles. Some good examples are a thinner taskbar and a small startmenu. Most of the time, these things involve editing a number of properties in some unexpected way.</p>
<p>To make it easier for everyone to use often done things in their styles we invented StyleHacks in VSB. A StyleHack is an easy way to apply an often done thing (a`hack`) to your Visual Style. For example, there is a StyleHack to change the height of the taskbar to 18px.</p>
<p>Visual Style Builder provides an in-application menu to browse the available StyleHacks with a preview image and apply them with a click of the mouse:</p>
<p style="text-align: center;"><a href="http://winjade.net/wp-content/uploads/2008/06/stylehacks.png"><img class="alignnone size-full wp-image-75 aligncenter" src="http://winjade.net/wp-content/uploads/2008/06/stylehacks.png" alt="" width="500" height="389" /></a></p>
<h3>Import XP Styles</h3>
<p>A featue of Visual Style Builder that has been secret until now is the ability to <strong>Import XP MsStyles.</strong><br />
That&#8217;s right, VSB makes it possible to use your favorite XP Styles on Vista! Most XP Styles only need some small modifications after importing to work correctly on Vista .</p>
<p>Here&#8217;s an example of XP Luna after having it converted to a Vista Style after importing:</p>
<p><a href="http://winjade.net/wp-content/uploads/2008/06/lunaxp.png"></a><br />
As you can see, the dialog uses the Luna window borders as well as Luna buttons. As a bonus, the Luna theme got dropshadows and is rendered by the DWM. For this theme, I opted to keep the Aero buttons because I personally think they look great on the Luna theme.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-76 aligncenter" src="http://winjade.net/wp-content/uploads/2008/06/lunaxp.png" alt="" width="410" height="207" /></p>
<p>Of course, not all themes can be imported 100% correctly: Vista has some more restrictions on the window frames than XP had. However, it will make porting much easier and it works for a lot of themes without modifications.</p>
<h3>Availability and price</h3>
<p>The big question is now when will VSB be available? Unfortunately, I can&#8217;t really give a date yet. The technical side of the application is completely done; the business side, however, is not.</p>
<p>I know a lot of people expect this application to be free, but I can tell you that it will not be free. There went a lot of work in VSB and, at the very least, I need to earn the invested time back.</p>
<p><em><strong>Editor&#8217;s Note:</strong> A distribution policy for Vista Style Builder and AeroXperience members is currently being researched</em></p>
]]></content:encoded>
			<wfw:commentRss>http://winjade.net/2008/06/vista-style-builder/feed/</wfw:commentRss>
		<slash:comments>74</slash:comments>
		</item>
		<item>
		<title>Adding custom buttons to the Explorer command bar</title>
		<link>http://winjade.net/2008/06/custom-explorer-buttons/</link>
		<comments>http://winjade.net/2008/06/custom-explorer-buttons/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 01:26:56 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Tips/Tricks/Hacks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Ave]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[hax]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.aeroxp.org/?p=58</guid>
		<description><![CDATA[With Vista, Microsoft redesigned Windows Explorer a lot. One of the biggest changes was the removal of the customizable toolbar. Up to Windows XP, adding or removing the buttons that were displayed in Explorer was a simple chore.
With Vista, this customization ability is gone; the toolbar is replaced by a so-called green shaded &#8220;commandbar,&#8221; and [...]]]></description>
			<content:encoded><![CDATA[<p>With Vista, Microsoft redesigned Windows Explorer a lot. One of the biggest changes was the removal of the customizable toolbar. Up to Windows XP, adding or removing the buttons that were displayed in Explorer was a simple chore.<br />
With Vista, this customization ability is gone; the toolbar is replaced by a so-called green shaded &#8220;commandbar,&#8221; and none of it can be customized unless you are willing to take a dive into the registry.</p>
<p><img src="http://winjade.net/wp-content/uploads/2008/06/naamloos.jpg" alt="" /></p>
<p>In this post, I will show you a way to add custom buttons &#8212; like in the above image &#8212; to the commandbar by adding items to the registry. Unfortunately, not all buttons (e.g. New Folder) are possible via this way.</p>
<p><span id="more-58"></span></p>
<h3>The registry key</h3>
<p>We start by opening up regedit as administrator (start, type regedit and hit enter. Accept the UAC prompt if you have UAC enabled). Once inside regedit, we navigate to the following key:</p>
<pre style="font-size: 12px; padding-left: 30px;">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\FolderTypes</pre>
<p>Under this key, you&#8217;ll see a list of numbers in the format of {de2b70ec-9bf7-4a93-bd3d-243f7881d492}. These numbers are CLSIDs and represent the special folders such as Documents, Music, Drives in Explorer.<br />
Most of the CLSIDs can be figured out by clicking the registry key and looking at the <em>CanonicalName</em>. For example, {de2b70ec-9bf7-4a93-bd3d-243f7881d492} has its CanonicalName set to Directory.Contacts, so it is likely that these CLSID refers to the Contacts folder.</p>
<h3>TaskNoItemsSelected</h3>
<p>Under some of the CLSID registry keys, you&#8217;ll see another key named <strong>TaskNoItemsSelected</strong>. For example, {de2b70ec-9bf7-4a93-bd3d-243f7881d492} (the Contacts folder) has this subkey. If you further expand this key, you will see that it has numbered subkeys 0, 1, 2 and 3.<br />
These subkeys actually contain a description of the buttons that are added to the commandbar when no item is selected in the Contacts folder.</p>
<h3>Editing TaskNoItemsSelected</h3>
<p>Before we can edit this registry key, you need to make sure you have the proper rights to do so. On a fresh install, only the installer can write or modify these registry keys.<br />
If you plan on editing some of the button, take ownership of the FolderTypes registry key by right-clicking it and selecting <strong>Permissions</strong>. Next, click <strong>Advanced</strong> and go to the <strong>Owner</strong> tab. In here, you can select your own user or the Administrators group as the new owner. Before hitting OK, tick the bottom-most checkbox saying something along the lines of &#8216;Replace owner of the underlying objects&#8217;.<br />
After doing this, you now have the proper rights to edit the FolderTypes.</p>
<p>We start by adding a new key under the  {de2b70ec-9bf7-4a93-bd3d-243f7881d492}\TaskNoItemsSelected key. We name it <strong>4</strong>, since 0 to 3 already exists.</p>
<p>The next thing we need to do is add another subkey under the 4 key, which needs to be a unique and long number (called a GUID). For generating GUIDs, we use the following tool: <a href="http://www.somacon.com/p113.php">http://www.somacon.com/p113.php</a> . Hit the Generate UUID/GUID button and copy the GUID to the clipboard. We got the {61C0D9CB-BB72-4013-8769-EC628B50C351} GUID from this tool.<br />
Now we got a GUID, we add it under TaskNoItemsSelected\4 as a subkey, so we end up with the key:</p>
<pre style="font-size: 12px; padding-left: 30px;">\TasksNoItemsSelected\4\{61C0D9CB-BB72-4013-8769-EC628B50C351}</pre>
<p>In this key, we add the following values in the right pane:</p>
<ul>
<li>(default), Character string, with a value of <em>MyButton</em></li>
<li>Icon, Expendable Character string, with a value of <em>c:\windows\system32\calc.exe, 0</em></li>
<li>InfoTip, Character string, with a value of <em>My Custom Tooltip</em></li>
<li>Title, Character string, with a value of <em>My Custom Item</em></li>
</ul>
<p>When done right, you&#8217;ll end up with:<br />
<img src="http://winjade.net/wp-content/uploads/2008/06/customregvalues.jpg" alt="" /></p>
<p>These values let Explorer know how our button should look like. They are self-explanatory, except for Icon, which takes a string in the form of PathToExeOrDllFile, iconNumber. In our example, we tell Explorer to use the first Icon from the Calculator.</p>
<p>We now have told Explorer what our custom button looks like, but not what it should do. We do this by adding a the following subkeys to our custom-button key: <strong>shell\InvokeTask\command</strong>. In the command key, we change the (Default) value to the application we want to launch when the button is clicked. Let&#8217;s put in c:\windows\system32\calc.exe to launch calc.</p>
<p>If you did everything right, you ended up with the following key structure under FolderTypes:<br />
<img src="http://winjade.net/wp-content/uploads/2008/06/custombuttonreg.jpg" alt="" /></p>
<p>Now, if you go into the Contacts folder, you will see a <strong><em>My Custom Item</em></strong> button, which, when clicked, will launch the Calculator.</p>
<p>Next time we will delve into the TasksItemsSelected list, which has some additional properties!</p>
]]></content:encoded>
			<wfw:commentRss>http://winjade.net/2008/06/custom-explorer-buttons/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>
