ORIGINAL SOURCE CODE FOR ZOOM.FRM
Made on Tuesday, Apr 8, 2003 at 9:43 AM
Option Explicit
'>>>>>>>>>>>>>>>>>>>>>>>>
'ResMe Converted To A Property: Const BUTTON1 = "&Close"
'ResMe Converted To A Property: Const BUTTON2 = "&Save Changes"
'ResMe Converted To A Property: Const BUTTON3 = "&Close w/o Changes"
'>>>>>>>>>>>>>>>>>>>>>>>>
Private Sub txtZoomData_KeyPress(KeyAscii As Integer)
'throw away the key if save not allowed
If cmdSave.Visible = False Then KeyAscii = 0
End Sub
Private Sub cmdCloseNoSave_Click()
gsZoomData = "__CANCELLED__"
Unload Me
End Sub
Private Sub cmdClose_Click()
Call cmdCloseNoSave_Click
Unload Me
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF1 And Shift = 0 Then
DisplayTopic 2016148
End If
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
'check for the escape key
If KeyAscii = vbKeyEscape Then
Call cmdCloseNoSave_Click
Exit Sub
End If
End Sub
Private Sub Form_Load()
'ResMe autogenerated line of code to call the initialization routine that was automatically generated.
Call frmZoom_Auto_Init
cmdClose.Caption = BUTTON1
cmdSave.Caption = BUTTON2
cmdCloseNoSave.Caption = BUTTON3
Me.Width = 4600
SendKeys "{End}"
End Sub
Private Sub Form_Resize()
On Error Resume Next
If txtZoomData.Visible Then
txtZoomData.Width = Me.Width - 200
Else
txtMemo.Width = Me.Width - 200
txtMemo.Height = Me.Height - 850
End If
End Sub
Private Sub cmdSave_Click()
If txtZoomData.Visible Then
gsZoomData = txtZoomData.Text
Else
gsZoomData = txtMemo.Text
End If
Unload Me
End Sub
'*********************************************************************************
'** This Section Of Code Was Automatically Generated By ResMe **
'** **
'** String assignments to Constants have been converted to read-only properties **
'*********************************************************************************
'This was: Const BUTTON1 = "&Close"
Property Get BUTTON1 As String
BUTTON1 = "&Close"
End Property
'This was: Const BUTTON2 = "&Save Changes"
Property Get BUTTON2 As String
BUTTON2 = "&Save Changes"
End Property
'This was: Const BUTTON3 = "&Close w/o Changes"
Property Get BUTTON3 As String
BUTTON3 = "&Close w/o Changes"
End Property
Private Sub frmZoom_Auto_Init()
'This routine initializes all User Interface control properties on frmZoom.
'This section of code was automatically generated by the ResMe String Extraction Utility.
Me.Caption = "Zoom"
cmdClose.Caption = "&Close"
cmdSave.Caption = "&Save Changes"
cmdCloseNoSave.Caption = "&Close w/o Changes"
End Sub