home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / ct_ocx / ct_sched.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-01-01  |  12.5 KB  |  411 lines

  1. VERSION 4.00
  2. Begin VB.Form w_sched_demo 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "ctSched and ctRuler (Scheduling Bar and Ruler) Demo"
  5.    ClientHeight    =   5940
  6.    ClientLeft      =   1140
  7.    ClientTop       =   1515
  8.    ClientWidth     =   9300
  9.    Height          =   6345
  10.    Icon            =   "ct_sched.frx":0000
  11.    Left            =   1080
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MDIChild        =   -1  'True
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   5940
  17.    ScaleWidth      =   9300
  18.    ShowInTaskbar   =   0   'False
  19.    Top             =   1170
  20.    Width           =   9420
  21.    Begin VB.CommandButton Command1 
  22.       Caption         =   "E&xit"
  23.       Height          =   435
  24.       Left            =   7800
  25.       TabIndex        =   11
  26.       Top             =   5220
  27.       Width           =   1095
  28.    End
  29.    Begin FrameLibCtl.ctFrame ctFrame1 
  30.       Align           =   1  'Align Top
  31.       Height          =   615
  32.       Left            =   0
  33.       TabIndex        =   6
  34.       Top             =   0
  35.       Width           =   9300
  36.       _version        =   65536
  37.       _extentx        =   16404
  38.       _extenty        =   1085
  39.       _stockprops     =   32
  40.       showtop         =   0   'False
  41.       showright       =   0   'False
  42.       showleft        =   0   'False
  43.       backcolor       =   12632256
  44.       Begin VB.Label Label2 
  45.          Caption         =   "Time :"
  46.          BeginProperty Font 
  47.             name            =   "MS Sans Serif"
  48.             charset         =   0
  49.             weight          =   400
  50.             size            =   9.75
  51.             underline       =   0   'False
  52.             italic          =   0   'False
  53.             strikethrough   =   0   'False
  54.          EndProperty
  55.          Height          =   315
  56.          Left            =   240
  57.          TabIndex        =   10
  58.          Top             =   180
  59.          Width           =   735
  60.       End
  61.       Begin RulerLibCtl.ctRuler ctRuler1 
  62.          Height          =   600
  63.          Left            =   1440
  64.          TabIndex        =   7
  65.          Top             =   0
  66.          Width           =   7395
  67.          _version        =   65536
  68.          _extentx        =   13044
  69.          _extenty        =   1058
  70.          _stockprops     =   68
  71.          maxvalue        =   144
  72.          innerleft       =   1
  73.          innerright      =   1
  74.          showmax         =   12
  75.          showtype        =   3
  76.          bordertype      =   1
  77.          textposition    =   0
  78.          linethreed      =   -1  'True
  79.       End
  80.    End
  81.    Begin VB.VScrollBar VScroll1 
  82.       Height          =   2895
  83.       Left            =   8775
  84.       TabIndex        =   8
  85.       Top             =   1980
  86.       Width           =   255
  87.    End
  88.    Begin SchedLib.ctSched ctSched6 
  89.       Height          =   495
  90.       Left            =   1440
  91.       TabIndex        =   5
  92.       Top             =   4380
  93.       Width           =   7335
  94.       _version        =   65536
  95.       _extentx        =   12938
  96.       _extenty        =   873
  97.       _stockprops     =   78
  98.       innercolor      =   14745599
  99.       maxvalue        =   144
  100.       innerbottom     =   10
  101.       innerleft       =   1
  102.       innerright      =   1
  103.       innertop        =   10
  104.    End
  105.    Begin SchedLib.ctSched ctSched5 
  106.       Height          =   495
  107.       Left            =   1440
  108.       TabIndex        =   4
  109.       Top             =   3900
  110.       Width           =   7335
  111.       _version        =   65536
  112.       _extentx        =   12938
  113.       _extenty        =   873
  114.       _stockprops     =   78
  115.       caption         =   "Special Services"
  116.       barcolor        =   33023
  117.       alignment       =   2
  118.       maxvalue        =   144
  119.       innerbottom     =   7
  120.       innerleft       =   1
  121.       innerright      =   1
  122.       innertop        =   7
  123.       barborder       =   -1  'True
  124.    End
  125.    Begin SchedLib.ctSched ctSched4 
  126.       Height          =   495
  127.       Left            =   1440
  128.       TabIndex        =   3
  129.       Top             =   3420
  130.       Width           =   7335
  131.       _version        =   65536
  132.       _extentx        =   12938
  133.       _extenty        =   873
  134.       _stockprops     =   78
  135.       picturestart    =   "ct_sched.frx":030A
  136.       pictureend      =   "ct_sched.frx":0624
  137.       maxvalue        =   144
  138.       picendyoffset   =   2
  139.       picstartyoffset =   2
  140.       innerbottom     =   16
  141.       innerleft       =   1
  142.       innerright      =   1
  143.       tipextension    =   4
  144.       barborder       =   -1  'True
  145.       picstartfront   =   -1  'True
  146.    End
  147.    Begin SchedLib.ctSched ctSched3 
  148.       Height          =   495
  149.       Left            =   1440
  150.       TabIndex        =   2
  151.       Top             =   2940
  152.       Width           =   7335
  153.       _version        =   65536
  154.       _extentx        =   12938
  155.       _extenty        =   873
  156.       _stockprops     =   78
  157.       barcolor        =   192
  158.       maxvalue        =   144
  159.       innerbottom     =   12
  160.       innerleft       =   1
  161.       innerright      =   1
  162.       innertop        =   12
  163.    End
  164.    Begin TextLib.ctText ctText6 
  165.       Height          =   495
  166.       Left            =   120
  167.       TabIndex        =   18
  168.       Top             =   4380
  169.       Width           =   1335
  170.       _version        =   65536
  171.       _extentx        =   2355
  172.       _extenty        =   873
  173.       _stockprops     =   70
  174.       caption         =   "Employee #6"
  175.       bordertype      =   3
  176.       alignment       =   2
  177.    End
  178.    Begin TextLib.ctText ctText5 
  179.       Height          =   495
  180.       Left            =   120
  181.       TabIndex        =   17
  182.       Top             =   3900
  183.       Width           =   1335
  184.       _version        =   65536
  185.       _extentx        =   2355
  186.       _extenty        =   873
  187.       _stockprops     =   70
  188.       caption         =   "Employee #5"
  189.       bordertype      =   3
  190.       alignment       =   2
  191.    End
  192.    Begin TextLib.ctText ctText4 
  193.       Height          =   495
  194.       Left            =   120
  195.       TabIndex        =   16
  196.       Top             =   3420
  197.       Width           =   1335
  198.       _version        =   65536
  199.       _extentx        =   2355
  200.       _extenty        =   873
  201.       _stockprops     =   70
  202.       caption         =   "Employee #4"
  203.       bordertype      =   3
  204.       alignment       =   2
  205.    End
  206.    Begin TextLib.ctText ctText3 
  207.       Height          =   495
  208.       Left            =   120
  209.       TabIndex        =   15
  210.       Top             =   2940
  211.       Width           =   1335
  212.       _version        =   65536
  213.       _extentx        =   2355
  214.       _extenty        =   873
  215.       _stockprops     =   70
  216.       caption         =   "Employee #3"
  217.       bordertype      =   3
  218.       alignment       =   2
  219.    End
  220.    Begin SchedLib.ctSched ctSched2 
  221.       Height          =   495
  222.       Left            =   1440
  223.       TabIndex        =   1
  224.       Top             =   2460
  225.       Width           =   7335
  226.       _version        =   65536
  227.       _extentx        =   12938
  228.       _extenty        =   873
  229.       _stockprops     =   78
  230.       caption         =   "A.R. Project"
  231.       forecolor       =   16777215
  232.       maxvalue        =   144
  233.       innerleft       =   1
  234.       innerright      =   1
  235.    End
  236.    Begin TextLib.ctText ctText2 
  237.       Height          =   495
  238.       Left            =   120
  239.       TabIndex        =   14
  240.       Top             =   2460
  241.       Width           =   1335
  242.       _version        =   65536
  243.       _extentx        =   2355
  244.       _extenty        =   873
  245.       _stockprops     =   70
  246.       caption         =   "Employee #2"
  247.       bordertype      =   3
  248.       alignment       =   2
  249.    End
  250.    Begin SchedLib.ctSched ctSched1 
  251.       Height          =   495
  252.       Left            =   1440
  253.       TabIndex        =   0
  254.       Top             =   1980
  255.       Width           =   7335
  256.       _version        =   65536
  257.       _extentx        =   12938
  258.       _extenty        =   873
  259.       _stockprops     =   78
  260.       picturestart    =   "ct_sched.frx":093E
  261.       pictureend      =   "ct_sched.frx":0C58
  262.       barend          =   60
  263.       barstart        =   20
  264.       maxvalue        =   144
  265.       picendyoffset   =   2
  266.       picstartyoffset =   2
  267.       innerbottom     =   16
  268.       innerleft       =   1
  269.       innerright      =   1
  270.       tipextension    =   4
  271.       barborder       =   -1  'True
  272.    End
  273.    Begin TextLib.ctText ctText1 
  274.       Height          =   495
  275.       Left            =   120
  276.       TabIndex        =   13
  277.       Top             =   1980
  278.       Width           =   1335
  279.       _version        =   65536
  280.       _extentx        =   2355
  281.       _extenty        =   873
  282.       _stockprops     =   70
  283.       caption         =   "Employee #1"
  284.       bordertype      =   3
  285.       alignment       =   2
  286.    End
  287.    Begin VB.Label Label3 
  288.       Caption         =   $"ct_sched.frx":0F72
  289.       Height          =   555
  290.       Left            =   180
  291.       TabIndex        =   12
  292.       Top             =   5100
  293.       Width           =   5535
  294.    End
  295.    Begin VB.Label Label1 
  296.       Alignment       =   2  'Center
  297.       Caption         =   $"ct_sched.frx":1003
  298.       ForeColor       =   &H00800000&
  299.       Height          =   975
  300.       Left            =   240
  301.       TabIndex        =   9
  302.       Top             =   780
  303.       Width           =   8655
  304.    End
  305. Attribute VB_Name = "w_sched_demo"
  306. Attribute VB_Creatable = False
  307. Attribute VB_Exposed = False
  308. Private Sub Command1_Click()
  309.    Unload w_sched_demo
  310. End Sub
  311. Private Sub ctSched1_BarChange(nStartBar As Integer, nEndBar As Integer)
  312.    ctRuler1.MarkerValue1 = nStartBar
  313.    ctRuler1.MarkerValue2 = nEndBar
  314. End Sub
  315. Private Sub ctSched1_GotFocus()
  316.    If ctSched1.BarStart > 0 Then
  317.       ctRuler1.MarkerValue1 = ctSched1.BarStart
  318.    End If
  319.    If ctSched1.BarEnd > 0 Then
  320.       ctRuler1.MarkerValue2 = ctSched1.BarEnd
  321.    End If
  322.    ctText1.FontBold = True
  323. End Sub
  324. Private Sub ctSched1_LostFocus()
  325.    ctText1.FontBold = False
  326. End Sub
  327. Private Sub ctSched2_BarChange(nStartBar As Integer, nEndBar As Integer)
  328.    ctRuler1.MarkerValue1 = nStartBar
  329.    ctRuler1.MarkerValue2 = nEndBar
  330. End Sub
  331. Private Sub ctSched2_GotFocus()
  332.    If ctSched2.BarStart > 0 Then
  333.       ctRuler1.MarkerValue1 = ctSched2.BarStart
  334.    End If
  335.    If ctSched2.BarEnd > 0 Then
  336.       ctRuler1.MarkerValue2 = ctSched2.BarEnd
  337.    End If
  338.    ctText2.FontBold = True
  339. End Sub
  340. Private Sub ctSched2_LostFocus()
  341.    ctText2.FontBold = False
  342. End Sub
  343. Private Sub ctSched3_BarChange(nStartBar As Integer, nEndBar As Integer)
  344.    ctRuler1.MarkerValue1 = nStartBar
  345.    ctRuler1.MarkerValue2 = nEndBar
  346. End Sub
  347. Private Sub ctSched3_GotFocus()
  348.    If ctSched3.BarStart > 0 Then
  349.       ctRuler1.MarkerValue1 = ctSched3.BarStart
  350.    End If
  351.    If ctSched3.BarEnd > 0 Then
  352.       ctRuler1.MarkerValue2 = ctSched3.BarEnd
  353.    End If
  354.    ctText3.FontBold = True
  355. End Sub
  356. Private Sub ctSched3_LostFocus()
  357.    ctText3.FontBold = False
  358. End Sub
  359. Private Sub ctSched4_BarChange(nStartBar As Integer, nEndBar As Integer)
  360.    ctRuler1.MarkerValue1 = nStartBar
  361.    ctRuler1.MarkerValue2 = nEndBar
  362. End Sub
  363. Private Sub ctSched4_GotFocus()
  364.    If ctSched4.BarStart > 0 Then
  365.       ctRuler1.MarkerValue1 = ctSched4.BarStart
  366.    End If
  367.    If ctSched4.BarEnd > 0 Then
  368.       ctRuler1.MarkerValue2 = ctSched4.BarEnd
  369.    End If
  370.    ctText4.FontBold = True
  371. End Sub
  372. Private Sub ctSched4_LostFocus()
  373.    ctText4.FontBold = False
  374. End Sub
  375. Private Sub ctSched5_BarChange(nStartBar As Integer, nEndBar As Integer)
  376.    ctRuler1.MarkerValue1 = nStartBar
  377.    ctRuler1.MarkerValue2 = nEndBar
  378. End Sub
  379. Private Sub ctSched5_GotFocus()
  380.    If ctSched5.BarStart > 0 Then
  381.       ctRuler1.MarkerValue1 = ctSched5.BarStart
  382.    End If
  383.    If ctSched5.BarEnd > 0 Then
  384.       ctRuler1.MarkerValue2 = ctSched5.BarEnd
  385.    End If
  386.    ctText5.FontBold = True
  387. End Sub
  388. Private Sub ctSched5_LostFocus()
  389.    ctText5.FontBold = False
  390. End Sub
  391. Private Sub ctSched6_BarChange(nStartBar As Integer, nEndBar As Integer)
  392.    ctRuler1.MarkerValue1 = nStartBar
  393.    ctRuler1.MarkerValue2 = nEndBar
  394. End Sub
  395. Private Sub ctSched6_GotFocus()
  396.    If ctSched6.BarStart > 0 Then
  397.       ctRuler1.MarkerValue1 = ctSched6.BarStart
  398.    End If
  399.    If ctSched6.BarEnd > 0 Then
  400.       ctRuler1.MarkerValue2 = ctSched6.BarEnd
  401.    End If
  402.    ctText6.FontBold = True
  403. End Sub
  404. Private Sub ctSched6_LostFocus()
  405.    ctText6.FontBold = False
  406. End Sub
  407. Private Sub Form_Load()
  408.    ' Center the window on the screen
  409.    Move (Screen.Width - Width) / 2, (Screen.Height - Height) * 0.25
  410. End Sub
  411.