Hello, I'mtrying todynamically createformsstoredin abpl.Buttocreate themthey are openinginvclmode.
I'm callingthe following functionwithin thebplto createthe form.
function RegisterPkg(sAWidth,sAHeight: Integer; gUniMainModule : TuniGUIMainModule;
gUniApplication : TUniGUIApplication):TGenericProgram;
begin
...
pkgProgram.FfrmMain := TUniForm( gUniMainModule.GetFormInstance(TfrmMyForm,true) );
if pkgProgram.FfrmMain.WebMode then
ShowMessage('web')
else
if pkgProgram.FfrmMain.VCLMode then
ShowMessage('vcl');
...
end;
I wonderif I'mdoing theright wayorwhat would be themode tocreate themin webmode andnot invcl.
Form in BPL
in General
Posted
Hello,
I'm trying to dynamically create forms stored in a bpl. But to create them they are opening in vcl mode.
I'm calling the following function within the bpl to create the form.
I wonder if I'm doing the right way or what would be the mode to create them in web mode and not in vcl.