MODIFIED SOURCE CODE FOR ZOOM.FRM

Made on Tuesday, Apr 8, 2003 at 9:43 AM

http://www.resourcemining.com

ZOOM.FRM contained 7 resource strings and 2 non-user interface strings.

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
    'WAS: BUTTON1 = "&Close"
    BUTTON1 = LoadResString(S94_Close)

End Property

'This was: Const BUTTON2 = "&Save Changes"
Property Get BUTTON2 As String
    'WAS: BUTTON2 = "&Save Changes"
    BUTTON2 = LoadResString(S471_Save_Changes)

End Property

'This was: Const BUTTON3 = "&Close w/o Changes"
Property Get BUTTON3 As String
    'WAS: BUTTON3 = "&Close w/o Changes"
    BUTTON3 = LoadResString(S96_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.
    'WAS: Me.Caption = "Zoom"
    Me.Caption = LoadResString(S597_Zoom)

    'WAS: cmdClose.Caption = "&Close"
    cmdClose.Caption = LoadResString(S94_Close)

    'WAS: cmdSave.Caption = "&Save Changes"
    cmdSave.Caption = LoadResString(S471_Save_Changes)

    'WAS: cmdCloseNoSave.Caption = "&Close w/o Changes"
    cmdCloseNoSave.Caption = LoadResString(S96_Close_w_o_Changes)

End Sub