TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: HANS TAP
date: 1997-11-30 00:45:00
subject: OnChange event

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.