i'm trying to dynamically show a form in a TPanel using this function
procedure Show_form_in_panel(form: TForm; Panel: Tpanel);
begin
form.Parent := Panel;
form.Show;
form.WindowState := wsMaximized;
end;
the form is showing very normal but he's not maximized in my panel and also i want to make this form automaticly react like components that have the Alight property = (alClient)
alClient
? That's how I do it. – Jerry DodgeTForm
inside aTPanel
sounds unusrual to me. Is this supposed to work? Have you considered using aTFrame
instead of aTForm
? – Wosi