Main Menu for a Windows App

Download new library modules and examples to use with CPIde and Component Pascal. Forum members can also upload their own source code examples.
Post Reply
cfbsoftware
Site Admin
Posts: 525
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Main Menu for a Windows App

Post by cfbsoftware » Mon Dec 13, 2021 4:21 am

The attached example included with CPIde shows how to create a basic Windows App with a main menu.

When you select a menu item the menu caption is displayed on the StatusBar. The code includes a function which uses the .NET StringBuilder functions to efficiently strip non-alphabetic characters from a string.

MenuStrip.jpg
MenuStrip.jpg (19.35 KiB) Viewed 57997 times
Attachments
MenuStrip.zip
(1.59 KiB) Downloaded 3971 times

Post Reply