VBMenuBar


A menu bar is a region where computer menus are housed. Its purpose is to house window- or application-specific menus which provide access to such functions as opening files, interacting with an application, or help. You add IMenuItem objects to the menu bar to construct a menu.

Contents

Sample

Public Sub Form_Load()
   Dim tmpGroupFile As VBMenuGroup = Me.MenuBar.createMenuGroup(Null, "File", "File")
   Call Me.MenuBar.createMenu(tmpGroupFile, "New", "New")
   Call Me.MenuBar.createMenu(tmpGroupFile, "Open", "Open")
End Sub
 
Public Sub Form_MenuClick(MenuItem As VB#IMenuItem)
   MsgBox "Caption: " & MenuItem.Caption & " - ControlID: " & MenuItem.ControlID
End Sub

Context/PopupMenu

todo ...

Differences to VB6

With VB6, the menubar is viewable at design time. With Jabaco, it is not viewable at design time

Related

The easiest way, to create a menu, is to use a menu-creator. More information about it and a download-link you can find at [http://www.jabaco.org/board/581-menubar-creator.html] With the menu-creator, you can also creating more things, then here in the documentation is shown.

Retrieved from "http://www.jabaco.org/wiki/VBMenuBar"

This page has been accessed 5,321 times. This page was last modified on 25 July 2014, at 19:54.


This page has been accessed 5,321 times. This page was last modified on 25 July 2014, at 19:54.