Abcdefmonkey commented on a Page, Digital Clock  -  Dec 24, 2011

[EDIT: This is to configure xdesoto's images to work with pball's coding (for a slightly bigger digital clock)]

I like pball's version a lot better if I must say so. However, I had to tweak it just a bit. When I ran the code it cut off the bottom of the numbers when displayed. So i changed it to make the height stretch just enough to show all the numbers fully.

If anyone has the same issue just change this line

  toolbar -tpu clock "" @clock 0 0 $iif($1 == 12,111,82) 16

to this

  toolbar -tpu clock "" @clock 0 0 $iif($1 == 12,111,82) 20

And


if (!$window(@clock)) window -nBj2kpw0 +f @clock 0 0 $iif($1 == 12,117,88) 22
  if (!$toolbar(clock)) toolbar -aux clock "" @clock 0 0 $iif($1 == 12,111,82) 16

to

if (!$window(@clock)) window -nBj2kpw0 +f @clock 0 0 $iif($1 == 12,117,88) 25
  if (!$toolbar(clock)) toolbar -aux clock "" @clock 0 0 $iif($1 == 12,111,82) 30

Again, this is using pball's code.

Edit: I'm going to tinker with the widths on the toolbar, because quite often the whole number doesn't show for numbers like 1 and 4. :P But overall, it works like it should. +1

Here's what it looked like before I changed it a bit:

Image

After:

Image

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.