Jump to content

[MOVILE]How to create a mobile form by name


asapltda

Recommended Posts

  • 2 weeks later...

English:

Hi Carlos, here is the code for creating a TUnimForm at runtime by the class name. I hope be useful to you.

 

Spanish:

Hola Carlos, acá te mando el código para crear una TUnimForm en tiempo de ejecución por el nombre de la clase. Espero te sea de utilidad.

 

MobileForm.zip

Link to comment
Share on other sites

  • 1 year later...
procedure TMainmForm.ShowFrame(AClass: string);

var

  FFrame : TUniFrame;

  FrC : TUniFrameClass;

begin

     FrC := TUniFrameClass(FindClass(AClass));

     if frc <> nil then

     begin

          FFrame := TUniFrameClass(FindClass(AClass)).Create(Self);

          if FFrame <> nil  then

          begin

               FFrame.Align := alClient;

               FFrame.Parent := ContainerPanel;

          end;

     end;

end;

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...