Right Click for Settings Popup menu. Drag to reposition
Techniques Employed:
Image Rotation with Plgblt
Dragging Forms
API Popup Menu - on borderless form!
Transparent Form to create Pinned Effect
Saving Settings to Registry
Custom Skin system added 8/15/09
Last Upload 8/19/2009
Hour Hand Mod
The hour hand is programmed to always point directly at the current hour. It is my preference. If you would like a traditional moving hour hand that slowly transitions from one hour to another then replace this code
In order to create custom clock skins you have to create images and masks with specific filenames and a definition file so the program adds the skin to the menu and processes the images correctly.
The Images
The Clock image is created from 3 pairs of files
The Face
The Hour Hand
The Minute Hand
And one Definition File. All files should be in placed in a subdirectory with the name SkinN where "N" is the number of skin in sequence. For instance if you have a Skin1 and Skin2 the new one should be Skin3.
The Face
The face pair is composed of a 256 color Face.gif file and a black and white FaceM.gif file.
The black should be defined as:
Red=0
Green=0
Blue=0
The white should be defined as:
Red=255
Green=255
Blue=255
The black area defines the image area and the white defines the see thru area. See exmples of masks below.
The Hour Hand
The hour hand file should be a 256 color GIF called HHand.gif with same palette as the Face.gif file. The hour hand mask should be an inverted mask where the black defines the see thru area and the white defines the image area. This file must be a 1 -bit BMP file called HHandMask.bmp.
One bit bmp's can be created in MS Paint or Adobe Photosop.
The Minute Hand
The hour hand file should be a 256 color GIF called MHand.gif with same palette as the Face.gif file. The minute hand mask should be an inverted mask where the black defines the see thru area and the white defines the image area. This file must be a 1 -bit BMP file called MHandMask.bmp.
One bit bmp's can be created in MS Paint or Adobe Photosop.
Both the minute and hour hand must originate or pivot from center and point straight up. The hand files should be equal height and width and identical in size.
The Definition File
The Definition file is a text file and must be called SkinDef.txt. A definition file looks like this:
The hour hand is programmed to always point directly at the current hour. It is my preference. If you would like a traditional moving hour hand that slowly transitions from one hour to another then replace this code