VERSION 5.00 Begin VB.Form CheckinAfterAddForm BorderStyle = 3 'Fixed Dialog Caption = "P4OFC - Add Document to Perforce" ClientHeight = 1710 ClientLeft = 45 ClientTop = 330 ClientWidth = 4680 ControlBox = 0 'False LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 1710 ScaleWidth = 4680 ShowInTaskbar = 0 'False StartUpPosition = 1 'CenterOwner Begin VB.CommandButton cmdCancel Cancel = -1 'True Caption = "Cancel" Height = 375 Left = 2400 TabIndex = 3 Top = 1200 Width = 1215 End Begin VB.CheckBox HideDialog Caption = "&Don't show this dialog again." Height = 375 Left = 480 TabIndex = 1 Top = 720 Width = 3495 End Begin VB.CommandButton cmdOK Caption = "OK" Default = -1 'True Height = 375 Left = 840 TabIndex = 0 Top = 1200 Width = 1215 End Begin VB.Label Label1 Caption = "You have successfully added the document to Perforce - would you like to check it in now?" Height = 615 Left = 360 TabIndex = 2 Top = 120 Width = 4095 End End Attribute VB_Name = "CheckinAfterAddForm" 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.CheckinAfterAddReminder = Never Else RegOptions.CheckinAfterAddReminder = 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 Answer = vbCancel m_Action = vbCancel If RegOptions.CheckinAfterAddReminder <> Never Then Screen.MousePointer = vbDefault HideDialog = 0 ShowForm Me, True Answer = m_Action End If Unload Me End Function
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 11893 | Robert Cowham |
Populate -o //guest/robert_cowham/perforce/P4OFC/main/... //guest/robert_cowham/perforce/P4OFC/icm/.... |
||
//guest/robert_cowham/perforce/P4OFC/main/p4comaddin/CheckinAfterAddForm.frm | |||||
#1 | 10843 | Robert Cowham |
Initial version of P4OFC source code. See README.txt (and LICENSE.txt and doc\P4OFC-Design.docx) |