TPersistent.com – Have you ever wanted to assign a method to an event property in code when you haven’t written the event handler yet? Code Insight can provide the method prototype for the event, but you have to manually type in the declaration for the new method you want to assign. Clear as mud? Perhaps an example to illustate the situation will make it clear: Let’s say I want to assign an event handler to a TcxSpinEdit control’s OnValidate event. I have the following in code: TcxSpinEdit(Control).Properties.OnValidate and I press Ctrl+Space for Code Insight. It shows the method ...
Visits by Source
Users who voted for this posting