TAdvDBFormBox at start

I would like to know how to change the DB edit controls created from the automatic layout in code.


I have a database table that I want to change the date fields created from TDBAdvEdit to the DBDateTimePicker.  I have multiple fields, though, that are TDBAdvEdit type that I want to preserve.

Is there a method of reading the layout items and altering them?  From the brief manual, it looks like the event OnControlCreate would be where it should happen, but I do not see any example of how to use this event, or how to identify the current field being mapped.

OK, found out how to do it.  Thanks.