Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7645499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:57:27+00:00 2026-05-31T09:57:27+00:00

I have an application with a form that has a main menu. Now I

  • 0

I have an application with a form that has a main menu. Now I would like to show a popup menu (MPopup) that contains an exact copy of the items in one of its sub-menus (MEdit):

class MyForm
{
__published:
TMainMenu *MainMenu1;
TMenuItem *MFile;
TMenuItem *MEdit;
// ...
TPopupMenu *MPopup;
// ...

How can I populate the popup menu without having to manage redundant items? All menus in question are static, no dynamic population.

System info: RAD Studio 2007 (C++ Builder)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:57:28+00:00Added an answer on May 31, 2026 at 9:57 am

    You cannot share menu items between multiple menus. You have to make a copy of the items in each menu. In your Form’s constructor, I would loop through the MainMenu items and create new PopupMenu sub-items that have the same property values, OnClick event handlers, etc as needed.

    UPDATE:

    Alternatively, you can place a TActionList on your Form and fill it with TAction objects that define your desired menu item properties and event handlers, and then you can create menu items in both menus as needed that simply refer to the same TActions via the TMenuItem::Action property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Delphi application that has a document browser as the main form.
I have a C# Windows Form application that contains a menu with this event:
I have an application with main form. the main form has menu and some
I have an application that has a main form and uses an event handler
I have an application that has a few different forms. From the main form
I have a Windows application that has 2 Forms . From one form I
I have application in VB.net that have two different form (Form1 and Form2). Now
I have an application that has 5 different sized frames. I'd like to dynamically
I have a WinForms application. the main form is has a lot of controls
Windows Forms, .net 2.0 My main application thread has a form (A). I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.