Stumbled on a really weird problem in my project:
I'm trying to develop a MDI project.
Got a main form with formStyle := fsMDIForm.
Got a child form with formStyle := fsMDIChild.
On the main form, this is the code used to create and show the child (FormUsuario) form:
begin
Application.CreateForm(TFormUsuario, FormUsuario);
FormUsuario.Parent := FormMDI;
FormUsuario.Show;
end;
It works fine except for a pair of TDBEdits controls I got on the child form. I can't focus or type anything inside them (the field value is shown correctly though). In this child form I also have a grid which works correctly, so it's just something about the TDBEdits.
If I remove the ' FormUsuario.Parent := FormMDI;' line in the form creation, these controls work just fine, but then the MDI behavior doesn't.
Any ideas for the reason behind this or how to get it to work properly?
Thanks in advance.