home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / attall / attset.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-08  |  29.6 KB  |  894 lines

  1. VERSION 2.00
  2. Begin Form Settings 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "All the Time Settings"
  6.    ClientHeight    =   6015
  7.    ClientLeft      =   1650
  8.    ClientTop       =   1725
  9.    ClientWidth     =   4320
  10.    Height          =   6705
  11.    Icon            =   ATTSET.FRX:0000
  12.    Left            =   1590
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    ScaleHeight     =   6015
  16.    ScaleWidth      =   4320
  17.    Top             =   1095
  18.    Width           =   4440
  19.    Begin CommandButton Command2 
  20.       Caption         =   "S&et Time..."
  21.       Height          =   360
  22.       Index           =   2
  23.       Left            =   2550
  24.       TabIndex        =   42
  25.       Top             =   3450
  26.       Width           =   1365
  27.    End
  28.    Begin SSCheck Hourly 
  29.       Caption         =   "!!"
  30.       Font3D          =   0  'None
  31.       Height          =   375
  32.       Left            =   3570
  33.       TabIndex        =   41
  34.       Top             =   4650
  35.       Width           =   465
  36.    End
  37.    Begin CommandButton Command4 
  38.       Caption         =   "For tabs"
  39.       Height          =   360
  40.       Index           =   1
  41.       Left            =   4455
  42.       TabIndex        =   40
  43.       Top             =   5430
  44.       Width           =   855
  45.    End
  46.    Begin CommandButton Command4 
  47.       Caption         =   "For tabs"
  48.       Height          =   360
  49.       Index           =   0
  50.       Left            =   4440
  51.       TabIndex        =   28
  52.       Top             =   5010
  53.       Width           =   855
  54.    End
  55.    Begin SSCheck Check3D1 
  56.       Caption         =   "P&rint Monitor"
  57.       Font3D          =   0  'None
  58.       Height          =   372
  59.       Index           =   8
  60.       Left            =   240
  61.       TabIndex        =   11
  62.       Top             =   2970
  63.       Value           =   -1  'True
  64.       Width           =   1452
  65.    End
  66.    Begin SSPanel OrderPanel 
  67.       BackColor       =   &H00C0C0C0&
  68.       DragMode        =   1  'Automatic
  69.       Font3D          =   0  'None
  70.       FontBold        =   0   'False
  71.       FontItalic      =   0   'False
  72.       FontName        =   "MS Sans Serif"
  73.       FontSize        =   8.25
  74.       FontStrikethru  =   0   'False
  75.       FontUnderline   =   0   'False
  76.       ForeColor       =   &H00800000&
  77.       Height          =   240
  78.       Index           =   1
  79.       Left            =   168
  80.       MousePointer    =   9  'Size W E
  81.       TabIndex        =   39
  82.       Tag             =   "1"
  83.       Top             =   108
  84.       Width           =   792
  85.    End
  86.    Begin SSPanel OrderPanel 
  87.       BackColor       =   &H00C0C0C0&
  88.       DragMode        =   1  'Automatic
  89.       Font3D          =   0  'None
  90.       FontBold        =   0   'False
  91.       FontItalic      =   0   'False
  92.       FontName        =   "MS Sans Serif"
  93.       FontSize        =   8.25
  94.       FontStrikethru  =   0   'False
  95.       FontUnderline   =   0   'False
  96.       ForeColor       =   &H00800000&
  97.       Height          =   240
  98.       Index           =   2
  99.       Left            =   960
  100.       MousePointer    =   9  'Size W E
  101.       TabIndex        =   38
  102.       Tag             =   "2"
  103.       Top             =   108
  104.       Width           =   792
  105.    End
  106.    Begin SSPanel OrderPanel 
  107.       BackColor       =   &H00C0C0C0&
  108.       DragMode        =   1  'Automatic
  109.       Font3D          =   0  'None
  110.       FontBold        =   0   'False
  111.       FontItalic      =   0   'False
  112.       FontName        =   "MS Sans Serif"
  113.       FontSize        =   8.25
  114.       FontStrikethru  =   0   'False
  115.       FontUnderline   =   0   'False
  116.       ForeColor       =   &H00800000&
  117.       Height          =   240
  118.       Index           =   3
  119.       Left            =   1755
  120.       MousePointer    =   9  'Size W E
  121.       TabIndex        =   37
  122.       Tag             =   "3"
  123.       Top             =   105
  124.       Width           =   795
  125.    End
  126.    Begin SSPanel OrderPanel 
  127.       BackColor       =   &H00C0C0C0&
  128.       DragMode        =   1  'Automatic
  129.       Font3D          =   0  'None
  130.       FontBold        =   0   'False
  131.       FontItalic      =   0   'False
  132.       FontName        =   "MS Sans Serif"
  133.       FontSize        =   8.25
  134.       FontStrikethru  =   0   'False
  135.       FontUnderline   =   0   'False
  136.       ForeColor       =   &H00800000&
  137.       Height          =   240
  138.       Index           =   4
  139.       Left            =   2556
  140.       MousePointer    =   9  'Size W E
  141.       TabIndex        =   36
  142.       Tag             =   "4"
  143.       Top             =   108
  144.       Width           =   792
  145.    End
  146.    Begin SSPanel OrderPanel 
  147.       BackColor       =   &H00C0C0C0&
  148.       DragMode        =   1  'Automatic
  149.       Font3D          =   0  'None
  150.       FontBold        =   0   'False
  151.       FontItalic      =   0   'False
  152.       FontName        =   "MS Sans Serif"
  153.       FontSize        =   8.25
  154.       FontStrikethru  =   0   'False
  155.       FontUnderline   =   0   'False
  156.       ForeColor       =   &H00800000&
  157.       Height          =   240
  158.       Index           =   5
  159.       Left            =   3345
  160.       MousePointer    =   9  'Size W E
  161.       TabIndex        =   35
  162.       Tag             =   "5"
  163.       Top             =   105
  164.       Width           =   795
  165.    End
  166.    Begin CommandButton Command2 
  167.       Caption         =   " &Sound..."
  168.       Height          =   360
  169.       Index           =   1
  170.       Left            =   1365
  171.       TabIndex        =   13
  172.       Top             =   3450
  173.       Width           =   1005
  174.    End
  175.    Begin SSCheck Check3D1 
  176.       Caption         =   "&Largest B-lock"
  177.       Font3D          =   0  'None
  178.       Height          =   375
  179.       Index           =   7
  180.       Left            =   1350
  181.       TabIndex        =   7
  182.       Top             =   1530
  183.       Value           =   -1  'True
  184.       Width           =   1470
  185.    End
  186.    Begin SSCheck Chime 
  187.       Caption         =   "S&ound"
  188.       Font3D          =   0  'None
  189.       Height          =   375
  190.       Left            =   2685
  191.       TabIndex        =   25
  192.       Top             =   4650
  193.       Width           =   825
  194.    End
  195.    Begin SSCheck FullScreen 
  196.       Caption         =   "&W-i-d-e"
  197.       Font3D          =   0  'None
  198.       Height          =   375
  199.       Left            =   2685
  200.       TabIndex        =   23
  201.       Top             =   3930
  202.       Width           =   1440
  203.    End
  204.    Begin HScrollBar SpacesScr 
  205.       Height          =   240
  206.       LargeChange     =   4
  207.       Left            =   1050
  208.       Max             =   30
  209.       Min             =   1
  210.       TabIndex        =   15
  211.       Top             =   3975
  212.       Value           =   1
  213.       Width           =   1320
  214.    End
  215.    Begin SSCheck Check3D1 
  216.       Caption         =   "Dis&k Space"
  217.       Font3D          =   0  'None
  218.       Height          =   375
  219.       Index           =   5
  220.       Left            =   225
  221.       TabIndex        =   4
  222.       Top             =   1170
  223.       Value           =   -1  'True
  224.       Width           =   1455
  225.    End
  226.    Begin SSOption Option3D1 
  227.       Caption         =   "&5 - Center"
  228.       Font3D          =   0  'None
  229.       ForeColor       =   &H00000000&
  230.       Height          =   195
  231.       Index           =   4
  232.       Left            =   3240
  233.       TabIndex        =   33
  234.       TabStop         =   0   'False
  235.       Top             =   2130
  236.       Width           =   195
  237.    End
  238.    Begin SSCheck Check3D1 
  239.       Caption         =   "+ Men&u"
  240.       Font3D          =   0  'None
  241.       Height          =   375
  242.       Index           =   6
  243.       Left            =   240
  244.       TabIndex        =   10
  245.       Top             =   2610
  246.       Value           =   -1  'True
  247.       Width           =   1455
  248.    End
  249.    Begin SSPanel Panel3D1 
  250.       BackColor       =   &H00C0C0C0&
  251.       BevelWidth      =   0
  252.       Font3D          =   0  'None
  253.       ForeColor       =   &H00800000&
  254.       Height          =   1185
  255.       Left            =   3765
  256.       TabIndex        =   34
  257.       Top             =   465
  258.       Width           =   105
  259.    End
  260.    Begin ComboBox DriveList 
  261.       BackColor       =   &H00FFFFFF&
  262.       Height          =   300
  263.       Left            =   1725
  264.       TabIndex        =   5
  265.       Top             =   1230
  266.       Width           =   2400
  267.    End
  268.    Begin SSOption Option3D1 
  269.       Alignment       =   1  'Right Justify
  270.       Caption         =   "&3 - Bottom right"
  271.       Font3D          =   0  'None
  272.       ForeColor       =   &H00000000&
  273.       Height          =   195
  274.       Index           =   2
  275.       Left            =   3465
  276.       TabIndex        =   32
  277.       TabStop         =   0   'False
  278.       Top             =   2280
  279.       Width           =   195
  280.    End
  281.    Begin SSOption Option3D1 
  282.       Caption         =   "&4 - Bottom left"
  283.       Font3D          =   0  'None
  284.       ForeColor       =   &H00000000&
  285.       Height          =   195
  286.       Index           =   3
  287.       Left            =   3015
  288.       TabIndex        =   31
  289.       TabStop         =   0   'False
  290.       Top             =   2265
  291.       Width           =   195
  292.    End
  293.    Begin SSOption Option3D1 
  294.       Alignment       =   1  'Right Justify
  295.       Caption         =   "&2 - Upper right"
  296.       Font3D          =   0  'None
  297.       ForeColor       =   &H00000000&
  298.       Height          =   195
  299.       Index           =   1
  300.       Left            =   3465
  301.       TabIndex        =   30
  302.       TabStop         =   0   'False
  303.       Top             =   1980
  304.       Width           =   195
  305.    End
  306.    Begin SSOption Option3D1 
  307.       Caption         =   "&1 - Upper left"
  308.       Font3D          =   0  'None
  309.       FontBold        =   0   'False
  310.       FontItalic      =   0   'False
  311.       FontName        =   "MS Sans Serif"
  312.       FontSize        =   8.25
  313.       FontStrikethru  =   0   'False
  314.       FontUnderline   =   0   'False
  315.       ForeColor       =   &H00000000&
  316.       Height          =   195
  317.       Index           =   0
  318.       Left            =   3015
  319.       TabIndex        =   29
  320.       Top             =   1980
  321.       Value           =   -1  'True
  322.       Width           =   195
  323.    End
  324.    Begin CommandButton Command3 
  325.       Cancel          =   -1  'True
  326.       Caption         =   "Cancel"
  327.       Height          =   300
  328.       Left            =   2685
  329.       TabIndex        =   26
  330.       Top             =   5085
  331.       Width           =   1215
  332.    End
  333.    Begin CommandButton Command1 
  334.       Caption         =   "OK"
  335.       Default         =   -1  'True
  336.       Height          =   330
  337.       Left            =   2685
  338.       TabIndex        =   27
  339.       Top             =   5490
  340.       Width           =   1215
  341.    End
  342.    Begin SSCheck Check3D1 
  343.       Caption         =   "Sun &and Moon and Tree"
  344.       Font3D          =   0  'None
  345.       Height          =   375
  346.       Index           =   4
  347.       Left            =   240
  348.       TabIndex        =   9
  349.       Top             =   2250
  350.       Value           =   -1  'True
  351.       Width           =   2385
  352.    End
  353.    Begin SSFrame Frame3D1 
  354.       Caption         =   "&Hotkeys"
  355.       Font3D          =   0  'None
  356.       ForeColor       =   &H00000000&
  357.       Height          =   1530
  358.       Index           =   1
  359.       Left            =   210
  360.       TabIndex        =   16
  361.       Top             =   4290
  362.       Width           =   2145
  363.       Begin TextBox Text1 
  364.          Alignment       =   2  'Center
  365.          Height          =   285
  366.          Index           =   2
  367.          Left            =   1785
  368.          MaxLength       =   1
  369.          TabIndex        =   22
  370.          Text            =   "+"
  371.          Top             =   1140
  372.          Width           =   255
  373.       End
  374.       Begin TextBox Text1 
  375.          Alignment       =   2  'Center
  376.          Height          =   285
  377.          Index           =   1
  378.          Left            =   1785
  379.          MaxLength       =   1
  380.          TabIndex        =   20
  381.          Text            =   "R"
  382.          Top             =   750
  383.          Width           =   255
  384.       End
  385.       Begin TextBox Text1 
  386.          Alignment       =   2  'Center
  387.          Height          =   285
  388.          Index           =   0
  389.          Left            =   1785
  390.          MaxLength       =   1
  391.          TabIndex        =   18
  392.          Text            =   "T"
  393.          Top             =   360
  394.          Width           =   255
  395.       End
  396.       Begin Label Label1 
  397.          Alignment       =   1  'Right Justify
  398.          BackColor       =   &H00C0C0C0&
  399.          Caption         =   "+ Menu: [Alt]+"
  400.          Height          =   195
  401.          Index           =   2
  402.          Left            =   45
  403.          TabIndex        =   21
  404.          Top             =   1155
  405.          Width           =   1710
  406.       End
  407.       Begin Label Label1 
  408.          Alignment       =   1  'Right Justify
  409.          BackColor       =   &H00C0C0C0&
  410.          Caption         =   "Rotate: [Alt]+[Ctrl]+"
  411.          Height          =   195
  412.          Index           =   1
  413.          Left            =   45
  414.          TabIndex        =   19
  415.          Top             =   765
  416.          Width           =   1710
  417.       End
  418.       Begin Label Label1 
  419.          Alignment       =   1  'Right Justify
  420.          BackColor       =   &H00C0C0C0&
  421.          Caption         =   "Toggle: [Alt]+[Ctrl]+"
  422.          Height          =   255
  423.          Index           =   0
  424.          Left            =   30
  425.          TabIndex        =   17
  426.          Top             =   390
  427.          Width           =   1725
  428.       End
  429.    End
  430.    Begin CommonDialog CMDialog1 
  431.       DefaultExt      =   "wav"
  432.       Filter          =   "Sound files (*.wav)|*.wav"
  433.       Left            =   2076
  434.       Top             =   6048
  435.    End
  436.    Begin CommandButton Command2 
  437.       Caption         =   " Fo&nt..."
  438.       Height          =   360
  439.       Index           =   0
  440.       Left            =   210
  441.       TabIndex        =   12
  442.       Top             =   3450
  443.       Width           =   1005
  444.    End
  445.    Begin SSCheck Check3D1 
  446.       Caption         =   "Resour&ces"
  447.       Font3D          =   0  'None
  448.       Height          =   375
  449.       Index           =   3
  450.       Left            =   240
  451.       TabIndex        =   8
  452.       Top             =   1890
  453.       Value           =   -1  'True
  454.       Width           =   1215
  455.    End
  456.    Begin SSCheck Check3D1 
  457.       Caption         =   "&Memory /"
  458.       Font3D          =   0  'None
  459.       Height          =   375
  460.       Index           =   2
  461.       Left            =   240
  462.       TabIndex        =   6
  463.       Top             =   1530
  464.       Value           =   -1  'True
  465.       Width           =   1080
  466.    End
  467.    Begin SSCheck Check3D1 
  468.       Caption         =   "&Time"
  469.       Font3D          =   0  'None
  470.       Height          =   375
  471.       Index           =   1
  472.       Left            =   240
  473.       TabIndex        =   0
  474.       Top             =   450
  475.       Value           =   -1  'True
  476.       Width           =   855
  477.    End
  478.    Begin ComboBox TimeList 
  479.       BackColor       =   &H00FFFFFF&
  480.       Height          =   300
  481.       Left            =   1725
  482.       TabIndex        =   1
  483.       Top             =   510
  484.       Width           =   2400
  485.    End
  486.    Begin SSCheck Check3D1 
  487.       Caption         =   "&Date"
  488.       Font3D          =   0  'None
  489.       Height          =   375
  490.       Index           =   0
  491.       Left            =   240
  492.       TabIndex        =   2
  493.       Top             =   810
  494.       Value           =   -1  'True
  495.       Width           =   855
  496.    End
  497.    Begin ComboBox DateList 
  498.       BackColor       =   &H00FFFFFF&
  499.       Height          =   300
  500.       Left            =   1725
  501.       TabIndex        =   3
  502.       Top             =   870
  503.       Width           =   2400
  504.    End
  505.    Begin SSCheck StayOnTop 
  506.       Caption         =   "Sta&y On Top"
  507.       Font3D          =   0  'None
  508.       Height          =   375
  509.       Left            =   2685
  510.       TabIndex        =   24
  511.       Top             =   4290
  512.       Value           =   -1  'True
  513.       Width           =   1335
  514.    End
  515.    Begin Shape Shape1 
  516.       BorderColor     =   &H00000000&
  517.       Height          =   265
  518.       Left            =   150
  519.       Top             =   90
  520.       Width           =   4000
  521.    End
  522.    Begin Image Picture800 
  523.       Height          =   2115
  524.       Left            =   4410
  525.       Picture         =   ATTSET.FRX:0302
  526.       Top             =   1905
  527.       Width           =   2040
  528.    End
  529.    Begin Image Picture640 
  530.       Height          =   1680
  531.       Left            =   4470
  532.       Picture         =   ATTSET.FRX:23BC
  533.       Top             =   450
  534.       Width           =   1665
  535.    End
  536.    Begin Label Label2 
  537.       BackColor       =   &H00C0C0C0&
  538.       Caption         =   "S&pacing"
  539.       Height          =   240
  540.       Left            =   255
  541.       TabIndex        =   14
  542.       Top             =   3975
  543.       Width           =   840
  544.    End
  545.    Begin Menu FileMenu 
  546.       Caption         =   "&File"
  547.       Begin Menu FileExit 
  548.          Caption         =   "E&xit"
  549.       End
  550.       Begin Menu FileSep 
  551.          Caption         =   "-"
  552.       End
  553.       Begin Menu FileAbout 
  554.          Caption         =   "&About All the Time..."
  555.       End
  556.    End
  557. Declare Function GetProfileString Lib "Kernel" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Integer) As Integer
  558. 'The computer was originally done in MacDraw using gray patterns.
  559. 'In fact, that's Doyle's computer which, at the time, was hot stuff.
  560. 'But then it was in PowerPoint as clip art and I did a screen capture
  561. 'and pasted it into studio 32 and reduced it 50%, which made all of
  562. 'the grays blend together in its little anti-aliasing way.
  563. 'So then I went in with the supposed 16-colors-made-for-the-PC
  564. 'and substituted patterns made with those grays.
  565. 'And then I went and copied it and pasted it into Giffer and saved it as
  566. 'a GIF file.
  567. 'Then I opened it in PaintShop on the PC and fixed the boo-boos.
  568. Sub Check3D1_Click (Index As Integer, Value As Integer)
  569.    'Call SetSize
  570.    Moved = False
  571.    LastTime& = 0
  572.    If Index = 2 Then
  573.       If Check3D1(Index).Value Then
  574.      Check3D1(7).Enabled = True
  575.       Else
  576.      Check3D1(7).Enabled = False
  577.       End If
  578.    End If
  579.    If Index = 4 Or Index = 6 Or Index = 8 Then
  580.       FontChangedNotYetSized = True
  581.       LastJob = -1
  582.    End If
  583. End Sub
  584. Sub Chime_Click (Value As Integer)
  585. PlayOnceOnly = True
  586. Moved = False
  587. LastTime& = 0
  588. Command2(1).Enabled = Value
  589. Hourly.Enabled = Value
  590. If (Not Cancelling) And Value Then
  591.    LastHour = -1
  592. End If
  593. End Sub
  594. Sub Command1_Click ()
  595. SaveSettings
  596. End Sub
  597. Sub Command2_Click (Index As Integer)
  598. If Index = 0 Then
  599.    CMDialog1.FontName = AllTheTime.FontName
  600.    CMDialog1.FontSize = AllTheTime.FontSize
  601.    CMDialog1.FontBold = AllTheTime.FontBold
  602.    CMDialog1.FontItalic = AllTheTime.FontItalic
  603.    CMDialog1.FontUnderline = AllTheTime.FontUnderline
  604.    CMDialog1.FontStrikethru = AllTheTime.FontStrikethru
  605.    CMDialog1.Color = AllTheTime.ForeColor
  606.    CMDialog1.Flags = CF_SCREENFONTS Or CF_USESTYLE Or CF_EFFECTS Or CF_FORCEFONTEXIST
  607.    CMDialog1.CancelError = True
  608.    CMDialog1.DialogTitle = ""
  609.    On Error Resume Next
  610.    CMDialog1.Action = 4
  611.    If Err = 0 Then
  612.       AllTheTime.FontSize = 12
  613.       On Error Resume Next
  614.       AllTheTime.FontName = CMDialog1.FontName
  615.       On Error GoTo 0
  616.       AllTheTime.FontSize = CMDialog1.FontSize
  617.       AllTheTime.FontBold = CMDialog1.FontBold
  618.       AllTheTime.FontItalic = CMDialog1.FontItalic
  619.       AllTheTime.FontUnderline = CMDialog1.FontUnderline
  620.       AllTheTime.FontStrikethru = CMDialog1.FontStrikethru
  621.       AllTheTime.ForeColor = CMDialog1.Color
  622.       SetOrderColors
  623.       Moved = False
  624.       FontChangedNotYetSized = True
  625.    End If
  626.    On Error GoTo 0
  627. End If
  628. If Index = 1 Then
  629.    CMDialog1.CancelError = True
  630.    On Error Resume Next
  631.    CMDialog1.DialogTitle = "Choose Sound File"
  632.    CMDialog1.Flags = OFN_HIDEREADONLY
  633.    CMDialog1.Action = 1
  634.    If Err = 0 Then
  635.       Call Chime_Click(True)
  636.    End If
  637. End If
  638. If Index = 2 Then
  639.    SetTimeForm.Show 1
  640. End If
  641. End Sub
  642. Sub Command3_Click ()
  643. Cancelling = True
  644. LoadSettings
  645. Cancelling = False
  646. End Sub
  647. Sub Command4_GotFocus (Index As Integer)
  648. If Index = 1 Then Command1.SetFocus
  649. If Index = 0 Then Check3D1(1).SetFocus
  650. End Sub
  651. Sub DateList_Change ()
  652.    'Check3D1(0).Value = True
  653. End Sub
  654. Sub DriveList_Change ()
  655.    LastTime& = 0
  656. End Sub
  657. Sub DriveList_Click ()
  658.    LastTime& = 0
  659. End Sub
  660. Sub FileAbout_Click ()
  661. Form3.Show 1
  662. End Sub
  663. Sub FileExit_Click ()
  664. DeleteMenus
  665. End 'Program
  666. End Sub
  667. Sub Form_Load ()
  668. If (xDPI = 96) And (yDPI = 96) Then
  669.   Picture640.Left = 2505
  670.   Picture640.Top = 1755
  671.   If (xDPI = 120) And (yDPI = 120) Then
  672.      Picture800.Left = 2505
  673.      Picture800.Top = 1755
  674.   End If
  675. End If
  676. 'For I% = 2 To 5
  677. 'OrderPanel(I%).Width = OrderPanel(I% - 1).Width
  678. 'OrderPanel(I%).Left = OrderPanel(I% - 1).Left + OrderPanel(I% - 1).Width
  679. 'Next I%
  680. DateList.AddItem "General Date"
  681. DateList.AddItem "Long Date"
  682. DateList.AddItem "Medium Date"
  683. DateList.AddItem "Short Date"
  684. DateList.AddItem "m/d/yy"
  685. DateList.AddItem "dddd, mmmm d"
  686. DateList.AddItem "dddd, mmmm d yyyy"
  687. DateList.AddItem "dddd m/d/yy"
  688. DateList.AddItem "d mmmm, yyyy"
  689. DateList.AddItem Chr$(34) + "Today is " + Chr$(34) + "dddd"
  690. DateList.AddItem Chr$(34) + "Day " + Chr$(34) + "y" + Chr$(34) + " of " + Chr$(34) + "yyyy" + Chr$(34) + "." + Chr$(34)
  691. DateList.AddItem Chr$(34) + "Week " + Chr$(34) + "ww" + Chr$(34) + " of " + Chr$(34) + "yyyy" + Chr$(34) + "." + Chr$(34)
  692. DateList.ListIndex = 8
  693. TimeList.AddItem "General Date"
  694. TimeList.AddItem "Long Time"
  695. TimeList.AddItem "Medium Time"
  696. TimeList.AddItem "Short Time"
  697. TimeList.AddItem "h:nna/p"
  698. TimeList.AddItem "h:nnam/pm"
  699. TimeList.AddItem "h:nnam/pm,"
  700. TimeList.AddItem Chr$(34) + "It's " + Chr$(34) + "n" + Chr$(34) + " minutes past " + Chr$(34) + "h" + Chr$(34) + " o'clock." + Chr$(34)
  701. TimeList.AddItem Chr$(34) + "The time is " + Chr$(34) + "h:nn am/pm" + Chr$(34) + " and" + Chr$(34) + " s " + Chr$(34) + "seconds." + Chr$(34)
  702. TimeList.AddItem "n" + Chr$(34) + " minutes past the hour of " + Chr$(34) + "ham/pm" + Chr$(34) + "." + Chr$(34)
  703. TimeList.AddItem "n" + Chr$(34) + " minutes and " + Chr$(34) + "s" + Chr$(34) + " seconds past the hour of " + Chr$(34) + "ham/pm" + Chr$(34) + "." + Chr$(34)
  704. TimeList.ListIndex = 6
  705. DriveList.AddItem "All hard drives"
  706. DriveList.AddItem "Windows drive"
  707. DriveList.AddItem "CE"
  708. DriveList.ListIndex = 1
  709. 'Drives% = 2
  710. 'Drive(1) = "C"
  711. 'Drive(2) = "D"
  712. LoadSettings
  713. End Sub
  714. Sub Form_LostFocus ()
  715. End Sub
  716. Sub Form_QueryUnload (Cancel As Integer, UnloadMode As Integer)
  717. If UnloadMode = 0 Then
  718.   'Beep
  719.   SaveSettings
  720.   Hide
  721.   Cancel = True
  722. End If
  723. End Sub
  724. Sub FullScreen_Click (Value As Integer)
  725. If Value Then
  726.    AllTheTime.Left = 0
  727.    'AllTheTime.Width = Screen.Width
  728.    AllTheTime.Tag = 0
  729.    PosLeft = 0
  730. End If
  731. SpacesScr.Enabled = Not Value
  732. OldWid% = -1
  733. End Sub
  734. Sub Hourly_Click (Value As Integer)
  735. 'PlayOnceOnly = True
  736. Moved = False
  737. LastTime& = 0
  738. If (Not Cancelling) And Value Then
  739.    LastHour = -1
  740. End If
  741. End Sub
  742. Sub LoadSettings ()
  743. Dim lpReturnedString As String * 100
  744. lpReturnedString = Space$(100)
  745. A% = GetProfileString("AllTheTime", "ShowDate", "-1", lpReturnedString$, 100)
  746. Check3D1(0).Value = Val(lpReturnedString)
  747. A% = GetProfileString("AllTheTime", "ShowTime", "-1", lpReturnedString$, 100)
  748. Check3D1(1).Value = Val(lpReturnedString)
  749. A% = GetProfileString("AllTheTime", "ShowMemory", "-1", lpReturnedString$, 100)
  750. Check3D1(2).Value = Val(lpReturnedString)
  751. A% = GetProfileString("AllTheTime", "ShowResource", "-1", lpReturnedString$, 100)
  752. Check3D1(3).Value = Val(lpReturnedString)
  753. A% = GetProfileString("AllTheTime", "ShowSun", "-1", lpReturnedString$, 100)
  754. Check3D1(4).Value = Val(lpReturnedString)
  755. A% = GetProfileString("AllTheTime", "ShowDrive", "-1", lpReturnedString$, 100)
  756. Check3D1(5).Value = Val(lpReturnedString)
  757. A% = GetProfileString("AllTheTime", "ShowPlus", "-1", lpReturnedString$, 100)
  758. Check3D1(6).Value = Val(lpReturnedString)
  759. A% = GetProfileString("AllTheTime", "ShowBlock", "0", lpReturnedString$, 100)
  760. Check3D1(7).Value = Val(lpReturnedString)
  761. A% = GetProfileString("AllTheTime", "ShowPrint", "0", lpReturnedString$, 100)
  762. Check3D1(8).Value = Val(lpReturnedString)
  763. A% = GetProfileString("AllTheTime", "DateFormat", "d mmmm, yyyy", lpReturnedString$, 100)
  764. DateList.Text = DecodeQuotes(lpReturnedString)
  765. A% = GetProfileString("AllTheTime", "TimeFormat", "h:nnam/pm,", lpReturnedString$, 100)
  766. TimeList.Text = DecodeQuotes(lpReturnedString)
  767. A% = GetProfileString("AllTheTime", "DriveFormat", "Windows drive", lpReturnedString$, 100)
  768. cString$ = Trim(lpReturnedString)
  769. tp% = InStr(cString$, Chr(0))
  770. If tp% <> 0 Then cString$ = Mid$(cString$, 1, tp% - 1)
  771. If cString$ <> DriveList.List(0) And cString$ <> DriveList.List(1) Then
  772.    DriveList.List(2) = cString$
  773. End If
  774. DriveList.Text = lpReturnedString
  775. A% = GetProfileString("AllTheTime", "StayOnTop", "-1", lpReturnedString$, 100)
  776. StayOnTop.Value = Val(lpReturnedString)
  777. A% = GetProfileString("AllTheTime", "Chime", "-1", lpReturnedString$, 100)
  778. Chime.Value = Val(lpReturnedString)
  779. A% = GetProfileString("AllTheTime", "Hourly", "0", lpReturnedString$, 100)
  780. Hourly.Value = Val(lpReturnedString)
  781. A% = GetProfileString("AllTheTime", "ChimeFile", "att.wav", lpReturnedString$, 100)
  782. CMDialog1.Filename = lpReturnedString
  783. A% = GetProfileString("AllTheTime", "FullScreen", "0", lpReturnedString$, 100)
  784. FullScreen.Value = Val(lpReturnedString)
  785. A% = GetProfileString("AllTheTime", "ToggleHotKey", "T", lpReturnedString$, 100)
  786. Text1(0).Text = lpReturnedString
  787. A% = GetProfileString("AllTheTime", "RotateHotKey", "R", lpReturnedString$, 100)
  788. Text1(1).Text = lpReturnedString
  789. A% = GetProfileString("AllTheTime", "PlusKey", "=", lpReturnedString$, 100)
  790. Text1(2).Text = lpReturnedString
  791. A% = GetProfileString("AllTheTime", "SpaceBetween", "2", lpReturnedString$, 100)
  792. T% = Val(lpReturnedString)
  793. SpacesScr.Value = T%
  794. A% = GetProfileString("AllTheTime", "FontName", "XX", lpReturnedString$, 100)
  795. On Error Resume Next
  796. If Left$(lpReturnedString$, 2) <> "XX" Then AllTheTime.FontName = lpReturnedString$
  797. On Error GoTo 0
  798. On Error Resume Next
  799. A% = GetProfileString("AllTheTime", "FontSize", "XX", lpReturnedString$, 100)
  800. If Left$(lpReturnedString$, 2) <> "XX" Then AllTheTime.FontSize = Val(lpReturnedString)
  801. On Error GoTo 0
  802. On Error Resume Next
  803. A% = GetProfileString("AllTheTime", "FontBold", "XX", lpReturnedString$, 100)
  804. If Left$(lpReturnedString$, 2) <> "XX" Then AllTheTime.FontBold = Val(lpReturnedString)
  805. On Error GoTo 0
  806. On Error Resume Next
  807. A% = GetProfileString("AllTheTime", "FontItalic", "XX", lpReturnedString$, 100)
  808. If Left$(lpReturnedString$, 2) <> "XX" Then AllTheTime.FontItalic = Val(lpReturnedString)
  809. On Error GoTo 0
  810. On Error Resume Next
  811. A% = GetProfileString("AllTheTime", "FontUnderline", "XX", lpReturnedString$, 100)
  812. If Left$(lpReturnedString$, 2) <> "XX" Then AllTheTime.FontUnderline = Val(lpReturnedString)
  813. On Error GoTo 0
  814. On Error Resume Next
  815. A% = GetProfileString("AllTheTime", "FontStrikethru", "XX", lpReturnedString$, 100)
  816. If Left$(lpReturnedString$, 2) <> "XX" Then AllTheTime.FontStrikethru = Val(lpReturnedString)
  817. On Error GoTo 0
  818. On Error Resume Next
  819. A% = GetProfileString("AllTheTime", "ForeColor", "8388608", lpReturnedString$, 100)
  820. AllTheTime.ForeColor = Val(lpReturnedString)
  821. SetOrderColors
  822. On Error GoTo 0
  823. A% = GetProfileString("AllTheTime", "PosLeft", "0", lpReturnedString$, 100)
  824. PosLeft = Val(lpReturnedString$)
  825. A% = GetProfileString("AllTheTime", "PosTop", "0", lpReturnedString$, 100)
  826. PosTop = Val(lpReturnedString$)
  827. If (PosLeft + AllTheTime.Width > Screen.Width) And Not Cancelling Then PosLeft = Screen.Width - AllTheTime.Width
  828. If (PosTop + AllTheTime.Height > Screen.Height) And Not Cancelling Then PosTop = Screen.Height - AllTheTime.Height
  829. A% = GetProfileString("AllTheTime", "Position", "4", lpReturnedString$, 100)
  830. T% = Val(lpReturnedString)
  831. Option3D1(T% - 1).Value = -1
  832. For I% = 1 To 5
  833. A% = GetProfileString("AllTheTime", "Order" + Format$(I%), Format$(I%), lpReturnedString$, 100)
  834. T% = Val(lpReturnedString)
  835. OrderPanel(I%).Tag = T%
  836. 'OrderPicture(I%).Picture = PicClip1.GraphicCell(T% - 1)
  837. Next I%
  838. Call SetUpVirtualKeys
  839. OldWid% = -1
  840. End Sub
  841. Sub Option3D1_Click (Index As Integer, Value As Integer)
  842. Moved = False
  843. Call PositionATT
  844. End Sub
  845. Sub OrderPanel_DragDrop (Index As Integer, Source As Control, X As Single, Y As Single)
  846. 'If the source is to the left of the target then
  847. 'shift controls from source+1 to target one to the left
  848. 'If the source is to the right of the target then
  849. 'shift controls from target to source one to the right
  850. Dim I As Integer
  851. Dim SourceNum As Integer
  852. For I% = 1 To 5
  853.    If Source.Tag = OrderPanel(I%).Tag Then SourceNum = I%
  854. Next I%
  855. 'TempPic.Picture = Source.Picture
  856. 'TempPic.BackColor = Source.BackColor
  857. TempPicTag = Source.Tag
  858. TempPicCap$ = Source.Caption
  859. If SourceNum% < Index Then
  860.    For I% = SourceNum% To Index - 1
  861.       OrderPanel(I%).Tag = OrderPanel(I% + 1).Tag
  862.       OrderPanel(I%).Caption = OrderPanel(I% + 1).Caption
  863.    Next I%
  864. End If
  865. If SourceNum% > Index Then
  866.    For I% = SourceNum% - 1 To Index Step -1
  867.       OrderPanel(I% + 1).Tag = OrderPanel(I%).Tag
  868.       OrderPanel(I% + 1).Caption = OrderPanel(I%).Caption
  869.    Next I%
  870. End If
  871. OrderPanel(Index).Caption = TempPicCap$
  872. OrderPanel(Index).Tag = TempPicTag
  873. LastTime& = 0
  874. End Sub
  875. Sub SetOrderColors ()
  876. For I% = 1 To 5
  877. OrderPanel(I%).ForeColor = AllTheTime.ForeColor
  878. Next I%
  879. End Sub
  880. Sub SpacesScr_Change ()
  881.    LastTime& = 0
  882. End Sub
  883. Sub StayOnTop_Click (Value As Integer)
  884. Call SetStayOnTop(Value)
  885. End Sub
  886. Sub Text1_GotFocus (Index As Integer)
  887. Text1(Index).SelStart = 0
  888. Text1(Index).SelLength = 1
  889. End Sub
  890. Sub TimeList_Change ()
  891.    'Check3D1(1).Value = True
  892.    LastTime& = 0
  893. End Sub
  894.