How can I add new published (to be shown in Object Inspector) property to the Action of TActionList in Delphi
the property data type is Boolean.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Create your new action class by deriving from
TAction. For example:And then you can register it from your design time package’s
Registerprocedure by callingRegisterActions.Then from the action list editor, select
New Standard Actionand your action will appear in the tree view of available actions.In the comments you seem to imply that you want to modify
TActionto have a new property. That would require modification to the VCL itself and that’s beyond your control. No doubt the VCL could be hacked to achieve what you ask for but that’s not a good idea.