home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.MDIForm MDIForm1
- AutoShowChildren= 0 'False
- BackColor = &H8000000C&
- Caption = "MDIDemo2"
- ClientHeight = 4815
- ClientLeft = 165
- ClientTop = 735
- ClientWidth = 8160
- LinkTopic = "MDIForm1"
- StartUpPosition = 3 'Windows Default
- Begin VB.Menu Forms
- Caption = "Child Forms"
- Begin VB.Menu FormOpen
- Caption = "Open Forms"
- End
- Begin VB.Menu FormsClose
- Caption = "Close Forms"
- End
- End
- Begin VB.Menu WindowMenu
- Caption = "Window"
- WindowList = -1 'True
- Begin VB.Menu WindowCascade
- Caption = "Cascade"
- End
- Begin VB.Menu WindowTileH
- Caption = "Tile Horizontally"
- End
- Begin VB.Menu WindowTileV
- Caption = "Tile Vertically"
- End
- Begin VB.Menu WindowArrange
- Caption = "Arragnge Icons"
- End
- End
- Attribute VB_Name = "MDIForm1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim DocumentForms(10) As New ChildForm
- Private Sub FormsClose_Click()
- Dim i As Integer
- For i = 0 To 9
- Unload DocumentForms(i)
- Next
- End Sub
- Private Sub FormOpen_Click()
- Dim i As Integer
- For i = 0 To 9
- DocumentForms(i).Show
- DocumentForms(i).BackColor = QBColor(Rnd * 14 + 1)
- DocumentForms(i).Caption = "Document " & Format(i)
- DocumentForms(i).Tag = i
- Next
- End Sub
- Private Sub ShowActive_Click()
- End Sub
- Private Sub WindowArrange_Click()
- MDIForm1.Arrange vbArrangeIcons
- End Sub
- Private Sub WindowCascade_Click()
- MDIForm1.Arrange vbCascade
- End Sub
- Private Sub WindowTileH_Click()
- MDIForm1.Arrange vbTileHorizontal
- End Sub
- Private Sub WindowTileV_Click()
- MDIForm1.Arrange vbTileVertical
- End Sub
-