home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
gkdemo.zip
/
GKFILES.SET
/
CLOCK.GKR
< prev
next >
Wrap
Text File
|
1994-12-09
|
1KB
|
72 lines
#
# Clock demo
#
!include "gui-kit.gkr"
ObjectGroup "ClockGroup" {
Object GfxContainer "Clock" {
# The following objects are built in increasing Z-order
Object GfxImage "ClockFace" {
ImageFile "aclock.bmp"
}
# The shape of Hour/MinuteHand is set from
# within the program
Object GfxLine "HourHandShadow" {
GfxObj.ForegroundColor "Gray30"
GfxObj.FillStyle Solid
}
Object GfxLine "HourHand" {
GfxObj.ForegroundColor "SeaGreen"
GfxObj.FillStyle Solid
}
Object GfxLine "HourHandOutline" {
GfxObj.LineWidth 3
}
Object GfxLine "MinuteHandShadow" {
GfxObj.ForegroundColor "Gray30"
GfxObj.FillStyle Solid
}
Object GfxLine "MinuteHand" {
GfxObj.ForegroundColor "SeaGreen"
GfxObj.FillStyle Solid
}
Object GfxLine "MinuteHandOutline" {
GfxObj.LineWidth 3
}
Object GfxLine "SecondHand" {
GfxObj.LineWidth 3
GfxObj.ForegroundColor "Red"
GfxObj.FillStyle Solid
}
Object GfxImage "ClockHandMiddle" {
ImageFile "aclkmid.xpm"
Origin "190, 181"
TransparentColor "Red"
}
}
Object Frame "ClockFrame" {
Title "Clock Demo"
Window.BackgroundGfxObj "Clock"
Window.Width 412
Window.Height 388
Window.DoubleBuffer True
}
Object Timer "Timer" {
NotifyProc "TimerNotify"
Interval 1000
}
}