Configure Clock Example

Our goal is to have following clock configured for horizontal task bar:

We will start from default YTrayClock configuration:

Step 1 - add one more column to the left

Activate options with middle mouse button click (click with mouse wheel if you have no middle button) and select <Options> (or start YTrayClockOptions.exe).

Switch to clock tab and add one more column to the left. Adding a column is simple, but one should know how to do it.

  1. Click on "col 0" in a table (it will select entire column)
  2. Click on button "+Col<" which will add a column to the left of currently selected column

Step 2 - edit cells and add caps/scroll/num lock indicators

Now that we have one more column we can edit cells to display keyboard indicators

  1. Click on cell which is row 0 / col 0 and edit text by putting A there (A means caps lock indicator).
  2. Click on cell which is row 1 / col 0 and edit text by putting NS there (N means num lock indicator, S means scroll lock).

All possible special characters are displayed to the right (in Format characters list).

If font is not specified then it has some defaults, so if we want to make it different you can specify some special font (press button to change font).

There two more things to consider.

  1. You can move position where cell is displayed by increasing/decreasing values in Above/Below/Left/Right (in pixels), just play with this values
  2. Having A and NS in a same column will normally not align if A and N only are displayed (no scroll lock), because "A" and "N " will be centered, so either select left alignment or type A< and NS<

In general format character '<' and '>' are such that everything to the left of charcter '<' is left aligned, to the right of character '>' is right aligned and everything in between this characters is centered

Step 3 - add time zone (for example Singapore)

There is no default list with timezone names in windows, so we have to specify somehow which time zone has what abbreviation. We will do that only for timezones which we need. Switch to Time Zones tab and then click <add tzone> button.

You will get a dialog box, where you have to enter and abbreviation for time zone you want to use. You will need it later inside clock tab, so select something shorter (it will not be shown anywhere, so you can even use "t" for example).

For this example enter sgp as abbreviation and from combo box (GMT+08:00) Kuala Lumpur, Singapore

Press OK

Now we have a definition for Singapure timezone which we can use.

Step 4 - show this timezone in clock

Similar to step 1. Click on row 1 (this will select entire row) and then click on +LNv button (which will add one more line below currently selected line.

Now that we have 3 rows - click on cell which is on row 2 / col 1 and edit text to be: 'SGP' @{sgp}HH:mm

if you want, you can add some other timezone there too, for example add a time zone for Mexico with abbreviation mxc then you can specify as a text:

'Mexico' @{mxc}HH:mm '/' 'SGP' @{sgp}HH:mm

This will display Mexico and Singapore time on a same line (a little bit bigger, but for example is good enough)

Few other things to consider. If this 3 lines does not fit then you can reduce font size, move entire clock up (if there is a space), by changing "Above" for the entire clock (bottom right corner has "Space around clock"). Settings can be negative (play with them). When clock moves up then you may want to move down some of the columns (change Above for the row 0 / cell ?).

Alternative Step 4 - show this timezone in clock

If in step 4 there is no enough space to put one more line (3-rd line with additional time) then you can make normal time smaller and add additional time there. So if you have done step 4 - just remove last line (if not skip this part), by:

  1. click on row 2 (entire line is selected)
  2. click on <Del Line> button

So now you have just two lines and you can click on cell whith time (HH:mm) and reduce the font size.

Then you can click on cell below it (so cell row 1/col 1) and enter: @{sgp}HH:mm edit the font for it and change it to smaller size.

Adding two time zones could be done by changing text to: @{mxc}HH:mm<>@{sgp}HH:mm


Created with Ywiki
Free Web Hosting