home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Object = "{D26704A2-5E4B-11D3-83BB-AAAE6646E101}#1.0#0"; "ACTIVEMENUHELP.OCX"
- Begin VB.MDIForm frmMain
- BackColor = &H8000000C&
- Caption = "MenuHelpDemo"
- ClientHeight = 3195
- ClientLeft = 165
- ClientTop = 735
- ClientWidth = 4680
- LinkTopic = "MDIForm1"
- StartUpPosition = 3 'Windows Default
- WindowState = 2 'Maximized
- Begin MSComctlLib.StatusBar sbStatusBar
- Align = 2 'Align Bottom
- Height = 270
- Left = 0
- TabIndex = 0
- Top = 2925
- Width = 4680
- _ExtentX = 8255
- _ExtentY = 476
- _Version = 393216
- BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
- NumPanels = 3
- BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- AutoSize = 1
- Object.Width = 2619
- Text = "Status"
- TextSave = "Status"
- EndProperty
- BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Style = 6
- AutoSize = 2
- TextSave = "29-08-99"
- EndProperty
- BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Style = 5
- AutoSize = 2
- TextSave = "10:12 PM"
- EndProperty
- EndProperty
- End
- Begin ActiveMenuHelp.MenuHelp MenuHelp1
- Align = 1 'Align Top
- Height = 480
- Left = 0
- Top = 0
- Width = 4680
- _ExtentX = 8255
- _ExtentY = 847
- Menu2 = "mnuFileNew"
- Help2 = "Creates a New File"
- Menu3 = "mnuFileOpen"
- Help3 = "Open an exsisting file."
- Menu4 = "mnuFileClose"
- Help4 = "Close a open file."
- Menu6 = "mnuFileSave"
- Help6 = "Save current file."
- Menu7 = "mnuFileSaveAs"
- Help7 = "Save current file with a new name."
- Menu8 = "mnuFileSaveAll"
- Help8 = "Save all open files."
- Menu10 = "mnuFileProperties"
- Help10 = "Display properties of a file"
- Menu12 = "mnuFilePageSetup"
- Help12 = "Displays Page set up dialog."
- Menu13 = "mnuFilePrintPreview"
- Help13 = "See Print Preview before printing."
- Menu14 = "mnuFilePrint"
- Help14 = "Print a file."
- Menu16 = "mnuFileSend"
- Help16 = "Send a email or fax."
- Menu22 = "mnuFileExit"
- Help22 = "Exit the application."
- Menu24 = "mnuEditUndo"
- Help24 = "Undo last change."
- Menu26 = "mnuEditCut"
- Help26 = "Cut data and copy to clipboard."
- Menu27 = "mnuEditCopy"
- Help27 = "Copy to clipboard."
- Menu28 = "mnuEditPaste"
- Help28 = "Paste data from clipboard."
- Menu29 = "mnuEditPasteSpecial"
- Help29 = "Paste sp."
- Menu31 = "mnuViewToolbar"
- Help31 = "Diaplay / hide toolbar"
- Menu32 = "mnuViewStatusBar"
- Help32 = "Diaplay / hide status bar."
- Menu34 = "mnuViewRefresh"
- Help34 = "refresh document."
- Menu35 = "mnuViewOptions"
- Help35 = "Diaplay options."
- Menu36 = "mnuViewWebBrowser"
- Help36 = "Diaplay web browser."
- Menu38 = "mnuToolsOptions"
- Help38 = "Diaplay tools options."
- Menu40 = "mnuWindowNewWindow"
- Help40 = "Create a new window of open document."
- Menu42 = "mnuWindowCascade"
- Help42 = "Cascade."
- Menu43 = "mnuWindowTileHorizontal"
- Help43 = "Tile Horz."
- Menu44 = "mnuWindowTileVertical"
- Help44 = "Tile Vert."
- Menu45 = "mnuWindowArrangeIcons"
- Help45 = "Arrange icons of minimised docs."
- Menu47 = "mnuHelpContents"
- Help47 = "Diaplay help contents."
- Menu48 = "mnuHelpSearchForHelpOn"
- Help48 = "Search help on key."
- Menu50 = "mnuHelpAbout"
- Help50 = "About."
- Menu51 = "Menu~!@#$%End"
- End
- Begin VB.Menu mnuFile
- Caption = "&File"
- Begin VB.Menu mnuFileNew
- Caption = "&New"
- Shortcut = ^N
- End
- Begin VB.Menu mnuFileOpen
- Caption = "&Open..."
- Shortcut = ^O
- End
- Begin VB.Menu mnuFileClose
- Caption = "&Close"
- End
- Begin VB.Menu mnuFileBar0
- Caption = "-"
- End
- Begin VB.Menu mnuFileSave
- Caption = "&Save"
- End
- Begin VB.Menu mnuFileSaveAs
- Caption = "Save &As..."
- End
- Begin VB.Menu mnuFileSaveAll
- Caption = "Save A&ll"
- End
- Begin VB.Menu mnuFileBar1
- Caption = "-"
- End
- Begin VB.Menu mnuFileProperties
- Caption = "Propert&ies"
- End
- Begin VB.Menu mnuFileBar2
- Caption = "-"
- End
- Begin VB.Menu mnuFilePageSetup
- Caption = "Page Set&up..."
- End
- Begin VB.Menu mnuFilePrintPreview
- Caption = "Print Pre&view"
- End
- Begin VB.Menu mnuFilePrint
- Caption = "&Print..."
- End
- Begin VB.Menu mnuFileBar3
- Caption = "-"
- End
- Begin VB.Menu mnuFileSend
- Caption = "Sen&d..."
- End
- Begin VB.Menu mnuFileBar4
- Caption = "-"
- End
- Begin VB.Menu mnuFileMRU
- Caption = ""
- Index = 1
- Visible = 0 'False
- End
- Begin VB.Menu mnuFileMRU
- Caption = ""
- Index = 2
- Visible = 0 'False
- End
- Begin VB.Menu mnuFileMRU
- Caption = ""
- Index = 3
- Visible = 0 'False
- End
- Begin VB.Menu mnuFileBar5
- Caption = "-"
- Visible = 0 'False
- End
- Begin VB.Menu mnuFileExit
- Caption = "E&xit"
- End
- End
- Begin VB.Menu mnuEdit
- Caption = "&Edit"
- Begin VB.Menu mnuEditUndo
- Caption = "&Undo"
- End
- Begin VB.Menu mnuEditBar0
- Caption = "-"
- End
- Begin VB.Menu mnuEditCut
- Caption = "Cu&t"
- Shortcut = ^X
- End
- Begin VB.Menu mnuEditCopy
- Caption = "&Copy"
- Shortcut = ^C
- End
- Begin VB.Menu mnuEditPaste
- Caption = "&Paste"
- Shortcut = ^V
- End
- Begin VB.Menu mnuEditPasteSpecial
- Caption = "Paste &Special..."
- End
- End
- Begin VB.Menu mnuView
- Caption = "&View"
- Begin VB.Menu mnuViewToolbar
- Caption = "&Toolbar"
- Checked = -1 'True
- End
- Begin VB.Menu mnuViewStatusBar
- Caption = "Status &Bar"
- Checked = -1 'True
- End
- Begin VB.Menu mnuViewBar0
- Caption = "-"
- End
- Begin VB.Menu mnuViewRefresh
- Caption = "&Refresh"
- End
- Begin VB.Menu mnuViewOptions
- Caption = "&Options..."
- End
- Begin VB.Menu mnuViewWebBrowser
- Caption = "&Web Browser"
- End
- End
- Begin VB.Menu mnuTools
- Caption = "&Tools"
- Begin VB.Menu mnuToolsOptions
- Caption = "&Options..."
- End
- End
- Begin VB.Menu mnuWindow
- Caption = "&Window"
- WindowList = -1 'True
- Begin VB.Menu mnuWindowNewWindow
- Caption = "&New Window"
- End
- Begin VB.Menu mnuWindowBar0
- Caption = "-"
- End
- Begin VB.Menu mnuWindowCascade
- Caption = "&Cascade"
- End
- Begin VB.Menu mnuWindowTileHorizontal
- Caption = "Tile &Horizontal"
- End
- Begin VB.Menu mnuWindowTileVertical
- Caption = "Tile &Vertical"
- End
- Begin VB.Menu mnuWindowArrangeIcons
- Caption = "&Arrange Icons"
- End
- End
- Begin VB.Menu mnuHelp
- Caption = "&Help"
- Begin VB.Menu mnuHelpContents
- Caption = "&Contents"
- End
- Begin VB.Menu mnuHelpSearchForHelpOn
- Caption = "&Search For Help On..."
- End
- Begin VB.Menu mnuHelpBar0
- Caption = "-"
- End
- Begin VB.Menu mnuHelpAbout
- Caption = "&About "
- End
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub MDIForm_Load()
- LoadNewDoc
- End Sub
- Private Sub LoadNewDoc()
- Static lDocumentCount As Long
- Dim frmD As frmDocument
- lDocumentCount = lDocumentCount + 1
- Set frmD = New frmDocument
- frmD.Caption = "Document " & lDocumentCount
- frmD.Show
- End Sub
- '******* You need to add this event to update the ************
- '******* status bar contents for active menu help ************
- Private Sub MenuHelp1_MenuSelected(menuString As String)
- sbStatusBar.Panels(1).Text = menuString
- End Sub
- Private Sub mnuFileExit_Click()
- 'unload the form
- Unload Me
- End Sub
- Private Sub mnuFileOpen_Click()
- If ActiveForm Is Nothing Then LoadNewDoc
- End Sub
- Private Sub mnuFileNew_Click()
- LoadNewDoc
- End Sub
-