home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gkdemo.zip / GKFILES.SET / CLOCK.GKR < prev    next >
Text File  |  1994-12-09  |  1KB  |  72 lines

  1. #
  2. # Clock demo
  3.  
  4. !include "gui-kit.gkr"
  5.  
  6. ObjectGroup "ClockGroup" {
  7.  
  8.     Object GfxContainer "Clock" {
  9.  
  10.         # The following objects are built in increasing Z-order
  11.         Object GfxImage "ClockFace" {
  12.             ImageFile    "aclock.bmp"
  13.         }
  14.  
  15.         # The shape of Hour/MinuteHand is set from
  16.         # within the program
  17.         Object GfxLine    "HourHandShadow" {
  18.             GfxObj.ForegroundColor    "Gray30"
  19.             GfxObj.FillStyle        Solid
  20.         }
  21.  
  22.         Object GfxLine    "HourHand" {
  23.             GfxObj.ForegroundColor    "SeaGreen"
  24.             GfxObj.FillStyle        Solid
  25.         }
  26.  
  27.         Object GfxLine    "HourHandOutline" { 
  28.             GfxObj.LineWidth    3
  29.         }
  30.  
  31.         Object GfxLine    "MinuteHandShadow" {
  32.             GfxObj.ForegroundColor    "Gray30"
  33.             GfxObj.FillStyle        Solid
  34.         }
  35.  
  36.         Object GfxLine    "MinuteHand" { 
  37.             GfxObj.ForegroundColor    "SeaGreen"
  38.             GfxObj.FillStyle        Solid
  39.         }
  40.  
  41.         Object GfxLine    "MinuteHandOutline" {
  42.             GfxObj.LineWidth    3
  43.         }
  44.  
  45.         Object GfxLine    "SecondHand" { 
  46.             GfxObj.LineWidth    3
  47.             GfxObj.ForegroundColor    "Red"
  48.             GfxObj.FillStyle        Solid
  49.         }
  50.  
  51.         Object GfxImage "ClockHandMiddle" {
  52.             ImageFile    "aclkmid.xpm"
  53.             Origin        "190, 181"
  54.             TransparentColor    "Red"
  55.         }
  56.     }
  57.  
  58.     Object Frame "ClockFrame" {
  59.         Title    "Clock Demo"
  60.         Window.BackgroundGfxObj "Clock"
  61.         Window.Width        412
  62.         Window.Height        388
  63.         Window.DoubleBuffer    True
  64.     }
  65.  
  66.     Object Timer "Timer" {
  67.         NotifyProc    "TimerNotify"
  68.         Interval    1000
  69.     }
  70. }
  71.