home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / AA_File_de565532202002.psc / Dialog.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2002-02-21  |  2.7 KB  |  87 lines

  1. VERSION 5.00
  2. Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
  3. Begin VB.Form Dialog 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Dialog Caption"
  6.    ClientHeight    =   1200
  7.    ClientLeft      =   2760
  8.    ClientTop       =   3750
  9.    ClientWidth     =   5910
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   1200
  14.    ScaleWidth      =   5910
  15.    ShowInTaskbar   =   0   'False
  16.    Begin VB.CheckBox Check1 
  17.       Caption         =   "Add personal comments"
  18.       Height          =   255
  19.       Left            =   120
  20.       TabIndex        =   3
  21.       Top             =   840
  22.       Width           =   3975
  23.    End
  24.    Begin RichTextLib.RichTextBox pc 
  25.       Height          =   1815
  26.       Left            =   120
  27.       TabIndex        =   2
  28.       Top             =   1200
  29.       Width           =   5775
  30.       _ExtentX        =   10186
  31.       _ExtentY        =   3201
  32.       _Version        =   393217
  33.       Enabled         =   -1  'True
  34.       TextRTF         =   $"Dialog.frx":0000
  35.    End
  36.    Begin VB.CommandButton CancelButton 
  37.       Caption         =   "Cancel"
  38.       Height          =   375
  39.       Left            =   4680
  40.       TabIndex        =   1
  41.       Top             =   600
  42.       Width           =   1215
  43.    End
  44.    Begin VB.CommandButton OKButton 
  45.       Caption         =   "OK"
  46.       Height          =   375
  47.       Left            =   4680
  48.       TabIndex        =   0
  49.       Top             =   120
  50.       Width           =   1215
  51.    End
  52.    Begin VB.Label Label1 
  53.       Caption         =   "Click OK to automaticly generate description for"
  54.       Height          =   615
  55.       Left            =   120
  56.       TabIndex        =   4
  57.       Top             =   120
  58.       Width           =   4455
  59.    End
  60. Attribute VB_Name = "Dialog"
  61. Attribute VB_GlobalNameSpace = False
  62. Attribute VB_Creatable = False
  63. Attribute VB_PredeclaredId = True
  64. Attribute VB_Exposed = False
  65. Option Explicit
  66. Private Sub RichTextBox1_Change()
  67. End Sub
  68. Private Sub Check1_Click()
  69. If Check1.Value = 1 Then Me.Height = 3420 Else Me.Height = 1560
  70. End Sub
  71. Private Sub Form_Load()
  72. Label1.Caption = Label1.Caption & Form1.File1.Path & "\" & Form1.File1.filename
  73. End Sub
  74. Private Sub OKButton_Click()
  75. With Form1
  76. .Des.TextRTF = _
  77.     "File name : " & .Label1.Caption & "." & .Label2.Caption & Chr(13) & _
  78.     "File Type : " & .Label3.Caption & Chr(13) & _
  79.     "File Path : " & .File1.Path & Chr(13) & _
  80.     "File Size : " & .Label4.Caption & Chr(13) & _
  81.     "File Date : " & .Label5.Caption & Chr(13)
  82. If Check1.Value = 1 Then .Des.TextRTF = .Des.TextRTF & pc.TextRTF
  83. End With
  84. Me.Visible = False
  85. Unload Me
  86. End Sub
  87.