Solved

Popup menus

Posted on 1997-04-23
2
142 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
ID: 1335676
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
ID: 1335677
I just can't find such a property in the help... I should have tried by myself...
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

838 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