Problem opening form inside panel

0

I'm trying to open a form inside a panel in Delphi, but apparently the form opens with the same panel size, but outside it.

I did so ...

UniForm1.Parent := UniPanel1;
UniForm1.Show;

    
asked by anonymous 15.09.2017 / 16:49

2 answers

0

I have solved the following code in addition to changing WindowState from wsMaximized to wsNormal and the Position to poDefaultPosOnly .

UniForm1.Width := UniPanel1.Width;
UniForm1.Height := UniPanel1.Height;
    
19.09.2017 / 14:08
0

If you use a Frame instead of a Form you can do what you want.

  tuaFrame:=TUniFrame1.Create(self);
  tuaFrame.Parent:=teuPainel;
  tuaFrame.Align:=alclient;
  tuaFrame.Visible:=true;
    
16.09.2017 / 02:07