| Windows GUI Basics - An Introduction to the Windows GUI and graphics |
The basics of your Windows GUIWhen you break Windows down into its GUI components what do you have? You have:
If you need more details on these components and what they do, then check out the Windows GUI reference. When your skin,
you can go little by little adding each element as you find the time
to do so. When you make a skin, you essentially make the graphics
to represent those things and then edit the text file that tells WindowBlinds
where to put those graphics. So our next task is to talk about how
to make those graphics. Making the Graphics to Skin the GUIMost WindowBlinds skins are made up Bitmap (BMP) graphics files. The latest versions of WindowBlinds also support the use of TGA files. You can use any graphics package to develop your skins, as long as it is capable of exporting the appropriate file. Windows which are skinned by WindowBlinds don’t have to be completely rectangular; in fact they can be almost any shape you can imagine. The same is true for the buttons and controls you create. Bitmap files that you save however, must be rectangular, so how do you indicate areas that need to be transparent? Any
time WindowBlinds encounters this precise shade in a graphic it defines
that area as being transparent. This does of course mean that you
cannot use precisely this color in a skin, but even the smallest change
in hue Anti-aliasing is a technique by which the edges of objects are softened by gradually blending them into the background. While designing a skin, you need to be aware that anti-aliasing can cause problems because it softens edges by changing the surrounding hue. The other thing you need to know about graphics is that graphics used for WindowBlinds often consist of multiple ‘States’. What do I mean by this? Well, the appearance of most controls in Windows varies depending on how you are interacting with them. For example below is a graphic used for the Close button in a WindowBlinds skin. In each set of 3, the first image is how the Close button normally looks. The second is how the Close button looks when you press it, and the third is how it looks when you move your mouse over it. Different controls can have different numbers of 'States' and these will be discussed when we get to them. |
(c) 2002 Stardock.net