SubMenuStock

To enable a mechanism for VMS Motors application users to access the Transfer Cost window, we will extend the functionality of the SubMenuStock class to present another MenuItem option. Figure 22-8 shows the code required.

Figure 22-8. Additional code required for SubMenuStock.create-menubar.
 {define-class public SubMenuStock{inherits AppSubMenu} ||||||||||||||||||||||||||||||||||||||||||||||||||||||| || Method: create-submenu || Purpose: This defines the appearance of the menu || item ||||||||||||||||||||||||||||||||||||||||||||||||||||||| {method protected {create-menubar}:void set self._submenu = {SubMenu label={text {underline S}tock}, ... {menu-separator}, {MenuAction label={text {underline T}ransfer Cost}, key-access = 'T', ...

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.