SubMenuStock
We will add the menu item that initiates the creation of the bar chart to the Stock menu. Figure 18-2 shows the code changes required to be made to the {create-menubar} method on the SubMenuStock class.
You can see in Figure 18-2 that we have added another MenuAction to the Stock SubMenu, Stock Bby Make Report. When the user clicks this menu item, he or she will execute the {stock-by-make} method.
Figure 18-2. SubMenuStock.create-menubar method listing.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| || Method: create-menubar || Purpose: This defines the appearance of the menu item ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| {method protected {create-menubar}:void set self._submenu = {SubMenu label={text ... |
Get Enterprise Curl now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.