okkoos Posted February 22, 2013 Share Posted February 22, 2013 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; click button1 got Access violation error ; click "Tamam" button; click "Tamam" button again Form2 not embed to MainForm.Panel2; How can I solve this problem or anyway to create runtime panel embeded form. Best regards. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 22, 2013 Administrators Share Posted February 22, 2013 You can not embed a Form in any other controls. Quote Link to comment Share on other sites More sharing options...
rsanford Posted February 23, 2013 Share Posted February 23, 2013 Hi okkoos, You can embed a uniFrame within a panel. Check out the Megademo here http://prime.fmsoft.net/demo/ucdemo.dll Quote Link to comment Share on other sites More sharing options...
okkoos Posted February 24, 2013 Author Share Posted February 24, 2013 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. Quote Link to comment Share on other sites More sharing options...
rsanford Posted February 24, 2013 Share Posted February 24, 2013 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.