Index of /atarilibrary/atari_cd04/UHR/DCLOCK

      Name                    Last modified       Size  Description

[DIR] Parent Directory 11-May-2007 20:58 - [TXT] COPYING 01-Jul-1993 12:38 12k [TXT] DCLOCK.ACC 25-Apr-1993 16:18 61k [TXT] DCLOCKF.ACC 25-Apr-1993 16:13 61k


                DCLOCK  1.0
                25-Apr-1993

   Credits and disclaimers:
    This is my port of XDALICLOCK to GEM using C++. It is based on the
    version written by Jamie Zawinski, which is based on the Alto/Macintosh
    programs written by Steve Capps.

    It does not support color cycling, "shape" extensions, command line
    arguments, or alternate fonts.

    This clock is not accurate enough for precision measurements. It is
    for entertainment only.

    I have added several types of alternate digit transitions, though
        none are as interesting as the "melting" from XDALICLOCK.


   What's included:
    Two slightly different versions of this desk accessory are provided:

        dclock.acc  - slow version; computes "melting" digit 
                                  transitions as needed then forgets them.

        dclockf.acc - fast version; uses more memory than the
                  slow version, but it changes the digits
                  faster since it computes and stores the
                  most common "melting" transitions 
                                  (digit -> zero and digit -> ((digit+1)mod10))
                  NOTE: this version takes awhile to start
                                        due to the time it takes to precompute
                                        the "melting" transitions

    I have tested both versions on a 0.5Meg 520STfm running TOS 1.0 and 
        on a 8Meg(4ST+4TT) TT030 running TOS 3.06. DCLOCKF.ACC runs out of
        memory in TT Medium resolution. You might be able to increase the
    stack size using FIXSTK.TTP (found elsewhere in atari.archives) to
        get it to run provided you have enough memory. DCLOCK.ACC does run
    in TT Medium resolution.


    Commands:
    Left mouse button  - position the mouse over the work area of 
                             the window then press and hold to see 
                             the date; release to return to time 
                 display

    Right mouse button - position the mouse over the work area of
                 the window then press the button, hold 
                             it for a second, the release it. Toggles 
                             between 12 and 24 hour format.
        
    Size box       - click on the full box (left button) to
                 toggle between a six digit display (time
                             as hours:minutes:seconds; date as
                             month-day-year) and a four digit display
                             (time as hours:minutes; date as month-day)

    C, c           - closes the window, same as close box

    digit              - directly select a digit transition mode
                0 - instant change
                1 - melting digits (as in XDALICLOCK)
                2 - vertical scroll
                3 - horizontal scroll
                4 - alternate vertical & horiz. scroll
                5 - inside-out, outside-in
                6 - slide on/off lower right corner
                7 - shrinks
                8 - shrink/expand with trailers
                9 - shrink/expand

    Space bar      - if DCLOCK is the top window, cycles 
                 forward through the different types of 
                 digit transitions.

    B, b           - if DCLOCK is the top window, cycles
                 backward through the different types of 
                 digit transitions.

    Return             - if DCLOCK is the top window, for digit 
                             transition modes which have a direction, 
                 toggles the direction
        

    Changes I may make if I have the time:
      o Allow setting of time.
      o AM/PM indicator for 12 hour format.
      o Color cycling for color modes.
      o Use normal screen font for display.
      o Use a setup file which is read by the accessory when it
            starts. This could be used to set the initial screen position
            of the clock when it is first openned, the time format (12/24),
            the number of digits (4/6), and the digit transition type.



    If you have any problems or comments, send them to:
        US Mail:  Robert Adam II
                  8029-B Trapier Ave.
                  New Orleans, LA 70127

        Internet: rma@uno.edu

    The source code is available upon request.