Analog Clock in Date & Time Properties


Recommended Posts

Why would you need to change that, it's not like you're going to open up the Date and Time settings and leave it open there, are you?

Yes thats what i was planning to do.

Link to comment
Share on other sites

you can't change that analog clock. (only the colors.) but you can hide it (by using reshacker) if you dont want that ugly clock.

is there a place to get a digital looking clock instead?

Link to comment
Share on other sites

  • 3 weeks later...

i was able to do some minor changes in the timedate.cpl. here it is:

calendar HACK by des

(only system colors can be used.)

hex 6A01 @ [0x14A6] weekdays name [in 1-2-3 words] > 6A01 ..02 or ..03

hex 6A03 @ [0x140F] weekdays name bg color > 6A00 - 6A??

hex 6A13 @ [0x141B] weekdays name text color > 6A00 - 6A??

hex 6A03 @ [0x1189] weekdays bar bg color > 6A00 - 6A??

hex 6A08 @ [0x11C6] days text color > 6A00 - 6A??

hex 6A05 @ [0x11AA] days text bg color > 6A00 - 6A??

hex 6A05 @ [0x1142] the whole calendar bg color (original white) > 6A00 - 6A??

hex 2000 @ [0x111E] 2digit day numbers (if 3000)

(you can resize the calendar with reshacker)

edit: i know a little bit offtopic. but...

post-111072-1232737358.png

Edited by dis
Link to comment
Share on other sites

sure.

get a hexeditor. i.e; http://www.softcircuits.com/cygnus/fe/

open the timedate.cpl (system32 folder)

use menu > edit > go to...

type the offset number. [0x14A6] -> type 14A6. (the base settings must be hexadecimal)

hit enter or click ok. then the cursor will jump to the offset number. you will see 6A01.

you can change this to: 6A01, 6A02, 6A03

save as the file. see the result. this will change the number of words used on displaying the weekdays name. (i.e. s, su or sun for sunday.)

and do the same with the rest of the hex values. you can change them from 6A00 to 6AFF. but i suggest you to use the lower numbers first. (6A01- 6A09).

as far as i know only (some of) the system colors can be used with this hack. and which number is which color? well, it depends on the personal settings. (HKEY_CURRENT_USER\Control Panel\Colors) so i don't know for sure.

and to resizing the calendar use reshacker and edit the dialog 10. (resize the CalWndMain control)

mine is: CONTROL "", 711, "CalWndMain", 0x50010000, 11, 37, 226, 80

and here is my whole dialog:

10 DIALOGEX 0, 0, 252, 146
 STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
 CAPTION "Date && Time"
 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
 FONT 8, "MS Shell Dlg"
 {
	CONTROL "Date and time", 103, BUTTON, BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 4, 2, 241, 125 
	CONTROL "Month", -1, STATIC, SS_LEFT | WS_CHILD | WS_GROUP, 10, 17, 0, 0 
	CONTROL "", 713, COMBOBOX, CBS_DROPDOWNLIST | WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_TABSTOP, 11, 17, 59, 117 
	CONTROL "Year", -1, STATIC, SS_LEFT | WS_CHILD | WS_GROUP, 67, 17, 0, 0 
	CONTROL "", 706, EDIT, ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 73, 17, 37, 13 
	CONTROL "", 714, "msctls_updown32", UDS_WRAP | UDS_SETBUDDYINT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS | WS_CHILD | WS_VISIBLE, 109, 17, 7, 13 
	CONTROL "Day", -1, STATIC, SS_LEFT | WS_CHILD | WS_GROUP, 10, 37, 0, 0 
	CONTROL "", 711, "CalWndMain", 0x50010000, 11, 37, 226, 80 
	CONTROL "", 715, EDIT, ES_LEFT | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_BORDER | WS_TABSTOP, 189, 17, 37, 12 
	CONTROL "current time:", -1, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 139, 19, 46, 10 
	CONTROL "", 701, EDIT, ES_CENTER | ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 191, 19, 9, 8 
	CONTROL ":", 707, STATIC, SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 199, 19, 4, 8 
	CONTROL "Minute", -1, STATIC, SS_LEFT | WS_CHILD | WS_GROUP, 167, 107, 0, 0 
	CONTROL "", 702, EDIT, ES_CENTER | ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 203, 19, 9, 8 
	CONTROL ":", 708, STATIC, SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE | WS_GROUP, 211, 19, 4, 8 
	CONTROL "Second", -1, STATIC, SS_LEFT | WS_CHILD | WS_GROUP, 182, 107, 0, 0 
	CONTROL "", 703, EDIT, ES_CENTER | ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 215, 19, 9, 8 
	CONTROL "AM/PM", -1, STATIC, SS_LEFT | WS_CHILD | WS_GROUP, 193, 107, 0, 0 
	CONTROL "", 710, LISTBOX, LBS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 193, 107, 26, 0 
	CONTROL "", 709, "msctls_updown32", UDS_WRAP | UDS_SETBUDDYINT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS | WS_CHILD | WS_VISIBLE, 227, 17, 7, 12 
	CONTROL "Current time zone:  %s", 716, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 4, 136, 243, 8 
	CONTROL "Date and Time Properties.\nSet the date, time, and time zone for your computer.", 0, STATIC, SS_LEFT | WS_CHILD | WS_GROUP, 139, 33, 96, 45 
	CONTROL "", 712, "ClockWndMain", 0x40000000, 143, 33, 90, 90 
	CONTROL "", 0, STATIC, SS_ETCHEDFRAME | WS_CHILD | WS_VISIBLE | WS_GROUP, 9, 35, 230, 84 
 }

Edited by dis
Link to comment
Share on other sites

ok... so,

i was able to change the number of chars on the day's names, but couldnt change de visual of the window.. in reshack the file is changed, but when i open the window it remains as the original form.

tried to change with replacer, but failed too...

any ideias ?

here is a SS to clarify what I'm talking about:

post-188222-1232822708_thumb.jpg

Edited by Kamnitzer
Link to comment
Share on other sites

change the dialog 1 too. because dialog 1 and dialog 10 is the same.

but don't forget to change the code's first line if you copy the code from the dialog 10.

1 DIALOGEX 0, 0, 252, 146 = dialog 1

10 DIALOGEX 0, 0, 252, 146 = dialog 10

and in my code, the last one:

CONTROL "", 0, STATIC, SS_ETCHEDFRAME | WS_CHILD | WS_VISIBLE | WS_GROUP, 9, 35, 230, 84

-> just delete it if you dont want. i just added this to have a border around my calendar.

Edited by dis
Link to comment
Share on other sites

change the dialog 1 too. because dialog 1 and dialog 10 is the same.

but don't forget to change the code's first line if you copy the code from the dialog 10.

1 DIALOGEX 0, 0, 252, 146 = dialog 1

10 DIALOGEX 0, 0, 252, 146 = dialog 10

and in my code, the last one:

CONTROL "", 0, STATIC, SS_ETCHEDFRAME | WS_CHILD | WS_VISIBLE | WS_GROUP, 9, 35, 230, 84

-> just delete it if you dont want. i just added this to have a border around my calendar.

thanks man ! that worked !!! =))

icon1.gif

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.