by Roger Light (1 Submission)
Category: Complete Applications
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)
Learn how to create fully functional menus with the Windows API. DynMenu is a utility that allows users to create their own functional popup menus that can be accessed by double clicking a .dym file. The menus can also be added to the system tray.
DynMenu is used to both create .dym files and to show the menu.
This code is the complete source for DynMenu. It shows how to use GGZMLParser, a minimal SAX XML parser and also how to create menus "on the fly" using the Windows API. In addition to the usual code you may have seen for creating menus in this way, the DynMenu code also supports infinitely (resource restricted anyway) many sub menus, splitting menus into a number of columns and adding checked/unchecked menu graphics as are often seen in the VB menus.
Assumes
DynMenu and GGZMLParser are both released under the GNU General Public License v2. Read the file copying.txt to see your rights.
Essentially, you are allowed to use the code in DynMenu as long as any code in the same program as the DynMenu code is also released under the GPL and you must release the source code as well if you release a binary.
Side Effects
Adding checked/unchecked menu graphics does not work perfectly when loading bitmaps from disk as is the case with DynMenu.
Download DynMenu (43 KB)