December 2002
Intermediate to advanced
400 pages
9h 25m
English
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.
{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', ... |
Read now
Unlock full access