CClock.dll – A configurable clock dll for WindowBlinds™

 

Date: 10 May 2000

Version: 1.1.1

This file must be distributed unchanged with the CClock.dll file (including in all personalities).

There are no restrictions on the use or redistribution of this dll, except that this help file must accompany it. (This is just to make sure that anyone that gets a personality with this dll included can modify it.)

There is no warranty or guarantee on this dll either. That said, if you find a problem with it, please notify me at swarner@frii.com and I will do everything I can to resolve it. If you like it, let me know also.

There is a small chance that the timer used in this dll will conflict with the timer in another program. There is no way (that I know of) in Windows to dynamically get a timer that is not in use. If skins using this dll do conflict with another program using a timer, let me know about it at the above email address and I will change the timer in the dll.

To use Cclock.dll, the following information must be added to the UIS2 personality definition:

[CClock]

This section contains all the same settings and the default clock.dll with several additions.

Mode = <1, 2, 3>

NumFormats = <the number of defined formats>

Format = <the format string>

Format2 = <the format string>

Format3 = <the format string>

Format4 = <the format string>

Format5 = <the format string>

Format6 = <the format string>

Format7 = <the format string>

Format8 = <the format string>

Format9 = <the format string>

Format10 = <the format string>

FormatColorR = <the clock text color RED component>

FormatColorG = <the clock text color GREEN component>

FormatColorB = <the clock text color BLUE component>

Format2Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

Format3Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

Format4Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

Format5Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

Format6Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

Format7Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

Format8Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

Format9Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

Format10Color[R,G,B] = <the clock text color RED, GREEN, and BLUE components>

The following information is taken from BuilderBlinds.

FontName = <font name>

FontSize = <font size>

TextJustify = <1,2,3>

FontWeight = <font weight>

Background = <background bitmap image name>

UpdateTimer = <update interval in milliseconds>

The next 4 attributes can be used to make the clock fade in and out. The amount of fading will oscillate between the min and max values, changing by the increment value each time.

ButtonNo = <button number>

AlphaInc = <increment value>

MinAlpha = <minimum alpha value>

MaxAlpha = <maximum alpha value>

Format String Elements

The modifier is the "#" sign

NOTE: You can mix normal text in with these elements except there is a bug in Windows where the '#' character will not show up. See below for some examples.

Element Modifier "#" Description
%a Ignored Abbreviated weekday name
%A Ignored Full weekday name
%b Ignored Abbreviated month name
%B Ignored Full month name
%c Long date & time Date and time representation appropriate for locale
%d Remove leading zeros Day of month as decimal number (01 - 31)
%H Remove leading zeros Hour in 24 hour format (00 - 23)
%I Remove leading zeros Hour in 12 hour format (01 - 12)
%j Remove leading zeros Day of the year as decimal number (001 - 366) (julian date)
%m Remove leading zeros Month as decimal number (01 - 12)
%M Remove leading zeros Minutes as decimal number (00 - 59)
%p Ignored Current locale's A.M./P.M. indicator in UPPER CASE for 12 hour clock
%q Ignored Current locale's A.M./P.M. indicator in lower case for 12 hour clock
%S Remove leading zeros Seconds as decimal number (00 - 59)
%T Remove leading zeros Internet time in beats (000 - 999)
%U Remove leading zeros Week of the year as decimal number with Sunday as the first day of the week (00 - 53)
%w Remove leading zeros Weekday as decimal number (0 - 6, Sunday is 0)
%W Remove leading zeros Week of the year as decimal number with Monday as the first day of the week (00 - 53)
%x Long date Date representation for current locale
%X Ignored Time representation for current locale
%y Remove leading zeros Year without century, as decimal number (00 - 99)
%Y Remove leading zeros Year with century, as decimal number
%z Ignored Time-zone name or abbreviation
%% Ignored A percent sign

Examples

Sample UIS Entry

This sets up a clock that will show an alternate format when clicked. The primary format will be displayed in black, the alternate in white.

[CClock]
Mode = 3
NumFormats = 2

Format = %#I:%M:%S %q
FontName = Tahoma
FontSize = 16
FontWeight = 600
FormatColorR = 0
FormatColorG = 0
FormatColorB = 0

Format2 = %b %d, %Y
Format2ColorR = 255
Format2ColorG = 255
Format2ColorB = 255

Change Log

Version 1.1

Version 1.1.1