laatzen/Pruef2000/source/frmFlexgrid.frm
2021-10-01 11:11:04 +02:00

118 lines
3.3 KiB
Plaintext

VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmFlexgrid
ClientHeight = 5280
ClientLeft = 60
ClientTop = 345
ClientWidth = 5385
LinkTopic = "Form2"
ScaleHeight = 5280
ScaleWidth = 5385
StartUpPosition = 3 'Windows-Standard
Begin VB.CheckBox chkIgnore
Caption = "Ignorieren"
Height = 585
Left = 60
TabIndex = 5
ToolTipText = "vorrübergehende Möglichkeit um bei Fehlalarm weiterprüfen zu können"
Top = 4320
Width = 1905
End
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Unten ausrichten
Height = 255
Left = 0
TabIndex = 2
Top = 5025
Width = 5385
_ExtentX = 9499
_ExtentY = 450
Style = 1
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 1
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
EndProperty
End
Begin VB.CommandButton cmdClose
Caption = "Schließen"
Height = 435
Left = 2070
TabIndex = 1
ToolTipText = "Schließt das Fenster"
Top = 4410
Width = 1095
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Height = 2715
Left = 0
TabIndex = 0
Top = 1440
Width = 5355
_ExtentX = 9446
_ExtentY = 4789
_Version = 393216
End
Begin VB.Label lblAutosize
BorderStyle = 1 'Fest Einfach
Caption = "lblAutosize"
Height = 195
Left = 4110
TabIndex = 4
Top = 4380
Visible = 0 'False
Width = 735
End
Begin VB.Label lblText
Height = 1395
Left = 30
TabIndex = 3
Top = 30
Width = 5295
End
End
Attribute VB_Name = "frmFlexgrid"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public mblnCheckIgnore As Boolean
Private Sub cmdClose_Click()
mblnCheckIgnore = (chkIgnore.Value = vbChecked)
Unload Me
End Sub
Private Sub Form_Activate()
AutoSpaltenBreite MSFlexGrid1, lblAutosize
Dim i As Integer
Dim w As Long
For i = 0 To MSFlexGrid1.Cols - 1
w = w + MSFlexGrid1.ColWidth(i) * 1.1
Next
Me.Width = w
End Sub
Private Sub Form_Resize()
lblText.Top = 0
MSFlexGrid1.Top = lblText.Top + lblText.Height
MSFlexGrid1.Left = 0
cmdClose.Top = Me.ScaleHeight - StatusBar1.Height - cmdClose.Height * 1.5
MSFlexGrid1.Height = cmdClose.Top - cmdClose.Height / 2 - MSFlexGrid1.Top
MSFlexGrid1.Width = Me.ScaleWidth
lblText.Width = Me.ScaleWidth
cmdClose.Left = Me.ScaleWidth / 2 - cmdClose.Width / 2
chkIgnore.Top = cmdClose.Top
End Sub