Hello all
Can someone help me with this problem:
I wrote a component derived from TEdit to do some extra work like skipping to
the next control when the data in de fields reaches maxlength. This works
fine, however I wrote the same logic for a TDBEdit component and this is what
went wrong:
When you have data aware components the OnChange event also raises when the
dataset is put **B0100000003because the control displays de table data. I
don't want that! Is there a way to get the controlstate so I can skip the
logic for the OnChange event? Otherwise I recieve a message: can not focus on
a nonvisible window. My code reacts om the OnChange event and skips to the
next control but that should not happen when the form is loaded!
Thanks for help in advance!
Hans Tap
--- Maximus/2 3.01
---------------
* Origin: Het PascalGG BBS (2:500/162)
|