home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.MDIForm frmDemo
- BackColor = &H8000000C&
- Caption = "Northwind Traders"
- ClientHeight = 5352
- ClientLeft = 1500
- ClientTop = 2352
- ClientWidth = 9456
- Height = 5676
- Icon = "Demo.frx":0000
- Left = 1452
- LinkTopic = "MDIForm1"
- Top = 2076
- Width = 9552
- Begin VB.PictureBox picStatus
- Align = 2 'Align Bottom
- BorderStyle = 0 'None
- Height = 396
- Left = 0
- ScaleHeight = 396
- ScaleWidth = 9456
- TabIndex = 13
- Top = 4956
- Visible = 0 'False
- Width = 9456
- Begin VB.TextBox txtStatus
- BackColor = &H00C0C0C0&
- Height = 285
- Left = 1740
- Locked = -1 'True
- TabIndex = 14
- TabStop = 0 'False
- Text = "..."
- Top = 60
- Width = 7335
- End
- End
- Begin VB.PictureBox picADABAS
- Align = 3 'Align Left
- AutoSize = -1 'True
- Height = 4956
- Left = 1710
- ScaleHeight = 4908
- ScaleWidth = 7380
- TabIndex = 10
- Top = 0
- Width = 7428
- Begin VB.Label lblV
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Visual Basic 4.0 Demo"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 9.6
- underline = 0 'False
- italic = -1 'True
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF0000&
- Height = 240
- Index = 0
- Left = 5040
- TabIndex = 12
- Top = 900
- Width = 2055
- End
- Begin VB.Label lblV
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Visual Basic 4.0 Demo"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 9.6
- underline = 0 'False
- italic = -1 'True
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00C0C0C0&
- Height = 240
- Index = 1
- Left = 5040
- TabIndex = 19
- Top = 960
- Width = 2055
- End
- Begin VB.Label lblP
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Personal Edition"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 9.6
- underline = 0 'False
- italic = -1 'True
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF0000&
- Height = 240
- Index = 0
- Left = 5520
- TabIndex = 17
- Top = 600
- Width = 1530
- End
- Begin VB.Label lblA
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "ADABAS D"
- BeginProperty Font
- name = "Times New Roman"
- charset = 0
- weight = 700
- size = 24
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF0000&
- Height = 495
- Index = 0
- Left = 4560
- TabIndex = 15
- Top = 60
- Width = 2445
- End
- Begin VB.Label lblP
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Personal Edition"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 9.6
- underline = 0 'False
- italic = -1 'True
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00C0C0C0&
- Height = 240
- Index = 1
- Left = 5520
- TabIndex = 18
- Top = 660
- Width = 1530
- End
- Begin VB.Label lblA
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "ADABAS D"
- BeginProperty Font
- name = "Times New Roman"
- charset = 0
- weight = 700
- size = 24
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00C0C0C0&
- Height = 495
- Index = 1
- Left = 4620
- TabIndex = 16
- Top = 120
- Width = 2445
- End
- Begin VB.Label lblInfo
- BackStyle = 0 'Transparent
- Caption = "Info"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.6
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF0000&
- Height = 852
- Index = 0
- Left = 360
- TabIndex = 11
- Top = 1260
- Visible = 0 'False
- Width = 3792
- End
- Begin VB.Label lblInfo
- BackStyle = 0 'Transparent
- Caption = "Info"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 9.6
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00C0C0C0&
- Height = 852
- Index = 1
- Left = 420
- TabIndex = 20
- Top = 1320
- Visible = 0 'False
- Width = 3792
- End
- Begin VB.Image imgADABAS
- Height = 5055
- Left = 0
- Picture = "Demo.frx":030A
- Stretch = -1 'True
- Top = -60
- Width = 7335
- End
- End
- Begin VB.PictureBox picPanel
- Align = 3 'Align Left
- AutoSize = -1 'True
- Height = 4956
- Left = 0
- ScaleHeight = 4908
- ScaleWidth = 1668
- TabIndex = 0
- Top = 0
- Width = 1716
- Begin VB.CommandButton cmdForm
- Caption = "&Requests..."
- Height = 495
- Index = 8
- Left = 60
- TabIndex = 9
- Tag = "SQL requests"
- Top = 4380
- Width = 1515
- End
- Begin VB.CommandButton cmdForm
- Caption = "S&ales/Employee"
- Height = 495
- Index = 7
- Left = 60
- TabIndex = 8
- Tag = "Graphic with sales per employee"
- Top = 3840
- Width = 1515
- End
- Begin VB.CommandButton cmdForm
- Caption = "Sh&ippers"
- Height = 495
- Index = 6
- Left = 60
- TabIndex = 7
- Tag = "List of shippers"
- Top = 3300
- Width = 1515
- End
- Begin VB.CommandButton cmdForm
- Caption = "&Suppliers"
- Height = 495
- Index = 5
- Left = 60
- TabIndex = 6
- Tag = "Suppliers of Northwind Traders"
- Top = 2760
- Width = 1515
- End
- Begin VB.CommandButton cmdForm
- Caption = "&Orders"
- Height = 495
- Index = 4
- Left = 60
- TabIndex = 5
- Tag = "All orders with details (Master-Detail)"
- Top = 2220
- Width = 1515
- End
- Begin VB.CommandButton cmdForm
- Caption = "&Employees"
- Height = 495
- Index = 3
- Left = 60
- TabIndex = 4
- Tag = "Employees of Northwind Traders"
- Top = 1680
- Width = 1515
- End
- Begin VB.CommandButton cmdForm
- Caption = "C&ustomers"
- Height = 495
- Index = 2
- Left = 60
- TabIndex = 3
- Tag = "Customers of Northwind Traders"
- Top = 1140
- Width = 1515
- End
- Begin VB.CommandButton cmdForm
- Caption = "&Products"
- Height = 495
- Index = 1
- Left = 60
- TabIndex = 2
- Tag = "Products form"
- Top = 600
- Width = 1515
- End
- Begin VB.CommandButton cmdForm
- Caption = "&Categories"
- Height = 495
- Index = 0
- Left = 60
- TabIndex = 1
- Tag = "Categories with products (Master-Detail)"
- Top = 60
- Width = 1515
- End
- End
- Attribute VB_Name = "frmDemo"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- ' ADABAS D
- ' Personal Edition
- ' Copyright
- 1995 Software AG
- Option Explicit
- Private Sub cmdForm_Click(Index As Integer)
- picADABAS.Visible = False
- picStatus.Visible = True
- MousePointer = vbHourglass
- Select Case Index
- Case 0: frmCategories.Show
- Case 1: frmProducts.Show
- Case 2: frmCustomers.Show
- Case 3: frmEmployees.Show
- Case 4: frmOrders.Show
- Case 5: frmSuppliers.Show
- Case 6: frmShippers.Show
- Case 7: frmSales.Show
- Case 8: frmRequests.Show
- End Select
- MousePointer = vbDefault
- End Sub
- Private Sub cmdForm_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim i As Integer
- If Forms.Count = 1 Then
- If Not picADABAS.Visible Then
- picStatus.Visible = False
- picADABAS.Visible = True
- End If
- For i = 0 To 1
- lblInfo(i).Caption = cmdForm(Index).Tag
- lblInfo(i).Visible = True
- Next
- End If
- End Sub
- Private Sub imgADABAS_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim i As Integer
- For i = 0 To 1
- If lblInfo(i).Visible Then
- lblInfo(i).Visible = False
- End If
- Next
- End Sub
- Private Sub MDIForm_Load()
- On Error GoTo MDIForm_Load_Error
- StatusClose
- lblInfo(0).ForeColor = RGB(128, 0, 192)
- lblInfo(1).Move lblInfo(0).Left + Screen.TwipsPerPixelX, lblInfo(0).Top + Screen.TwipsPerPixelY
- Exit Sub
- MDIForm_Load_End:
- Unload Me
- Exit Sub
- MDIForm_Load_Error:
- StatusClose
- MsgBox "Error " & Str(Err.Number)
- Resume MDIForm_Load_End
- End Sub
- Private Sub MDIForm_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Forms.Count = 1 Then
- If Not picADABAS.Visible Then
- picStatus.Visible = False
- picADABAS.Visible = True
- End If
- End If
- End Sub
- Private Sub MDIForm_Resize()
- If WindowState = 1 Then Exit Sub
- If (Me.Width - picPanel.Width - Screen.TwipsPerPixelX * 8) > 0 Then
- picADABAS.Width = Me.Width - picPanel.Width - Screen.TwipsPerPixelX * 8
- End If
- End Sub
- Private Sub MDIForm_Unload(Cancel As Integer)
- dbCurrentDB.Close
- End Sub
- Private Sub picADABAS_Resize()
- imgADABAS.Move 0, 0, picADABAS.ScaleWidth, picADABAS.ScaleHeight
- If (picADABAS.ScaleWidth - lblA(0).Width - Screen.TwipsPerPixelX * 12) > 0 Then
- lblA(0).Move picADABAS.ScaleWidth - lblA(0).Width - Screen.TwipsPerPixelX * 12, Screen.TwipsPerPixelY * 4
- lblA(1).Move picADABAS.ScaleWidth - lblA(1).Width - Screen.TwipsPerPixelX * 11, Screen.TwipsPerPixelY * 5
- lblP(0).Move picADABAS.ScaleWidth - lblP(0).Width - Screen.TwipsPerPixelX * 12, lblA(0).Top + lblA(0).Height
- lblP(1).Move picADABAS.ScaleWidth - lblP(1).Width - Screen.TwipsPerPixelX * 11, lblA(1).Top + lblA(1).Height
- lblV(0).Move picADABAS.ScaleWidth - lblV(0).Width - Screen.TwipsPerPixelX * 12, lblP(0).Top + lblP(0).Height + Screen.TwipsPerPixelY * 5
- lblV(1).Move picADABAS.ScaleWidth - lblV(1).Width - Screen.TwipsPerPixelX * 11, lblP(1).Top + lblP(1).Height + Screen.TwipsPerPixelY * 5
- End If
- End Sub
- Private Sub picPanel_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim i As Integer
- If Forms.Count = 1 Then
- If Not picADABAS.Visible Then
- picStatus.Visible = False
- picADABAS.Visible = True
- End If
- For i = 0 To 1
- lblInfo(i).Visible = False
- Next
- End If
- End Sub
- Private Sub picStatus_Resize()
- If (picStatus.Width - txtStatus.Left - 60) > 0 Then
- txtStatus.Width = picStatus.Width - txtStatus.Left - 60
- End If
- End Sub
-