Solved

Popup menus

Posted on 1997-04-23
2
127 Views
Last Modified: 2010-08-05
Quite simple... How do I know how many Items does a TMenu or TPopupMenu contain? I wished the Item property was an array, but it's rather an indexed property... Just can't figure it out...
0
Comment
Question by:Nando
2 Comments
 
LVL 2

Accepted Solution

by:
javiertb earned 70 total points
Comment Utility
You can know how many menu items you have this way:

PopUpMenu1.Items.Count

And you can access any item by means of:

i.e.: PopupMenu1.Items[1].Enabled:=False; //Disable first                                                     menuitem
0
 

Author Comment

by:Nando
Comment Utility
I just can't find such a property in the help... I should have tried by myself...
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now