Sample Code for Pop-Up Menu Methods

This section illustrates a complete pop-up menu sample program. The source code for a sample Hello application is provided here to demonstrate how to customize a Workplace Shell pop-up menu. The application creates a new class, Hello, from the WPDataFile class with a modified pop-up menu, and then creates an instance of the new class called MyHello. An instance of the Hello class will be just like a WPDataFile object with the following exceptions:


[Back: Supporting User Selection of New Pop-Up Menu Items]
[Next: Pop-Up Menu Application Sample Code]