home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmHyperlink
- BorderStyle = 3 'Fixed Dialog
- Caption = "Set Hyperlink"
- ClientHeight = 2670
- ClientLeft = 1905
- ClientTop = 6255
- ClientWidth = 6690
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2670
- ScaleWidth = 6690
- ShowInTaskbar = 0 'False
- Begin VB.TextBox Text2
- Enabled = 0 'False
- Height = 285
- Left = 2640
- TabIndex = 8
- Top = 1560
- Width = 3735
- End
- Begin VB.OptionButton Option1
- Caption = "ANNLINK_WEBPAGE"
- Height = 255
- Index = 3
- Left = 360
- TabIndex = 6
- Top = 1560
- Width = 2175
- End
- Begin VB.OptionButton Option1
- Caption = "ANNLINK_RUN"
- Height = 255
- Index = 2
- Left = 360
- TabIndex = 5
- Top = 1200
- Width = 1455
- End
- Begin VB.OptionButton Option1
- Caption = "ANNLINK_EVENT"
- Height = 255
- Index = 1
- Left = 360
- TabIndex = 4
- Top = 840
- Width = 1695
- End
- Begin VB.Frame Frame1
- Caption = "Hyperlink Type:"
- Height = 1935
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 6375
- Begin VB.TextBox Text1
- Enabled = 0 'False
- Height = 285
- Left = 2520
- TabIndex = 7
- Top = 1080
- Width = 3735
- End
- Begin VB.OptionButton Option1
- Caption = "None"
- Height = 255
- Index = 0
- Left = 240
- TabIndex = 3
- Top = 360
- Width = 1455
- End
- End
- Begin VB.CommandButton Command2
- Caption = "Cancel"
- Height = 375
- Left = 5280
- TabIndex = 1
- Top = 2160
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "OK"
- Height = 375
- Left = 3960
- TabIndex = 0
- Top = 2160
- Width = 1215
- End
- Attribute VB_Name = "frmHyperlink"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Public nResult As Integer
- Public nType As Integer
- Public szLink As String
- Private Sub Command1_Click()
- nResult = 1
- Select Case nType
- Case ANNLINK_RUN
- szLink = Text1.Text
- Case ANNLINK_WEBPAGE
- szLink = Text2.Text
- Case Else
- szLink = ""
- End Select
- Hide
- End Sub
- Private Sub Command2_Click()
- nResult = 0
- Hide
- End Sub
- Private Sub Form_Load()
- ' Option1(0).Value = True
- ' nType = ANNLINK_NONE
- End Sub
- Private Sub Option1_Click(Index As Integer)
- If (Index <> 0) Then
- Option1(0).Value = False
- ElseIf (Index = 0) Then
- Option1(1).Value = False
- Option1(2).Value = False
- Option1(3).Value = False
- End If
- Select Case Index
- Case 0
- nType = ANNLINK_NONE
- Text1.Enabled = False
- Text2.Enabled = False
- Case 1
- nType = ANNLINK_ANNEVENT
- Text1.Enabled = False
- Text2.Enabled = False
- Case 2
- nType = ANNLINK_RUN
- Text1.Enabled = True
- Text2.Enabled = False
- Case 3
- nType = ANNLINK_WEBPAGE
- Text1.Enabled = False
- Text2.Enabled = True
- End Select
- End Sub
-