Jump to content
GabrielMoraru

GroupDescendentsWith - Why 'TCustomAction' is promoted to TControl?

Recommended Posts

Here is a code snippet from VCL.controls.pas:

initialization

  ...

  StartClassGroup(TControl);

  ActivateClassGroup(TControl);

  GroupDescendentsWith(VCL.ImgList.TCustomImageList, TControl);

  GroupDescendentsWith(TCustomAction, TControl);

finalization

  ...

end.

Why is TCustomAction which derive from TComponent "promoted" to a TControl?



 

Share this post


Link to post

So that it is found in the controls list of the control or component vs the components list of a form or application.  

  • Like 1

Share this post


Link to post
Just now, Pat Foley said:

So that it is found in the controls list of the control or component vs the components list of a form or application.  

Oh... I thought it is related somehow to the Palette. THANKS

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×