VERSION 5.00 Begin VB.Form frmSelectFiles BorderStyle = 3 'Fixed Dialog Caption = "Word Diff" ClientHeight = 2295 ClientLeft = 150 ClientTop = 780 ClientWidth = 14490 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 2295 ScaleWidth = 14490 ShowInTaskbar = 0 'False StartUpPosition = 3 'Windows Default Begin VB.CommandButton cmdFile2 Caption = "..." BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 13440 TabIndex = 4 Top = 720 Width = 855 End Begin VB.CommandButton cmdFile1 Caption = "..." BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 13440 TabIndex = 2 Top = 240 Width = 855 End Begin VB.TextBox txtFile2 Height = 375 Left = 1320 TabIndex = 3 Top = 720 Width = 12015 End Begin VB.TextBox txtFile1 Height = 375 Left = 1320 TabIndex = 1 Top = 240 Width = 12015 End Begin VB.CommandButton cmdOK Caption = "&Diff documents..." Default = -1 'True Height = 615 Left = 6960 TabIndex = 5 Top = 1440 Width = 1455 End Begin VB.Label Label1 Caption = "File 2:" Height = 375 Index = 1 Left = 120 TabIndex = 6 Top = 720 Width = 1695 End Begin VB.Label lblParams Caption = "File 1:" Height = 375 Index = 0 Left = 120 TabIndex = 0 Top = 240 Width = 1695 End Begin VB.Menu mnuFile Caption = "&File" Begin VB.Menu optFile1 Caption = "Open File &1" Shortcut = ^A End Begin VB.Menu optFile2 Caption = "Open File &2" Shortcut = ^B End Begin VB.Menu optExit Caption = "E&xit" End End Begin VB.Menu mnuHelp Caption = "&Help" Begin VB.Menu optAbout Caption = "&About Word Diff" End End End Attribute VB_Name = "frmSelectFiles" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private Function OPENFILENAME() As String OPENFILENAME = ShowOpenDialog(App.path, "Word Documents (*.doc*) |*.doc*|Powerpoint Documents (*.ppt*) |*.ppt*|All Files (*.*)|*.*", "*.doc*|*.ppt*|*.*") End Function Private Sub cmdFile1_Click() txtFile1.Text = OPENFILENAME txtFile2.SetFocus End Sub Private Sub cmdFile2_Click() txtFile2.Text = OPENFILENAME cmdOK.SetFocus End Sub Private Sub cmdOK_Click() If Len(txtFile1.Text) = 0 Then MsgBox "Specify first file to compare", vbExclamation, MsgTitle txtFile1.SetFocus ElseIf Len(txtFile2.Text) = 0 Then MsgBox "Specify second file to compare", vbExclamation, MsgTitle txtFile2.SetFocus ElseIf Not FileExists(txtFile1.Text) Then MsgBox "First file '" & txtFile1.Text & "' does not exist", vbExclamation, MsgTitle txtFile1.SetFocus ElseIf Not FileExists(txtFile2.Text) Then MsgBox "Second file '" & txtFile1.Text & "' does not exist", vbExclamation, MsgTitle txtFile2.SetFocus ElseIf txtFile1.Text = txtFile2.Text Then MsgBox "First and second files are the same: '" & txtFile1.Text & "'", vbExclamation, MsgTitle txtFile2.SetFocus Else OpenDocs txtFile1.Text, txtFile2.Text End If End Sub Private Sub optAbout_Click() AboutForm.Show vbModal End Sub Private Sub optExit_Click() Unload Me End Sub Private Sub optFile1_Click() cmdFile1_Click End Sub Private Sub optFile2_Click() cmdFile2_Click End Sub
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 11874 | Robert Cowham | Prompt for Powerpoint files properly | ||
#3 | 11867 | Robert Cowham | Basic support for Powerpoint | ||
#2 | 11864 | Robert Cowham | Fixed blank line problems | ||
#1 | 11846 | Robert Cowham | Rename P4WordDiff to P4OfficeDiff - start of process | ||
//guest/robert_cowham/p4worddiff/main/src/SelectFiles.frm | |||||
#2 | 11599 | Robert Cowham |
Steps along the way. Basic project works (P4WordDiff) - removed dependency on outdated OCX. Also works better with Word 2010/13 Update_settings project updated to Visual Studio 2013 and compiles, even if it doesn't work yet! |
||
#1 | 11587 | Robert Cowham |
Initial project from internal sources. Needs updating (fgorm 2008 technology)! |