home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 5.00 Begin VB.MDIForm frmMain BackColor = &H8000000C& Caption = "Mouse Examples" ClientHeight = 4395 ClientLeft = 1290 ClientTop = 2160 ClientWidth = 7275 LinkTopic = "MDIForm1" Begin VB.Menu mnuOptions Caption = "&Options" Begin VB.Menu mnuClickLine Caption = "&Click-A-Line" End Begin VB.Menu mnuScribble Caption = "&Scribble" End Begin VB.Menu mnuDragDrop Caption = "&Drag and Drop" End Begin VB.Menu sep1 Caption = "-" End Begin VB.Menu mnuInstructions Caption = "&Instructions" End Begin VB.Menu sep2 Caption = "-" End Begin VB.Menu mnuExit Caption = "E&xit" End End Attribute VB_Name = "frmMain" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub MDIForm_Unload(Cancel As Integer) End End Sub Private Sub mnuClickLine_Click() frmClickLine.Cls End Sub Private Sub mnuDragDrop_Click() frmDrag.Show End Sub Private Sub mnuExit_Click() End End Sub Private Sub mnuInstructions_Click() ' Declare local variables. Dim MsgText Dim CR Dim PB ' Initialize paragraph break local variable. CR = Chr$(10) & Chr$(13) PB = Chr$(10) & Chr$(13) & Chr$(10) & Chr$(13) ' Define message text. MsgText = "Click-A-Line" MsgText = MsgText & CR & "Click the form several times to draw connecting lines." MsgText = MsgText & PB & "Scribble" MsgText = MsgText & CR & "Drag the mouse across the form to draw a line." MsgText = MsgText & PB & "Drag and Drop" MsgText = MsgText & CR & "Select a valid text (.txt), bitmap (.bmp), Windows executable (.exe), or Help (.hlp) file in the file list box. Drag the file and drop it into the picture box to display or execute the file." ' Display the message. MsgBox MsgText, 64, "Mouse Demo Instructions" End Sub Private Sub mnuScribble_Click() frmScribble.Cls End Sub