Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Remove parent TMenuItem in a TPopupMenu or recursively add items from PopupMenu1 into PopupMenu2 without the parent TMenuItem

Avatar of skynergy
skynergy asked on
Delphi
5 Comments1 Solution853 ViewsLast Modified:
Question A:
I have a TPopupMenu that have the following TMenuItems in each tier:
Tier1     Tier2    Tier3
-----      -----      -----
parent  child_1  sub_item_a
                            sub_item_b
            child_2  sub_item_c
                            sub_item_d
            child_3   sub_item_e
                            sub_item_f
                 
How do I remove the 1st TMenuItem (called 'parent' in this example) from the TPopupMenu, so it that the TMenuItems that remain will show as follows:
Tier1     Tier2    
-----       -----
child_1  sub_item_a
               sub_item_b
child_2  sub_item_c
               sub_item_d
child_3  sub_item_e
               sub_item_f                
         
Question B:        
If one cannot remove the first tier's TMenuItem, how do I recursuvely go through TPopupMenu1 and add all the TMenuItems from TPopupMenu1, except for the parent TMenuItem, to TPopupMenu2?
ASKER CERTIFIED SOLUTION
Avatar of skynergy
skynergy

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers