home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Calendar_o2043231182007.psc / frmDetails.frm < prev    next >
Text File  |  2006-11-26  |  25KB  |  763 lines

  1. VERSION 5.00
  2. Begin VB.Form frmDetails 
  3.    AutoRedraw      =   -1  'True
  4.    BackColor       =   &H00FFFFFF&
  5.    BorderStyle     =   0  '¿Sª│«╪╜u
  6.    Caption         =   "Form1"
  7.    ClientHeight    =   4095
  8.    ClientLeft      =   0
  9.    ClientTop       =   0
  10.    ClientWidth     =   5775
  11.    ControlBox      =   0   'False
  12.    BeginProperty Font 
  13.       Name            =   "Tahoma"
  14.       Size            =   8.25
  15.       Charset         =   0
  16.       Weight          =   400
  17.       Underline       =   0   'False
  18.       Italic          =   0   'False
  19.       Strikethrough   =   0   'False
  20.    EndProperty
  21.    LinkTopic       =   "Form1"
  22.    ScaleHeight     =   4095
  23.    ScaleWidth      =   5775
  24.    ShowInTaskbar   =   0   'False
  25.    Begin VB.ListBox LstTab 
  26.       Height          =   3255
  27.       IntegralHeight  =   0   'False
  28.       ItemData        =   "frmDetails.frx":0000
  29.       Left            =   120
  30.       List            =   "frmDetails.frx":000D
  31.       TabIndex        =   20
  32.       Top             =   480
  33.       Width           =   975
  34.    End
  35.    Begin VB.PictureBox picTab 
  36.       BackColor       =   &H00FFFFFF&
  37.       BorderStyle     =   0  '¿Sª│«╪╜u
  38.       Height          =   3255
  39.       Index           =   0
  40.       Left            =   1200
  41.       ScaleHeight     =   3255
  42.       ScaleWidth      =   4455
  43.       TabIndex        =   21
  44.       Top             =   480
  45.       Width           =   4455
  46.       Begin VB.CheckBox chkSticky 
  47.          Appearance      =   0  'Ñ¡¡▒
  48.          BackColor       =   &H80000005&
  49.          Caption         =   "Show a sticky note for this event on the desktop"
  50.          ForeColor       =   &H80000008&
  51.          Height          =   255
  52.          Left            =   120
  53.          TabIndex        =   4
  54.          Top             =   2880
  55.          Width           =   5295
  56.       End
  57.       Begin VB.TextBox txtDetails 
  58.          BeginProperty Font 
  59.             Name            =   "Tahoma"
  60.             Size            =   8.25
  61.             Charset         =   0
  62.             Weight          =   700
  63.             Underline       =   0   'False
  64.             Italic          =   0   'False
  65.             Strikethrough   =   0   'False
  66.          EndProperty
  67.          Height          =   1245
  68.          Left            =   960
  69.          MultiLine       =   -1  'True
  70.          ScrollBars      =   2  '½½¬╜▒▓╢b
  71.          TabIndex        =   3
  72.          Top             =   1440
  73.          Width           =   3495
  74.       End
  75.       Begin VB.TextBox txtAgenda 
  76.          BeginProperty Font 
  77.             Name            =   "Tahoma"
  78.             Size            =   8.25
  79.             Charset         =   0
  80.             Weight          =   700
  81.             Underline       =   0   'False
  82.             Italic          =   0   'False
  83.             Strikethrough   =   0   'False
  84.          EndProperty
  85.          Height          =   285
  86.          Left            =   960
  87.          TabIndex        =   1
  88.          Top             =   240
  89.          Width           =   3495
  90.       End
  91.       Begin VB.TextBox txtTime 
  92.          BeginProperty Font 
  93.             Name            =   "Tahoma"
  94.             Size            =   8.25
  95.             Charset         =   0
  96.             Weight          =   700
  97.             Underline       =   0   'False
  98.             Italic          =   0   'False
  99.             Strikethrough   =   0   'False
  100.          EndProperty
  101.          Height          =   285
  102.          Left            =   960
  103.          MultiLine       =   -1  'True
  104.          TabIndex        =   2
  105.          Top             =   840
  106.          Width           =   3495
  107.       End
  108.       Begin VB.Label Label1 
  109.          AutoSize        =   -1  'True
  110.          BackStyle       =   0  '│z⌐·
  111.          Caption         =   "Details for this event"
  112.          Height          =   195
  113.          Left            =   960
  114.          TabIndex        =   30
  115.          Top             =   1200
  116.          Width           =   1500
  117.       End
  118.       Begin VB.Image imgAppoint 
  119.          Appearance      =   0  'Ñ¡¡▒
  120.          BorderStyle     =   1  '│µ╜u⌐T⌐w
  121.          Height          =   735
  122.          Left            =   120
  123.          OLEDropMode     =   1  'ñΓ░╩
  124.          Picture         =   "frmDetails.frx":0033
  125.          Stretch         =   -1  'True
  126.          Top             =   480
  127.          Width           =   735
  128.       End
  129.       Begin VB.Label Label3 
  130.          AutoSize        =   -1  'True
  131.          BackStyle       =   0  '│z⌐·
  132.          Caption         =   "Event name:"
  133.          Height          =   195
  134.          Index           =   0
  135.          Left            =   960
  136.          TabIndex        =   23
  137.          Top             =   0
  138.          Width           =   915
  139.       End
  140.       Begin VB.Label Label2 
  141.          Alignment       =   1  '╛aÑk╣∩╗⌠
  142.          AutoSize        =   -1  'True
  143.          BackStyle       =   0  '│z⌐·
  144.          Caption         =   "Tagline:"
  145.          Height          =   195
  146.          Index           =   0
  147.          Left            =   1005
  148.          TabIndex        =   22
  149.          Top             =   600
  150.          Width           =   570
  151.       End
  152.    End
  153.    Begin VB.PictureBox picTab 
  154.       BackColor       =   &H00FFFFFF&
  155.       BorderStyle     =   0  '¿Sª│«╪╜u
  156.       Height          =   3255
  157.       Index           =   3
  158.       Left            =   1200
  159.       ScaleHeight     =   3255
  160.       ScaleWidth      =   4455
  161.       TabIndex        =   27
  162.       Top             =   480
  163.       Visible         =   0   'False
  164.       Width           =   4455
  165.    End
  166.    Begin VB.PictureBox picTab 
  167.       BackColor       =   &H00FFFFFF&
  168.       BorderStyle     =   0  '¿Sª│«╪╜u
  169.       Height          =   3255
  170.       Index           =   1
  171.       Left            =   1200
  172.       ScaleHeight     =   3255
  173.       ScaleWidth      =   4455
  174.       TabIndex        =   24
  175.       Top             =   480
  176.       Visible         =   0   'False
  177.       Width           =   4455
  178.       Begin VB.TextBox txtDate 
  179.          BeginProperty DataFormat 
  180.             Type            =   1
  181.             Format          =   "dd/MM/yyyy"
  182.             HaveTrueFalseNull=   0
  183.             FirstDayOfWeek  =   0
  184.             FirstWeekOfYear =   0
  185.             LCID            =   3076
  186.             SubFormatType   =   3
  187.          EndProperty
  188.          BeginProperty Font 
  189.             Name            =   "Tahoma"
  190.             Size            =   8.25
  191.             Charset         =   0
  192.             Weight          =   700
  193.             Underline       =   0   'False
  194.             Italic          =   0   'False
  195.             Strikethrough   =   0   'False
  196.          EndProperty
  197.          Height          =   285
  198.          Left            =   195
  199.          MultiLine       =   -1  'True
  200.          TabIndex        =   6
  201.          Top             =   360
  202.          Width           =   3495
  203.       End
  204.       Begin VB.CheckBox chkAlarmMe 
  205.          Appearance      =   0  'Ñ¡¡▒
  206.          BackColor       =   &H80000005&
  207.          Caption         =   "Alarm Me on"
  208.          ForeColor       =   &H80000008&
  209.          Height          =   255
  210.          Left            =   120
  211.          TabIndex        =   7
  212.          Top             =   840
  213.          Width           =   1215
  214.       End
  215.       Begin VB.TextBox txtAlarmTime 
  216.          BeginProperty Font 
  217.             Name            =   "Tahoma"
  218.             Size            =   8.25
  219.             Charset         =   0
  220.             Weight          =   700
  221.             Underline       =   0   'False
  222.             Italic          =   0   'False
  223.             Strikethrough   =   0   'False
  224.          EndProperty
  225.          Height          =   285
  226.          Left            =   240
  227.          MultiLine       =   -1  'True
  228.          TabIndex        =   8
  229.          Top             =   1200
  230.          Width           =   3615
  231.       End
  232.       Begin VB.Frame Frame1 
  233.          BackColor       =   &H00FFFFFF&
  234.          Caption         =   "This alarm should only alarm on"
  235.          Height          =   1575
  236.          Left            =   0
  237.          TabIndex        =   26
  238.          ToolTipText     =   "Choose only the days you want the alarm to sound."
  239.          Top             =   1680
  240.          Width           =   4455
  241.          Begin VB.CheckBox chkWeekDay 
  242.             Appearance      =   0  'Ñ¡¡▒
  243.             BackColor       =   &H00FFFFFF&
  244.             Caption         =   "Sun"
  245.             ForeColor       =   &H80000008&
  246.             Height          =   255
  247.             Index           =   1
  248.             Left            =   1800
  249.             TabIndex        =   18
  250.             Top             =   1200
  251.             Width           =   735
  252.          End
  253.          Begin VB.CheckBox chkWeekDay 
  254.             Appearance      =   0  'Ñ¡¡▒
  255.             BackColor       =   &H00FFFFFF&
  256.             Caption         =   "Sat"
  257.             ForeColor       =   &H80000008&
  258.             Height          =   255
  259.             Index           =   7
  260.             Left            =   960
  261.             TabIndex        =   17
  262.             Top             =   1200
  263.             Width           =   735
  264.          End
  265.          Begin VB.CheckBox chkWeekDay 
  266.             Appearance      =   0  'Ñ¡¡▒
  267.             BackColor       =   &H00FFFFFF&
  268.             Caption         =   "Fri"
  269.             ForeColor       =   &H80000008&
  270.             Height          =   255
  271.             Index           =   6
  272.             Left            =   960
  273.             TabIndex        =   15
  274.             Top             =   720
  275.             Width           =   735
  276.          End
  277.          Begin VB.CheckBox chkWeekDay 
  278.             Appearance      =   0  'Ñ¡¡▒
  279.             BackColor       =   &H00FFFFFF&
  280.             Caption         =   "Thu"
  281.             ForeColor       =   &H80000008&
  282.             Height          =   255
  283.             Index           =   5
  284.             Left            =   3480
  285.             TabIndex        =   14
  286.             Top             =   480
  287.             Width           =   735
  288.          End
  289.          Begin VB.CheckBox chkWeekDay 
  290.             Appearance      =   0  'Ñ¡¡▒
  291.             BackColor       =   &H00FFFFFF&
  292.             Caption         =   "Wed"
  293.             ForeColor       =   &H80000008&
  294.             Height          =   255
  295.             Index           =   4
  296.             Left            =   2640
  297.             TabIndex        =   13
  298.             Top             =   480
  299.             Width           =   735
  300.          End
  301.          Begin VB.CheckBox chkWeekDay 
  302.             Appearance      =   0  'Ñ¡¡▒
  303.             BackColor       =   &H00FFFFFF&
  304.             Caption         =   "Tue"
  305.             ForeColor       =   &H80000008&
  306.             Height          =   255
  307.             Index           =   3
  308.             Left            =   1800
  309.             TabIndex        =   12
  310.             Top             =   480
  311.             Width           =   735
  312.          End
  313.          Begin VB.CheckBox chkWeekDay 
  314.             Appearance      =   0  'Ñ¡¡▒
  315.             BackColor       =   &H00FFFFFF&
  316.             Caption         =   "Mon"
  317.             ForeColor       =   &H80000008&
  318.             Height          =   255
  319.             Index           =   2
  320.             Left            =   960
  321.             TabIndex        =   11
  322.             Top             =   480
  323.             Width           =   735
  324.          End
  325.          Begin VB.CheckBox chkChkAllWeeddays 
  326.             Appearance      =   0  'Ñ¡¡▒
  327.             BackColor       =   &H80000005&
  328.             Caption         =   "Weekdays"
  329.             ForeColor       =   &H80000008&
  330.             Height          =   255
  331.             Left            =   120
  332.             TabIndex        =   10
  333.             Top             =   240
  334.             Width           =   1575
  335.          End
  336.          Begin VB.CheckBox chkChkAllWeekends 
  337.             Appearance      =   0  'Ñ¡¡▒
  338.             BackColor       =   &H80000005&
  339.             Caption         =   "Weekends"
  340.             ForeColor       =   &H80000008&
  341.             Height          =   255
  342.             Left            =   120
  343.             TabIndex        =   16
  344.             Top             =   960
  345.             Width           =   1575
  346.          End
  347.       End
  348.       Begin VB.CommandButton btnSelTime 
  349.          Caption         =   "..."
  350.          Height          =   285
  351.          Left            =   3960
  352.          TabIndex        =   9
  353.          Top             =   1200
  354.          Width           =   495
  355.       End
  356.       Begin VB.Label Label2 
  357.          Alignment       =   1  '╛aÑk╣∩╗⌠
  358.          AutoSize        =   -1  'True
  359.          BackStyle       =   0  '│z⌐·
  360.          Caption         =   "Event Date"
  361.          Height          =   195
  362.          Index           =   1
  363.          Left            =   120
  364.          TabIndex        =   29
  365.          Top             =   120
  366.          Width           =   810
  367.       End
  368.    End
  369.    Begin VB.PictureBox picTab 
  370.       BackColor       =   &H00FFFFFF&
  371.       BorderStyle     =   0  '¿Sª│«╪╜u
  372.       Height          =   3255
  373.       Index           =   2
  374.       Left            =   1200
  375.       ScaleHeight     =   3255
  376.       ScaleWidth      =   4455
  377.       TabIndex        =   25
  378.       Top             =   480
  379.       Visible         =   0   'False
  380.       Width           =   4455
  381.       Begin VB.ListBox List1 
  382.          Height          =   2460
  383.          IntegralHeight  =   0   'False
  384.          ItemData        =   "frmDetails.frx":1AE5
  385.          Left            =   0
  386.          List            =   "frmDetails.frx":1B04
  387.          Style           =   1  '╢╡Ñ╪Ñ]ºt«╓¿·ñΦ╢⌠
  388.          TabIndex        =   19
  389.          Top             =   720
  390.          Width           =   4455
  391.       End
  392.       Begin VB.Label Label5 
  393.          BackStyle       =   0  '│z⌐·
  394.          Caption         =   "Choose times for reminders to show up. (not made yet)"
  395.          Height          =   255
  396.          Left            =   0
  397.          TabIndex        =   28
  398.          Top             =   240
  399.          Width           =   5295
  400.       End
  401.    End
  402.    Begin VB.Image Image2 
  403.       Height          =   165
  404.       Left            =   5160
  405.       Picture         =   "frmDetails.frx":1BC9
  406.       Top             =   3840
  407.       Width           =   525
  408.    End
  409.    Begin VB.Image btnApply 
  410.       Height          =   210
  411.       Left            =   5190
  412.       Picture         =   "frmDetails.frx":20AF
  413.       Stretch         =   -1  'True
  414.       ToolTipText     =   "Click to apply changes"
  415.       Top             =   75
  416.       Width           =   210
  417.    End
  418.    Begin VB.Image imgNothing 
  419.       Appearance      =   0  'Ñ¡¡▒
  420.       BorderStyle     =   1  '│µ╜u⌐T⌐w
  421.       Height          =   735
  422.       Left            =   5760
  423.       OLEDropMode     =   1  'ñΓ░╩
  424.       Picture         =   "frmDetails.frx":222B
  425.       Stretch         =   -1  'True
  426.       Top             =   1200
  427.       Visible         =   0   'False
  428.       Width           =   735
  429.    End
  430.    Begin VB.Image Image1 
  431.       Height          =   180
  432.       Left            =   90
  433.       Picture         =   "frmDetails.frx":3CDD
  434.       Top             =   90
  435.       Width           =   195
  436.    End
  437.    Begin VB.Label btnDelItem 
  438.       AutoSize        =   -1  'True
  439.       BackStyle       =   0  '│z⌐·
  440.       Caption         =   "Delete this item"
  441.       BeginProperty Font 
  442.          Name            =   "Tahoma"
  443.          Size            =   8.25
  444.          Charset         =   0
  445.          Weight          =   400
  446.          Underline       =   -1  'True
  447.          Italic          =   0   'False
  448.          Strikethrough   =   0   'False
  449.       EndProperty
  450.       ForeColor       =   &H00FF0000&
  451.       Height          =   195
  452.       Left            =   120
  453.       TabIndex        =   5
  454.       Top             =   3840
  455.       Width           =   1110
  456.    End
  457.    Begin VB.Label lblItemName2 
  458.       Alignment       =   2  '╕mññ╣∩╗⌠
  459.       BackStyle       =   0  '│z⌐·
  460.       Caption         =   "ItemName (4095 x 5775)"
  461.       BeginProperty Font 
  462.          Name            =   "Tahoma"
  463.          Size            =   8.25
  464.          Charset         =   0
  465.          Weight          =   700
  466.          Underline       =   0   'False
  467.          Italic          =   0   'False
  468.          Strikethrough   =   0   'False
  469.       EndProperty
  470.       Height          =   255
  471.       Left            =   360
  472.       TabIndex        =   0
  473.       ToolTipText     =   "Double Click to edit this field"
  474.       Top             =   60
  475.       Width           =   4815
  476.    End
  477.    Begin VB.Shape Shape1 
  478.       BorderColor     =   &H00808080&
  479.       Height          =   495
  480.       Index           =   1
  481.       Left            =   0
  482.       Top             =   0
  483.       Width           =   5775
  484.    End
  485.    Begin VB.Shape Shape1 
  486.       BorderColor     =   &H00808080&
  487.       Height          =   375
  488.       Index           =   0
  489.       Left            =   0
  490.       Top             =   0
  491.       Width           =   5775
  492.    End
  493.    Begin VB.Image btnEnd 
  494.       Height          =   210
  495.       Left            =   5475
  496.       Picture         =   "frmDetails.frx":3EFF
  497.       Stretch         =   -1  'True
  498.       ToolTipText     =   "Close this window"
  499.       Top             =   75
  500.       Width           =   210
  501.    End
  502. End
  503. Attribute VB_Name = "frmDetails"
  504. Attribute VB_GlobalNameSpace = False
  505. Attribute VB_Creatable = False
  506. Attribute VB_PredeclaredId = True
  507. Attribute VB_Exposed = False
  508. Dim NewX As Long, NewY As Long, FormX As Long, FormY As Long
  509. Dim FormReady As Boolean, InfoEdited As Boolean
  510.  
  511. Private Sub btnApply_Click()
  512.     On Error Resume Next
  513.     Dim I As Integer
  514.     SetItemData Val(Me.Tag), "ItemName", txtAgenda.Text
  515.     SetItemData Val(Me.Tag), "ItemTime", txtTime.Text
  516.     SetItemData Val(Me.Tag), "ItemDetails", txtDetails.Text
  517.     SetItemData Val(Me.Tag), "ItemDoAlarm", Str(chkAlarmMe.Value)
  518.     SetItemData Val(Me.Tag), "ItemDate", txtDate.Text
  519.     SetItemData Val(Me.Tag), "ItemNotifyShown0", "0"
  520.     For I = 1 To 7 Step 1
  521.         SetItemData Val(Me.Tag), "AlarmDay" & I, chkWeekDay(I).Value
  522.     Next
  523.     frmMain.FetchItem Val(Me.Tag)
  524. End Sub
  525.  
  526. Public Sub btnDelItem_Click()
  527.     On Error Resume Next
  528.     If MsgBox("Are you sure you want to delete this entry?", vbYesNo + vbQuestion) = vbNo Then Exit Sub
  529.     frmMain.DeleteItem Val(Me.Tag)
  530.     frmMain.FetchItem Val(Me.Tag)
  531.     Unload Me
  532. End Sub
  533.  
  534. Private Sub btnEnd_Click()
  535.     On Error Resume Next
  536.     If InfoEdited = True Then
  537.         If MsgBox("Do you want to save the changes you have made?", vbYesNo + vbQuestion) = vbYes Then
  538.             btnApply_Click
  539.         End If
  540.     End If
  541.     FormReady = False
  542.     InfoEdited = False
  543.     Unload Me
  544. End Sub
  545.  
  546. Private Sub btnSelTime_Click()
  547.     On Error Resume Next
  548.     Dim UserDate As Date
  549.     UserDate = Date
  550.     If frmCalendar.GetDate(UserDate) Then
  551.         txtAlarmTime.Text = UserDate
  552.     End If
  553. End Sub
  554.  
  555. Private Sub chkAlarmMe_Click()
  556.     On Error Resume Next
  557.     If IsReady = True Then SetItemData Val(Me.Tag), "ItemDoAlarm", Str(chkAlarmMe.Value)
  558.     FrameAlarm.Enabled = (chkAlarmMe.Value = 1)
  559. End Sub
  560.  
  561.  
  562. Private Sub chkChkAllWeeddays_Click()
  563.     On Error Resume Next
  564.     For I = 2 To 6 Step 1
  565.         chkWeekDay(I).Value = chkChkAllWeeddays.Value
  566.     Next
  567. End Sub
  568.  
  569. Private Sub chkChkAllWeekends_Click()
  570.     On Error Resume Next
  571.     chkWeekDay(1).Value = chkChkAllWeekends.Value
  572.     chkWeekDay(7).Value = chkChkAllWeekends.Value
  573. End Sub
  574.  
  575. Private Sub chkSticky_Click()
  576. On Error Resume Next
  577. If IsReady = True Then
  578.     If chkSticky.Value = 1 Then
  579.         frmMain.MakeSticky Val(Me.Tag)
  580.     Else
  581.         Dim K As Form
  582.         For Each K In Forms
  583.             If K.Tag = Me.Tag And K.ScaleHeight <> Me.ScaleHeight And K.ScaleWidth <> Me.ScaleWidth Then
  584.                 Unload K
  585.             End If
  586.         Next
  587.     End If
  588.     SetItemData Val(Me.Tag), "ShowSticky", Str(chkSticky.Value)
  589. End If
  590. End Sub
  591.  
  592. Private Sub chkWeekDay_Click(Index As Integer)
  593. On Error Resume Next
  594. If IsReady = True Then
  595.     SetItemData Val(Me.Tag), "AlarmDay" & Index, chkWeekDay(Index).Value
  596. End If
  597. End Sub
  598.  
  599. Private Sub Form_Load()
  600.     On Error Resume Next
  601.     Dim I As Integer
  602.     FormReady = False
  603.     If GetSet("Transparent", "1") = "1" Then MakeTransparent Me.hWnd, GetSet("Transparent Value", "200")
  604.     If GetSet("OnTop", "0") = "1" Then SetWindowPos Me.hWnd, -1, 0, 0, 0, 0, 3
  605.     If GetSet("Black", "0") = "1" Then
  606.         chkSticky.BackColor = RGB(0, 0, 0)
  607.         chkSticky.ForeColor = RGB(255, 255, 255)
  608.         Me.BackColor = RGB(0, 0, 0)
  609.         lblItemName.ForeColor = RGB(255, 255, 255)
  610.         lblItemName2.ForeColor = RGB(255, 255, 255)
  611.         Label1.ForeColor = RGB(200, 200, 200)
  612.         Label2(0).ForeColor = RGB(200, 200, 200)
  613.         Label2(1).ForeColor = RGB(200, 200, 200)
  614.         Label2(2).ForeColor = RGB(200, 200, 200)
  615.         lblAGDetails.ForeColor = RGB(255, 255, 255)
  616.         lblTime.ForeColor = RGB(255, 255, 255)
  617.         chkAlarmMe.BackColor = RGB(0, 0, 0)
  618.         chkAlarmMe.ForeColor = RGB(200, 200, 200)
  619.         Frame1.BackColor = RGB(0, 0, 0)
  620.         Frame1.ForeColor = RGB(200, 200, 200)
  621.         LstTab.BackColor = RGB(0, 0, 0)
  622.         LstTab.ForeColor = RGB(200, 200, 200)
  623.         chkChkAllWeeddays.ForeColor = RGB(200, 200, 200)
  624.         chkChkAllWeeddays.BackColor = RGB(0, 0, 0)
  625.         chkChkAllWeekends.ForeColor = RGB(200, 200, 200)
  626.         chkChkAllWeekends.BackColor = RGB(0, 0, 0)
  627.         For I = 1 To 7 Step 1
  628.             If I < 5 Then picTab(I - 1).BackColor = RGB(0, 0, 0)
  629.             chkWeekDay(I).BackColor = RGB(0, 0, 0)
  630.             chkWeekDay(I).ForeColor = RGB(200, 200, 200)
  631.         Next
  632.     End If
  633.     'DockingStart Me
  634.     DropShadow Me.hWnd
  635. End Sub
  636.  
  637. Private Sub Form_Paint()
  638.     On Error Resume Next
  639.     FormReady = True
  640. End Sub
  641.  
  642. Private Sub Form_Resize()
  643.     On Error Resume Next
  644.     Shape1(0).Width = Me.ScaleWidth
  645.     Shape1(1).Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
  646. End Sub
  647.  
  648. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  649.     On Error Resume Next
  650.     NewX = X
  651.     NewY = Y
  652. End Sub
  653.  
  654. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  655.     On Error Resume Next
  656.     If Button = 1 Then Me.Move Me.Left + X - NewX, Me.Top + Y - NewY
  657. End Sub
  658.  
  659. Private Sub Form_Unload(Cancel As Integer)
  660.     On Error Resume Next
  661.     frmMain.FetchItem Val(Me.Tag)
  662.     ClearTriangle
  663.     'DockingTerminate Me
  664. End Sub
  665.  
  666. Private Sub Image2_Click()
  667.     On Error Resume Next
  668.     Shell "explorer http://thinc.no-ip.info", vbNormalFocus
  669. End Sub
  670.  
  671. Private Sub imgAppoint_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  672.     On Error Resume Next
  673.     Dim nX As Long, nY As Long
  674.     nX = imgAppoint.Left + picTab(0).Left
  675.     nY = imgAppoint.Top + imgAppoint.Height + picTab(0).Top
  676.     frmDetails.PopupMenu frmPrefs.titPicMenu, , nX, nY, frmPrefs.titChangeImg
  677. End Sub
  678.  
  679. Private Sub imgAppoint_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
  680.     On Error GoTo ERR
  681.     imgAppoint.Picture = LoadPicture(Data.Files(1))
  682.     SetItemData Me.Tag, "ItemImage", Data.Files(1)
  683.     Exit Sub
  684. ERR:
  685.     MsgBox "Error: " & ERR.Number & " - " & ERR.Description & vbCrLf & vbCrLf & _
  686.     "Use the File Name textbox in the image chooser instead.", vbCritical
  687. End Sub
  688.  
  689.  
  690. Private Sub lblItemName2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  691.     Form_MouseDown Button, Shift, X, Y
  692. End Sub
  693.  
  694. Private Sub lblItemName2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  695.     Form_MouseMove Button, Shift, X, Y
  696. End Sub
  697.  
  698. Public Function ClearTriangle()
  699.     On Error Resume Next
  700.     If Val(Me.Tag) > 0 Then
  701.         frmMain.imgTriangle(Val(Me.Tag)).Picture = frmMain.imgTriangle(0).Picture
  702.     Else
  703.         frmMain.imgTriangle(Val(Me.Tag)).Picture = frmMain.imgTriangle(1).Picture
  704.     End If
  705. End Function
  706.  
  707. Public Function AnimateForm()
  708.     On Error Resume Next
  709.     Dim I As Long
  710.     Me.Enabled = False
  711.     For I = frmMain.Left To frmMain.Left - Me.Width - 60 Step -180
  712.         Me.Left = I
  713.         Me.Width = frmMain.Left - Me.Left - 60
  714.         DoEvents
  715.     Next
  716.     Me.Width = 5775
  717.     Me.Left = frmMain.Left - Me.Width - 60
  718.     Me.Enabled = True
  719. End Function
  720.  
  721. Private Sub LstTab_Click()
  722.     On Error Resume Next
  723.     Dim I As Integer, K As Integer
  724.     K = LstTab.ListIndex
  725.     For I = 0 To picTab.Count - 1 Step 1
  726.         If I <> K Then
  727.             picTab(I).Visible = False
  728.         Else
  729.             picTab(I).Visible = True
  730.             picTab(I).SetFocus
  731.         End If
  732.     Next
  733. End Sub
  734.  
  735. Private Sub txtAgenda_KeyPress(KeyAscii As Integer)
  736.     On Error Resume Next
  737.     Dim I As String
  738.     If KeyAscii = vbKeyReturn Then
  739.         I = GetSet("SaveFields1", "1")
  740.         If I = "0" Then
  741.             btnApply_Click
  742.             InfoEdited = False
  743.         ElseIf I = "1" Then
  744.             InfoEdited = True
  745.         ElseIf I = "2" Then
  746.             InfoEdited = False
  747.         End If
  748.     End If
  749. End Sub
  750.  
  751. Private Sub txtDate_KeyPress(KeyAscii As Integer)
  752.     txtAgenda_KeyPress KeyAscii
  753. End Sub
  754.  
  755. Private Sub txtDetails_KeyPress(KeyAscii As Integer)
  756.     txtAgenda_KeyPress KeyAscii
  757.     KeyAscii = 0
  758. End Sub
  759.  
  760. Private Sub txtTime_KeyPress(KeyAscii As Integer)
  761.     txtAgenda_KeyPress KeyAscii
  762. End Sub
  763.