Time on Taskbar Thread last updated on 2004-07-18 16:54:37

Posted by member 93731 on 2004-05-28 17:16:11

Anyone know how to change it from military time to standard US time? As in 15:14 being military and 3:14 pm standard.

Posted by member 159957 on 2004-05-28 21:17:59 link

[time('hh:nn am/pm')]

Posted by member 180603 on 2004-07-15 20:40:26 link

does anyone know how to make the "seconds" a smaller and different text than the "minute", and the "hour"?

Posted by member 35 on 2004-07-15 22:55:48 link

either you create another label just for the seconds and set its font size smaller, or use the html syntax in xlabel, either way you'll have to read the docs.

Posted by member 180603 on 2004-07-16 11:05:19 link

thank you, can you tell me which doc/docs specifically? i have been trying to figure this one out for a while. i would really appreciate the help. thanks

Posted by member 180603 on 2004-07-16 11:10:29 link

i looked in xlabel and i am still having a hard time, can anyone provide an exmple if my current task bar clock settings look like this:

*Label TimeLabel
;Label Main Settings
TimeLabelAddToGroup "TaskBar"
TimeLabelX "-114"
TimeLabelY "-40"
TimeLabelWidth "99"
TimeLabelHeight "25"
TimeLabelImage "timeLabel.png"
;Label Text Settings
if mode24
TimeLabelText "[time('ii : nn : ss')]"
else
TimeLabelText "[time('h : nn' )]"

endif
TimeLabelFont "standard 07_53"
TimeLabelFontHeight "19"
TimeLabelVertAlign "bottom"
;Event Settings
TimeLabelOnLeftClickDown control.exe timedate.cpl
TimeLabelOnRightClickDown !PopupClock

Posted by member 134480 on 2004-07-17 14:43:10 link

As sryo said, you could simply use the HTML syntax in xLabel (it's in the "Configuration" section of the doc for xlabellight, I imagine it would be the same in xlabel).

TimeLabelText "<font face="font one" size=1&gt[time('ii : nn :')]&lt/font&gt <font face="font two" size=2&gt[time('ss')]&lt/font&gt"


...and so on and so forth, it's not terribly complicated

Posted by member 180603 on 2004-07-17 21:13:58 link

ok here is my changed code... but there is still a problem

[edit: for some reason i am not being able to type my full code, i applied the changes as was instructed in the post above this one. In the place of "font one" i used the font standard 07-53]

*Label TimeLabel
;Label Main Settings
TimeLabelAddToGroup "TaskBar"
TimeLabelX "-114"
TimeLabelY "-40"
TimeLabelWidth "99"
TimeLabelHeight "25"
TimeLabelImage "timeLabel.png"

if mode24

TimeLabelText " [time('ii : nn')] [time(' ss')]"
else
TimeLabelText " [time('hh : nn')] [time(' ss')]"
endif
TimeLabelFont "standard 07_53"
TimeLabelFontHeight "19"
TimeLabelVertAlign "bottom"
;Event Settings
TimeLabelOnLeftClickDown control.exe timedate.cpl
TimeLabelOnRightClickDown !PopupClock


The issue is this, as you can see the "timelabelfont" in xlabel is set as "standard 07_53". This font works as it as told and was the font of my clock previously. When i use the font in the new html syntax line, it does not work and it gives me something that look like arial. To test this i use another type 1 font, a true type font, and an open type font and the result is correct. that specific font does not show up, as well as a few others. If i switch the default "font", they all show up. Can anyone help?

Posted by member 32550 on 2004-07-18 07:19:46 link

Hi, If I remember correctly you must use ' Quotes not " around the FontName.

Posted by member 134480 on 2004-07-18 11:28:27 link

To be able to post < and > in your messages you've got to use the html codes < and >. If it's defaulting to Arial perhaps you've misspelled the font name, or it's not installed.

Posted by member 180603 on 2004-07-18 16:54:37 link

i got what i was looking for. I made sure as to not make mistakes as easy as those. thanks for the help anyway.
i fixed it by making 2 labels and splitting the graphic background between then minutes and seconds. here is the code
*Label TimeLabel
;Label Main Settings
TimeLabelAddToGroup "TaskBar"
TimeLabelX "-114"
TimeLabelY "-40"
TimeLabelWidth "70"
TimeLabelHeight "29"

TimeLabelImage "timeLableleft.png"


if mode24
TimeLabelText "[time('ii : nn')]"
else
TimeLabelText "[time('hh : nn' )]"

endif

TimeLabelFont "hooge 05_55 cyr2"
TimeLabelFontHeight "25"
TimeLabelVertAlign "bottom"
TimeLabelleftBorder "8"
TimeLabelAlphaTransparency "195"
;Event Settings
TimeLabelOnLeftClickDown control.exe timedate.cpl
TimeLabelOnRightClickDown !PopupClock


*Label TimeLabel2
;Label Main Settings
TimeLabel2AddToGroup "TaskBar"
TimeLabel2X "-45"
TimeLabel2Y "-40"
TimeLabel2Width "30"
TimeLabel2Height "25"

TimeLabel2TransparencyMode "FAKE"
TimeLabel2Image "timelableright.png"

;Label Text Settings

if mode24
TimeLabel2Text "[time('ss')]"
else
TimeLabel2Text "[time('ss')]"


endif
FontSmoothing true
TimeLabel2Font "hooge 05_55 cyr2"
TimeLabel2FontHeight "14"
TimeLabel2VertAlign "bottom"
TimeLabel2rightBorder "2"
TimeLabel2AlphaTransparency "195"


here is a pic of the final product
http://img70.photobucket.com/albums/v40/oneunshamed/desktopclock.jpg