[Lazarus] Suppressing OnChange

Timothy Groves the.tail.kinker at gmail.com
Thu Nov 8 16:28:34 CET 2012


I have a program which allows you to edit records.  This is done using a 
dynamic array of records, with three strings in each record.  I have 
been using TEdits to allow the user to edit the records.  The record is 
updated during TEdit.OnChange.

Unfortunately, whenever I push the data *from* a selected record *to* 
the form, TEdit.OnChange triggers, which tends to corrupt my data.  I 
tried disabling the TEdit, using TEdit.Enabled := false, but the event 
still triggers.

Any suggestions?






More information about the Lazarus mailing list