Subject Re: [IBO] TIB_SpinEditEnh OnChange event
Author Geoff Worboys
> Geoff, this solution will only delay firing of the event
> but won't stop it. I think that components whose values
> are generated from the DFM don't call OnChange or an
> equivalent event. Would it work with a cheap solution?
> I mean assigning the OnChange property's value to a temp,
> then using "try", disabling the event, doing the value
> assignment and restoring the OnChange's
> value in the "finally" part?

Or set up so that I check csLoading in the OnChange generator. I did
think of trying something along these lines but I was a little
uncertain of the possible side effects. Not sure what or how, but it
seemed possible. Since the VCL does not explicitly prevent events
(but seems to rely on load order), I was reluctant to implement in
this manner.

Another possibility may be to simply change the DefineProperties
override so that I call inherited last instead of first. Not sure if
this would have the desired effect or not, I will have a play and see
what turns up.

Geoff Worboys
Telesis Computing