Guest Posted December 18, 2019 Does anyone know why this property is not published at the TAction level? If so would you please explain. TIA /D Share this post Link to post
Anders Melander 1782 Posted December 18, 2019 (edited) Why do you ask? Edited December 18, 2019 by Anders Melander never mind Share this post Link to post
Guest Posted December 18, 2019 Because it would be very very neat to be able to set this property in the dfm. It kind of goes together with the published property Enabled. /D Share this post Link to post
Anders Melander 1782 Posted December 18, 2019 Yes, but you can't. I don't know the history behind it but I can see arguments both for and against having actions disabled if there's no handler and maybe that's why they decided to make it optional. Maybe not making it published was to avoid having the noobs shoot themselves in the foot with it. I don't know (and I don't care which is why I tried to delete my question after I asked it 🙂). It's a very minor annoyance that can easily be worked around with an empty OnExecute handler so I don't really care about it anymore. Submit a change request if it's important to you. Share this post Link to post
Guest Posted December 18, 2019 I agree, it's no biggie. Thanks for the input! Share this post Link to post
Andrea Raimondi 13 Posted March 14, 2020 On 12/18/2019 at 2:39 PM, Dany Marmur said: Does anyone know why this property is not published at the TAction level? If so would you please explain. TIA /D My assumption here (which means I may be wrong) is to discourage you from doing precisely what you're trying to do, i,e. change it at design time. With that said, it's a decision that sits quite well with me for the simple reason that it allows me to enable things as I go along, so that at any given point I can, for example, showcase things while still giving off that "unfinished" feel that is so important if you're dealing with upper management/customers/etc. Share this post Link to post