TestGUI: Work on Annotations
This commit is contained in:
34
GUIs.Test.TestGUI/frmDocView.Designer.vb
generated
34
GUIs.Test.TestGUI/frmDocView.Designer.vb
generated
@@ -24,19 +24,23 @@ Partial Class frmDocView
|
||||
Private Sub InitializeComponent()
|
||||
Me.Panel1 = New System.Windows.Forms.Panel()
|
||||
Me.Button2 = New System.Windows.Forms.Button()
|
||||
Me.Button3 = New System.Windows.Forms.Button()
|
||||
Me.Button1 = New System.Windows.Forms.Button()
|
||||
Me.TextBox1 = New System.Windows.Forms.TextBox()
|
||||
Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
|
||||
Me.DocumentViewer1 = New DigitalData.Controls.DocumentViewer.DocumentViewer()
|
||||
Me.Button4 = New System.Windows.Forms.Button()
|
||||
Me.Panel1.SuspendLayout()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'Panel1
|
||||
'
|
||||
Me.Panel1.Controls.Add(Me.Button2)
|
||||
Me.Panel1.Controls.Add(Me.Button4)
|
||||
Me.Panel1.Controls.Add(Me.Button3)
|
||||
Me.Panel1.Controls.Add(Me.Button1)
|
||||
Me.Panel1.Controls.Add(Me.TextBox1)
|
||||
Me.Panel1.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.Panel1.Dock = System.Windows.Forms.DockStyle.Top
|
||||
Me.Panel1.Location = New System.Drawing.Point(0, 0)
|
||||
Me.Panel1.Name = "Panel1"
|
||||
Me.Panel1.Size = New System.Drawing.Size(1079, 43)
|
||||
@@ -51,9 +55,18 @@ Partial Class frmDocView
|
||||
Me.Button2.Text = "Unload File"
|
||||
Me.Button2.UseVisualStyleBackColor = True
|
||||
'
|
||||
'Button3
|
||||
'
|
||||
Me.Button3.Location = New System.Drawing.Point(911, 10)
|
||||
Me.Button3.Name = "Button3"
|
||||
Me.Button3.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button3.TabIndex = 1
|
||||
Me.Button3.Text = "Annotate"
|
||||
Me.Button3.UseVisualStyleBackColor = True
|
||||
'
|
||||
'Button1
|
||||
'
|
||||
Me.Button1.Location = New System.Drawing.Point(864, 10)
|
||||
Me.Button1.Location = New System.Drawing.Point(542, 10)
|
||||
Me.Button1.Name = "Button1"
|
||||
Me.Button1.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button1.TabIndex = 1
|
||||
@@ -64,7 +77,7 @@ Partial Class frmDocView
|
||||
'
|
||||
Me.TextBox1.Location = New System.Drawing.Point(12, 12)
|
||||
Me.TextBox1.Name = "TextBox1"
|
||||
Me.TextBox1.Size = New System.Drawing.Size(846, 20)
|
||||
Me.TextBox1.Size = New System.Drawing.Size(524, 20)
|
||||
Me.TextBox1.TabIndex = 0
|
||||
'
|
||||
'OpenFileDialog1
|
||||
@@ -73,20 +86,29 @@ Partial Class frmDocView
|
||||
'
|
||||
'DocumentViewer1
|
||||
'
|
||||
Me.DocumentViewer1.Dock = System.Windows.Forms.DockStyle.Bottom
|
||||
Me.DocumentViewer1.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.DocumentViewer1.FileLoaded = False
|
||||
Me.DocumentViewer1.Location = New System.Drawing.Point(0, 43)
|
||||
Me.DocumentViewer1.Name = "DocumentViewer1"
|
||||
Me.DocumentViewer1.Size = New System.Drawing.Size(1079, 463)
|
||||
Me.DocumentViewer1.TabIndex = 0
|
||||
'
|
||||
'Button4
|
||||
'
|
||||
Me.Button4.Location = New System.Drawing.Point(830, 10)
|
||||
Me.Button4.Name = "Button4"
|
||||
Me.Button4.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button4.TabIndex = 1
|
||||
Me.Button4.Text = "Save"
|
||||
Me.Button4.UseVisualStyleBackColor = True
|
||||
'
|
||||
'frmDocView
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(1079, 506)
|
||||
Me.Controls.Add(Me.Panel1)
|
||||
Me.Controls.Add(Me.DocumentViewer1)
|
||||
Me.Controls.Add(Me.Panel1)
|
||||
Me.Name = "frmDocView"
|
||||
Me.Text = "frmDocView"
|
||||
Me.Panel1.ResumeLayout(False)
|
||||
@@ -101,4 +123,6 @@ Partial Class frmDocView
|
||||
Friend WithEvents TextBox1 As TextBox
|
||||
Friend WithEvents OpenFileDialog1 As OpenFileDialog
|
||||
Friend WithEvents Button2 As Button
|
||||
Friend WithEvents Button3 As Button
|
||||
Friend WithEvents Button4 As Button
|
||||
End Class
|
||||
|
||||
@@ -17,4 +17,13 @@ Public Class frmDocView
|
||||
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
|
||||
DocumentViewer1.Done()
|
||||
End Sub
|
||||
|
||||
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
|
||||
If DocumentViewer1.AddAnnotation("Some Text") Then
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
|
||||
DocumentViewer1.Save()
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user