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 7873489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:31:44+00:00 2026-06-03T02:31:44+00:00

I have 2 forms which I’d like to share one single TActionManager and assigned

  • 0

I have 2 forms which I’d like to share one single TActionManager and assigned TAction-s.

First form is main form – it holds TActionManager, TAction with caption “Action”.

Main menu of Form1 has this action and menuitem caption property set to “Action A”.
Form2 includes Form1 and also assigns action to menuitem and caption is set to “Action B”.

During design time everything looks good – menu items are named “Action A” and “Action B” in Form1 and Form2 and same action is assigned. It also works fine during runtime (OnExecute is properly processed for both forms).

However – during runtime, Form1 menu item has caption “Action A” and Form2 has menu item caption “Action” just like the action caption.

Am I including them incorrectly, is it possible to include Form1 on Form2 to share action and to change caption? Is it a bug in D2010 / CB2010?

Example:

  1. Create Form1 and Form2 and add main menu to both
  2. Drop TActionManager to Form1 and create Action1 in it.
  3. Assign menu item in Form1 Action1 and after that modify Caption (caption is shown now as bold indicating change from default value)
  4. Assign menu item in Form2 also Action1 (from Form1 TActionManager) and also change default caption.
  5. During runtime now Form1 has changed caption (different from Action1.Caption), and Form2 has identical caption to Action1.Caption although the caption should be new value as changed in step 4.
  • 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-06-03T02:31:45+00:00Added an answer on June 3, 2026 at 2:31 am

    I reproduced your issue and indeed, this is strange behaviour. Besides the obvious question why to change the menu items captions, the following should work:

    Set both menu item’s Action property to the same action. Now the captions of the menu items are linked to that of the action and note that they are not stored any longer (they appear not bold in the object inspector). Subsequently, change the captions from the menu items to independent values, and note that they now are stored and that the menu items indeed change accordingly at designtime.

    But at runtime, the caption of the second menuitem indeed follows that of the action again. This should not happen in my opinion.

    What I did not reproduce is the inabbility to change it at runtime. The following works as expected (D7 here):

    procedure TForm2.FormCreate(Sender: TObject);
    begin
      mnuAction1.Caption := 'Action B';
    end;
    

    Sure you are changing the caption of the menu items instead of that of the action?

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

Sidebar

Related Questions

I have a form created in Windows Forms which is draggable wherever I click.
I have several forms on one page which are submitted using ajaxForm and show
I have a form MainForm which is a Windows Forms form that contains many
I have made a Base Form which is inherited by most Forms in the
I have the following form for photo_album which uses the nested forms feature of
I have an application, where there are many forms which follow visual form inheritance.
We have an MDI form which contains some number of child forms which have
I have 2 forms of which one of them has a shockwave component added
If I have Checked list box in Win forms which I fill like this
I have a windows forms project. It has a main form derived from System::Windows::Forms::Form

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.