|
Modifying the default Tclock 2 calendar
|

Not sure how many of you use the built in calendar of Tclock 2, but I for one do occasionally forget the date, and rather then using the Windows clock/calendar combo, I prefer to right click on my clock, and go straight to the one built in to Tclock 2. Of course, it's a default, standard MS calendar, but Resource Hacker allows us to modify it to some degree. Styles are limited on the calendar control, not much to choose from, but just enough to make it look alot better.
You'll need to go to your Tclock 2 folder, and open the file "langen.tclock2" using Resource Hacker of course, then go to Dialog #121. You'll notice immediately that not only do you have the calendar to modify, but you also have the dialog upon which it sits also :)
Now, if you're like me, you hate those big red circles on the calendar, and those can easily be gotten rid of by applying the MCS_NOTODAY style. Do that by right clicking on the calendar, select "Edit Control", then apply the style. I also resized my calendar, which resulted in resizing the dialog itself, making for a much smaller calendar all around. I also applied the HOOGE 05_53 font, as I do to all dialogs, which not only helps to make the dialog even smaller, but it also changes the calendar font as well, which looks much better. You can also apply borders to the calendar using WS_BORDER, or one of the 3 EX styles available, but I found that it looked best without them.
The dialog itself can have all the usual styles applied to it, borders particularly, which I did apply as usual, and I also removed the WS_SYSMENU style, which removes the caption buttons, and I just use ALT+F4 to close it out. Below is the exact code for the calendar/dialog, and you can simply copy and paste it into your own.
121 DIALOGEX 0, 0, 115, 103
STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_VISIBLE | WS_CAPTION | WS_THICKFRAME
EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE
CAPTION " ( Date )"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 6, "HOOGE 05_53"
{
CONTROL "MonthCalendar1", 1038, "SysMonthCal32", MCS_DAYSTATE | MCS_NOTODAY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 0, 0, 115, 105
}
Remember to change the font from Hooge 05_53 to whatever you have or wish to use if you don't want to use Hooge. Enjoy your new calendar :)
by WinT
|
|