VERSION 5.00
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmTisch 
   BackColor       =   &H80000003&
   BorderStyle     =   0  'Kein
   Caption         =   "Tisch"
   ClientHeight    =   5175
   ClientLeft      =   60
   ClientTop       =   510
   ClientWidth     =   9825
   FillColor       =   &H00400000&
   FillStyle       =   0  'Ausgefüllt
   BeginProperty Font 
      Name            =   "Tahoma"
      Size            =   12
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   -1  'True
      Strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H80000016&
   LinkMode        =   1  'Quelle
   LinkTopic       =   "Form2"
   MDIChild        =   -1  'True
   ScaleHeight     =   5175
   ScaleWidth      =   9825
   ShowInTaskbar   =   0   'False
   Begin MSDataGridLib.DataGrid dgrTisch 
      Height          =   2295
      Left            =   600
      TabIndex        =   0
      Top             =   480
      Width           =   4335
      _ExtentX        =   7646
      _ExtentY        =   4048
      _Version        =   393216
      AllowUpdate     =   -1  'True
      AllowArrows     =   -1  'True
      BackColor       =   16777215
      BorderStyle     =   0
      Enabled         =   -1  'True
      ForeColor       =   128
      HeadLines       =   2
      RowHeight       =   20
      WrapCellPointer =   -1  'True
      RowDividerStyle =   6
      AllowDelete     =   -1  'True
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   11.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1031
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1031
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         ScrollBars      =   2
         RecordSelectors =   0   'False
         Size            =   4455
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton cmdTisch 
      Caption         =   "Alt"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   405
      Left            =   3120
      TabIndex        =   2
      Top             =   3870
      Width           =   825
   End
   Begin VB.Label lblTischSumme 
      Alignment       =   1  'Rechts
      BackColor       =   &H80000014&
      BorderStyle     =   1  'Fest Einfach
      Caption         =   "lblTischSumme"
      BeginProperty DataFormat 
         Type            =   1
         Format          =   "0,00"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   1031
         SubFormatType   =   1
      EndProperty
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   14.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   390
      Left            =   4365
      TabIndex        =   1
      Top             =   3750
      Width           =   2220
   End
   Begin VB.Shape shpTisch 
      BackColor       =   &H80000003&
      BorderColor     =   &H00808080&
      BorderWidth     =   5
      FillColor       =   &H000000FF&
      Height          =   3450
      Left            =   -1560
      Top             =   120
      Width           =   6855
   End
End
Attribute VB_Name = "frmTisch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub dgrTisch_Scroll(Cancel As Integer)
'dgrTisch.Row = dgrTisch.CurrentCellVisible dgrTisch.Row
'On Error Resume Next
'If dgrTisch.SelBookmarks.Count <> 0 Then dgrTisch.SelBookmarks.Remove 0
 '  dgrTisch.SelBookmarks.Add dgrTisch.Bookmark
'dgrTisch.Col = 0 'so kann nichts eingetragen werde
End Sub
'===================== FORMULAR EREIGNISSE ====================
'==============================================================
Private Sub Form_Load()
Me.dgrTisch.RowHeight = dgrTisch.Height / 6
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call MDIHauptmenu.TastenFarbeAbheben 'Hebt die Tastenfarben auf
End Sub
'===================== COMMANDBUTTON EREIGNISSE ====================
'===================================================================
Private Sub cmdTisch_Click()

If cmdTisch.Caption = "Alt" Then
    Me.cmdTisch.Caption = "Neu"
    Call mdlDatenbanken.TischAktualisieren(VarTisch, "Neu")
Else
    Me.cmdTisch.Caption = "Alt"
    Call mdlDatenbanken.TischAktualisieren(VarTisch, "Alt")
End If
End Sub

'===================== DataGrid EREIGNISSE ====================
'==============================================================
Private Sub dgrTisch_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call MDIHauptmenu.TastenFarbeAbheben 'Hebt die Tastenfarben auf
End Sub
Private Sub dgrTisch_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If frmTastenMenu2.txtPLU <> "" Then
frmTastenMenu2.txtPLU = ""
End If
End Sub
Private Sub dgrTisch_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
On Error Resume Next
If dgrTisch.SelBookmarks.Count <> 0 Then dgrTisch.SelBookmarks.Remove 0
   dgrTisch.SelBookmarks.Add dgrTisch.Bookmark
dgrTisch.Col = 0 'so kann nichts eingetragen werden
End Sub
Private Sub dgrTisch_KeyDown(KeyCode As Integer, Shift As Integer)
On Error Resume Next
If dgrTisch.SelBookmarks.Count <> 0 Then dgrTisch.SelBookmarks.Remove 0
   dgrTisch.SelBookmarks.Add dgrTisch.Bookmark
End Sub


