home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin MDIForm frmMain
- Caption = "Scroll-2 Demo"
- Height = 2220
- Icon = SCROLL-2.FRX:0000
- Left = 1080
- LinkTopic = "MDIForm1"
- Top = 1200
- Width = 5535
- Begin PictureBox picMenuBar
- Align = 1 'Align Top
- AutoRedraw = -1 'True
- BackColor = &H00808080&
- BorderStyle = 0 'None
- Height = 495
- Left = 0
- ScaleHeight = 33
- ScaleMode = 3 'Pixel
- ScaleWidth = 361
- TabIndex = 0
- Top = 0
- Width = 5415
- Begin CommandButton cmdExit
- Caption = "E&xit"
- Height = 375
- Left = 0
- TabIndex = 1
- Top = 0
- Width = 1815
- End
- End
- ' SCROLL-2.FRM - Declarations.
- DefInt A-Z
- ' End Of Declarations.
- Sub cmdExit_Click ()
- ' What does this do?
- End
- End Sub
- Sub MDIForm_Load ()
- ' In design mode, the frmScroll caption is set to "frmScroll", just to help
- ' identify it. However, when the program runs, it's important to set the
- ' caption to "" (null) so the form will NOT have a title bar.
- frmScroll.Caption = ""
- ' Go ahead and show the scrolling form.
- frmScroll.Show
- End Sub
- Sub picMenuBar_Resize ()
- ' When picMenuBar is automatically "stretched" by a form resize,
- ' then you have to fix the command button size to match.
- ' This control is not necessary for form scrolling. It's just
- ' included to show "controls in a top aligned picture box".
- cmdExit.Move 0, 0, picMenuBar.ScaleWidth, picMenuBar.ScaleHeight
- End Sub
-