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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:17:08+00:00 2026-06-11T03:17:08+00:00

I created a Custom components SkinMgr and SkinPanel in delphi2009. i wanted the two

  • 0

I created a Custom components SkinMgr and SkinPanel in delphi2009. i wanted the two component automatically link together even if the SkinMgr is in a DataModule or anywhere in the other form.

any help, sample or suggestion.

thank you in advance.

  • 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-11T03:17:09+00:00Added an answer on June 11, 2026 at 3:17 am

    Here’s a quick test with a TActionList descendant and TCustomActionManager: when an instance of TActionListEx component is dropped on a form at designtime, it enumerates all current project’s modules and try to find a form/datamodule with an instance of TCustomActionManager. If it finds one, it adds the newly created TActionListEx to its LinkedActionLists collection.

    Runtime package:

    unit TestComponents;
    
    interface
    
    uses
      System.Classes, Vcl.ActnList;
    
    type
      TActionListEx = class(TActionList)
      public
        constructor Create(AOwner: TComponent); override;
      end;
      TNotifyProc = procedure(Sender: TObject);
    
    var
      CreateNotify: TNotifyProc = nil;
    
    implementation
    
    { TActionListEx }
    
    constructor TActionListEx.Create(AOwner: TComponent);
    begin
      inherited Create(AOwner);
      if (csDesigning in ComponentState) and Assigned(CreateNotify) then
        CreateNotify(Self);
    end;
    
    end.
    

    Design time package:

    unit TestComponentsDesign;
    
    interface
    
    procedure Register;
    
    implementation
    
    uses
      System.Classes, System.SysUtils,
      Vcl.ActnMan,
      ToolsAPI,
      TestComponents;
    
    procedure CreateNotifyProc(Sender: TObject);
    var
      ActionList: TActionListEx absolute Sender;
      ModuleServices: IOTAModuleServices;
      ActiveProject: IOTAProject;
      I, J: Integer;
      ModuleInfo: IOTAModuleInfo;
      Module: IOTAModule;
      Editor: IOTAFormEditor;
      RootComponent: IOTAComponent;
      Component: INTAComponent;
      ActionManager: TCustomActionManager;
      ActionListItem: TActionListItem;
    begin
      if not (Sender is TActionListEx) or not (csDesigning in ActionList.ComponentState) then
        Exit;
    
      if not Supports(BorlandIDEServices, IOTAModuleServices, ModuleServices) then
        Exit;
    
      ActiveProject := ModuleServices.GetActiveProject;
      if not Assigned(ActiveProject) then
        Exit;
    
      for I := 0 to ActiveProject.GetModuleCount - 1 do
      begin
        Module := nil;
        Editor := nil;
        RootComponent := nil;
    
        ModuleInfo := ActiveProject.GetModule(I);
        if Assigned(ModuleInfo) and (ModuleInfo.FormName <> '') then
          Module := ModuleInfo.OpenModule;
    
        if Assigned(Module) then
          for J := 0 to Module.ModuleFileCount - 1 do
            if Supports(Module.ModuleFileEditors[J], IOTAFormEditor, Editor) then
              Break;
    
        if Assigned(Editor) then
          RootComponent := Editor.GetRootComponent;
    
        if Assigned(RootComponent) then
          for J := 0 to RootComponent.GetComponentCount - 1 do
            if Supports(RootComponent.GetComponent(J), INTAComponent, Component) and (Component.GetComponent is TCustomActionManager) then
            begin
              ActionManager := TCustomActionManager(Component.GetComponent);
              ActionListItem := ActionManager.LinkedActionLists.Add as TActionListItem;
              try
                ActionListItem.ActionList := ActionList;
                Editor.MarkModified;
                Exit;
              except
                ActionListItem.Free;
                raise;
              end;
            end;
      end;
    end;
    
    procedure Register;
    begin
      RegisterComponents('Test', [TActionListEx]);
      CreateNotify := CreateNotifyProc;
    end;
    
    initialization
    
    finalization
      CreateNotify := nil;
    
    end.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom component based on spark.components.HGroup and it works mostly as
I created an activity which holds 3 custom components (defined in xml). 2 components
I'm creating some custom components and backing code. I've created a Flex library project
I created a custom button component that accepts an array as a property. I
I haven't ever before created custom components in JSF so I've noticed only now
I have created a component and it is automatically shown in toolbox when I
I have created for my application, some custom GUI component and used them. Now
I have created a small flash CS4 project that has a few custom components
i have created custom components in flex where i have used a button,i want
I've created a Custom Component in layout/XML which has 2 TextViews and 2 Buttons.

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.