Subject | Re: [IBO] TIB_SpinEditEnh OnChange event |
---|---|
Author | Geoff Worboys |
Post date | 2001-03-02T10:04:42Z |
> I have a question regarding the TIB_SpinEditEnh. It seem that<...>
> in the new vesions of IBO > 3.C that the TIB_SpinEditEnh fires
> a Change event when it is created.
> Is it correct to do so or is it a bug ?Its a bit of both :-)
I had thought the OnChange event was safe, since it is fired from the
underlying TCustomEdit class - which makes no attempt to prevent the
event during loading. However it seems that when a normal TCustomEdit
loads, the Text property is loaded early, the OnChange handler has not
yet been defined and so it does not fire. Due to some changes I had
to make to SpinEdit to support Delphi3, the Value property is loaded
late, now OnChange event is already defined and so it fires.
Probably more than you wanted to know :-)
I have been testing a work around for this problem - in which I delay
the initialisation of the controls Value property until Loading has
finished. If you like to test out this change let me know and I will
email the update to you directly.
Geoff Worboys
Telesis Computing