TWebControl OnChange event

Hi,

I have created a component descended from the TWebControl class. Inside my parent element, I have, via CreateChildElements, created an INPUT element. I would like to give this element an OnChange event handler.

Of course, I know this can be done by accessing the .onchange property, but I was wondering if this can be done "smarter" akin to what Bruno demonstrates in his Component Development seminar, where rather than give buttons an .onclick event, he overrides the HandleDoClick routine.

I know HandleDoInput exists but I didn't think it was suitable for my requirements.

Thanks!

OnChange is not handled at TWebControl level, so unfortunately, you cannot override an existing method to do this.
This is introduced for example in TWebEdit in WEBLib.StdCtrls.pas, so you might have a look at this implementation for an idea how to do it.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.