VERSION 5.00 Begin VB.Form CheckinOnCloseForm BorderStyle = 3 'Fixed Dialog Caption = "P4OFC - Checkin On Close" ClientHeight = 1515 ClientLeft = 45 ClientTop = 330 ClientWidth = 4395 ControlBox = 0 'False LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 1515 ScaleWidth = 4395 ShowInTaskbar = 0 'False StartUpPosition = 1 'CenterOwner Begin VB.CommandButton cmdCancel Cancel = -1 'True Caption = "Cancel" Height = 375 Left = 2400 TabIndex = 3 Top = 960 Width = 1215 End Begin VB.CheckBox HideDialog Caption = "&Don't show this dialog again." Height = 375 Left = 480 TabIndex = 1 Top = 480 Width = 3495 End Begin VB.CommandButton cmdOK Caption = "OK" Default = -1 'True Height = 375 Left = 840 TabIndex = 0 Top = 960 Width = 1215 End Begin VB.Label Label1 Caption = "Check document into Perforce?" Height = 255 Left = 360 TabIndex = 2 Top = 120 Width = 4095 End End Attribute VB_Name = "CheckinOnCloseForm" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private m_Action As VbMsgBoxResult Private Sub DoClick(Action As VbMsgBoxResult) If HideDialog.Value = 1 Then RegOptions.CheckInOnClose = Never Else RegOptions.CheckInOnClose = Prompt End If Me.Hide m_Action = Action End Sub Private Sub cmdCancel_Click() On Error GoTo Error_Block Dim T As Tracker: Set T = GStackTrace.Enter(TypeName(Me), "cmdCancel_Click") DoClick vbCancel Exit Sub Error_Block: T.Report End Sub Private Sub cmdOK_Click() On Error GoTo Error_Block Dim T As Tracker: Set T = GStackTrace.Enter(TypeName(Me), "cmdOK_Click") DoClick vbOK Exit Sub Error_Block: T.Report End Sub Public Function Answer() As VbMsgBoxResult Dim T As Tracker: Set T = GStackTrace.Enter(TypeName(Me), "Answer") Answer = vbCancel m_Action = vbCancel If RegOptions.CheckInOnClose <> Never Then Screen.MousePointer = vbDefault HideDialog = 0 ShowForm Me, True Answer = m_Action End If Unload Me End Function
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 11314 | Robert Cowham | Initial population of perforce_software version of P4OFC | ||
//guest/robert_cowham/perforce/P4OFC/main/p4comaddin/CheckinOnCloseForm.frm | |||||
#1 | 10843 | Robert Cowham |
Initial version of P4OFC source code. See README.txt (and LICENSE.txt and doc\P4OFC-Design.docx) |