Progress
Programming
Handbook
Duplicating Menus
Once a menu or submenu is defined, you can make a duplicate of it and use it in another submenu that you are defining with the LIKE phrase. This duplicate inherits all the properties of the original menu—such as name, menu items, and definitional triggers. To avoid ambiguity when you subsequently refer to menu items either in the original menu or in its duplicate, use the IN MENU clause.
The following code defines two buttons, each with a pop-up menu. The second pop-up menu is defined to be like the first one and thereby inherits the former’s characteristics.
p-popup2.p
![]()
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |