lfrodrigues
asked on
MDI forms
I need a way, knowing the MDI child caption to bring it to top of wall the other MDI childs.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks TheNeil
procedure TForm1.Display1Click(Sende
var
Cap: string;
i: Integer;
begin
Cap:= InputBox('', '', '0');
for i:= 0 to Form1.ComponentCount - 1 do
if Form1.Components[i] is TForm then
if (Form1.Components[i] as TForm).Caption = Cap then
(Form1.Components[i] as TForm).SetFocus;
end;
Form1 is the MIDI form
Form2 is the child form
Cap the caption that you want it's Form to be activated.
Motaz