Skip to Content
Programming PERL in the .NET Environment
book

Programming PERL in the .NET Environment

by Yevgeny Menaker, Michael Saltzman, Robert J. Oberg
September 2002
Intermediate to advanced content levelIntermediate to advanced
496 pages
10h
English
Addison-Wesley Professional
Content preview from Programming PERL in the .NET Environment

Menus

The important part of modern window-based user interfaces is menus. We implement them in code so that we do not need any additional resource file. We build up an application menu using the MenuItem class objects that can contain subitems of the same class. The top-level menu is a MainMenu class object. We assign its reference to the Menu property of our form. To handle choosing by the user of menu items, we hook a delegate to the Click event.

WinTime: Step 4

In Step 4, we enrich our WinTime application by adding a simple menu (see Figure 14-5). By choosing File | Exit, we can exit our program. The code for this step resides in the WinTime\Step4 directory.

Figure 14-5. WinTime: Step 4.
MENU CODE
 # # WinTime.pl – Step 4 # . . . =for interface ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself Perl in 21 Days, Second Edition

Sams Teach Yourself Perl in 21 Days, Second Edition

Laura Lemay, Rafe Colburn
Pro Perl

Pro Perl

Peter Wainwright

Publisher Resources

ISBN: 0130652067Purchase book