VERSION 5.00 Begin VB.Form EnterPasswordForm BorderStyle = 3 'Fixed Dialog Caption = "P4OFC - Enter Password" ClientHeight = 1500 ClientLeft = 45 ClientTop = 330 ClientWidth = 4185 ControlBox = 0 'False LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 1500 ScaleWidth = 4185 ShowInTaskbar = 0 'False StartUpPosition = 1 'CenterOwner Begin VB.TextBox txtPassword Height = 375 IMEMode = 3 'DISABLE Left = 1200 PasswordChar = "*" TabIndex = 1 Top = 240 Width = 2655 End Begin VB.CommandButton cmdCancel Cancel = -1 'True Caption = "Cancel" Height = 375 Left = 2400 TabIndex = 3 Top = 840 Width = 1215 End Begin VB.CommandButton cmdOK Caption = "OK" Default = -1 'True Height = 375 Left = 960 TabIndex = 2 Top = 840 Width = 1215 End Begin VB.Label Label1 Caption = "Password:" Height = 255 Left = 240 TabIndex = 0 Top = 240 Width = 855 End End Attribute VB_Name = "EnterPasswordForm" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private m_Action As VbMsgBoxResult Private m_p4 As P4COM.p4 Private Sub DoClick(Action As VbMsgBoxResult) Me.Hide m_Action = Action End Sub Private Sub cmdCancel_Click() On Error GoTo Error_Block DoClick vbCancel Exit Sub Error_Block: 't.Report End Sub Private Sub cmdOK_Click() On Error GoTo Error_Block m_p4.Password = txtPassword.Text DoClick vbOK Exit Sub Error_Block: 't.Report End Sub Public Function Answer(p4 As P4COM.p4) As VbMsgBoxResult Answer = vbCancel m_Action = vbCancel Set m_p4 = p4 Me.Show vbModal Answer = m_Action Unload Me End Function
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 10843 | Robert Cowham |
Initial version of P4OFC source code. See README.txt (and LICENSE.txt and doc\P4OFC-Design.docx) |