Author Topic: Clock Size  (Read 975 times)

Fuzzy Logic

  • Newbie
  • *
  • Posts: 1
    • View Profile
Clock Size
« on: September 10, 2012, 08:28:16 AM »
Hiya...just done my first layout...nothing flashy...just a couple of different fonts etc. but something's really bugging me.
As the clock is counting down it changes the size of the columns depending on how wide the digits are. For example, 00:00 makes a wide column but 11:11 makes it thin. This means the columns keep jumping about in size and is pretty off-putting to look at. Any ideas why this happens and how to stop it?

Stuart Murray

  • Hero Member
  • *****
  • Posts: 540
    • View Profile
Re: Clock Size
« Reply #1 on: September 10, 2012, 09:10:26 AM »
On the cell size you can dictate a fixed size (height/width etc) for the clock.  Best to play around with it to find a size that suits you, however the draw back is if you change your screen resolution, for example from 1200x800 to 1024x768 the cell size will not change unless you create the layout and save it for each screen resolution you will be using.

Regards
Stuart
Stuart Murray

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Clock Size
« Reply #2 on: September 10, 2012, 10:36:48 AM »
Like Stuart said, you'll need to specify a fixed size for the cell.  Since the font you are using to display your clock is proportional (each character only takes up as much space as it needs, as opposed to a fixed-width font where every character takes the same amount of space, like this), the width necessary to display it will change every time the clock changes.  You could use a proportional font (Courier New is the most common), or set the cell to a specific width so it never uses less space.  It's easy to do, just set the width value of the cell.  The hard part is trying to figure out how wide it needs to be.  You can take a screenshot then use an image processing application to measure how wide it needs to be, or take some educated guesses and try them out until one works for you.