|
|
|
| "Skins"
by Daaron Dwyer (ddwyer@ncic.com)
Let's face it. The square window does not inspire and promote artistic creations. Several are competing to secure the hearts and minds of developers, like Woll2Woll's 1st Class (http://www.woll2woll.com) and Tim Lawrenz's CoolForm (http://www.lawrenz.com/coolform), but no one had really addressed making a way to allow users to create new and different interfaces, also known as "skins." Your forms can be in any shape, include the shape of a supermodel, like one from Tim Lawrenz's Gallery. Editors Note: There is also a Delphi 4 Open-Source project called Illumination that does something similar. You can allow end-users to create images to place on top of your more bland
interfaces to create a much more visually appealling product. Skins are
available for ICQ, Half-Life, and several other applications from the HOW TO DO IT: 1. Start with a skin 2. Map the skin The INI file looks much like this: [BITMAPINFO] [HOTAREAINFO] The first section (BITMAPINFO) simply identifies the mask (a black monochrome image identifying the shape of your form), along with the mouseup, mousedown, and mouseover bitmaps. The second section (HOTAREAINFO) identifies the number of items it should be monitoring on your form, with an identification of the items. The items are in a format of: unique_number=unique_name, left, top, width, height, initial_state (optional), radio_group (optional) 3. Incorporate the skin into your application Here is an example from his tutorial: procedure TForm1.SkinForm1MouseUpNotify(ID: String;
Button: TMouseButton; if ID = 'BUTTON_MENU' then if ID = 'RADIO_REPEAT' then
if (Button = mbRight) then end; This makes for very simple and very easy but really great looking forms for your applications. At the same time that you can offer a diversity of skins, you are also making a marketing move-- someone could be spending their valuable time to create an interface for your (probably registered) application. How much cooler can that get? |
|
|
Copyright © 2007 undu.com Powered by Engineer Partner The One Stop Outsource
|