Modifying VCL Component CODE
问题 I need to change the functionality in a component. What do you do when you get a "you can't override this" message, or you need to change the code in a private method ("method does not exist in base class" message), rendering it impossible to descend the component? 回答1: If I face that problem, I first try to inherit from the component, or its CustomXXX ancestor and see if that fixes the problem. If that doesn't, I go deeper, i.e. try to intercept the messages that come in. That can be done