Jump to content

Recommended Posts

Posted

Hi;

I want to create a form embedded in the panel runtime.
I created a default unigui VCL Application / Standalone server application, I added a Unibutton and UniPanel to MainUnit-MainForm.

Subsequently add a free-form to application. and than I tried to create the Unit1-Form1 on UnitMain-MainForm-Panel1 with MainForm-Button1 onclick event.

 

 

uses
  uniGUIVars, MainModule, uniGUIApplication, Unit1;

function MainForm: TMainForm;
begin
  Result := TMainForm(UniMainModule.GetFormInstance(TMainForm));
end;

procedure TMainForm.UniButton1Click(Sender: TObject);
var
  Xform : TUniForm1;
begin
  Xform := TUniForm1.Create(uniApplication);
  Xform.Parent:= Unipanel2;
  xform.Show();
  Xform.Align := alClient;
end;

initialization
  RegisterMainFormClass(TMainForm);

end.

but I got the following errors.

 

First run;

283scl.jpg

 

 

click button1 got Access violation error ;

 

i4l4sh.jpg

 

click "Tamam" button;

 

2qwoq43.jpg

 

 

 

click "Tamam" button again

 

2yknv5i.jpg

 

 

Form2 not embed to MainForm.Panel2;

 

2a4pkkx.jpg

 

 

 

 

 

 

 

How can I solve this problem or anyway to create runtime panel embeded form.

Best regards.

 

 

 

 

 

 

Posted

Hi okkoos,

You can embed a uniFrame within a panel. Check out the Megademo here  http://prime.fmsoft.net/demo/ucdemo.dll

 

Hi rsanford;

thanks for your answer.

UniGUI is best. It is easier creating web apllication for object pascal programmers, but it is very similar to Windows desktop applications.

I want to make windowless and formless real world web interfaces with UniGui.

I asked this question for my this idea.

regards.

 

Posted

HI okkoos, yes UniGUI is the best solution for pascal programmers, and getting better. Note that you can create windowless/formless interfaces by setting UniServerModule's property "mainFormDisplayMode" to "mfPage". Hope this helps.

Regards!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...