55143681 Posted December 15, 2019 Share Posted December 15, 2019 xe10.3.2+unigui1508 cbuilder UniMain call UniFrame1,UniFrame1 call UniForm1, build error ,why?see the code below:frameCallForm.zip frameCallForm.zip Quote Link to comment Share on other sites More sharing options...
55143681 Posted December 15, 2019 Author Share Posted December 15, 2019 Just now, 55143681 said: xe10.3.2+unigui1508 cbuilder UniMain call UniFrame1,UniFrame1 call UniForm1, build error ,why?see the code below:frameCallForm.zip frameCallForm.zip UniMain call UniForm1,UniForm1 call UniForm2, there is no error. UniMain call UniFrame1,UniFrame1 call UniForm2,build error ,why? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 16, 2019 Administrators Share Posted December 16, 2019 Hi, Have you added the proper header files to the unit? Quote Link to comment Share on other sites More sharing options...
55143681 Posted December 18, 2019 Author Share Posted December 18, 2019 On 12/17/2019 at 2:32 AM, Farshad Mohajeri said: Hi, Have you added the proper header files to the unit? Included of course. Quote Link to comment Share on other sites More sharing options...
55143681 Posted December 18, 2019 Author Share Posted December 18, 2019 Just now, 55143681 said: Included of course. See the code please. Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 8, 2020 Author Share Posted January 8, 2020 On 12/17/2019 at 2:32 AM, Farshad Mohajeri said: Hi, Have you added the proper header files to the unit? Help please,I have mail to your helpdesk for so many days, without any answer. FSD 1830 Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 11, 2020 Author Share Posted January 11, 2020 On 1/8/2020 at 3:04 PM, 55143681 said: Help please,I have mail to your helpdesk for so many days, without any answer. FSD 1830 Help please? Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 20, 2020 Author Share Posted January 20, 2020 On 1/12/2020 at 7:52 AM, 55143681 said: Help please? Help please..... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 20, 2020 Administrators Share Posted January 20, 2020 Correct syntax is: void __fastcall TUniFrame1::UniBitBtn1Click(TObject *Sender) { TUniForm1 *newForm = new TUniForm1(UniApplication()); newForm->ShowModal(); } Inside a context of a frame, UniApplication is a function! Inside a form it is a property! That's the reason! I will try to fix it by defining it as a property in a frame also! Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 21, 2020 Author Share Posted January 21, 2020 4 hours ago, Farshad Mohajeri said: Correct syntax is: void __fastcall TUniFrame1::UniBitBtn1Click(TObject *Sender) { TUniForm1 *newForm = new TUniForm1(UniApplication()); newForm->ShowModal(); } Inside a context of a frame, UniApplication is a function! Inside a form it is a property! That's the reason! I will try to fix it by defining it as a property in a frame also! Thank you very much! Thank you very much! Thank you very much! Thank you very much! Thank you very much! Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 21, 2020 Author Share Posted January 21, 2020 under c++builder works well, how about delphi? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 21, 2020 Share Posted January 21, 2020 Hi, Add UniGuiApplication to uses 12 hours ago, 55143681 said: under c++builder works well, how about delphi? Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 22, 2020 Author Share Posted January 22, 2020 11 hours ago, Hayri ASLAN said: Hi, Add UniGuiApplication to uses Does not work,why? unit UnitFrame3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm,uniGUIFrame, uniGUIBaseClasses, uniLabel, uniButton, uniBitBtn,uniGUIRegClasses,uniGUIApplication; type TUniFrame3 = class(TUniFrame) UniLabel1: TUniLabel; UniBitBtn1: TUniBitBtn; procedure UniBitBtn1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; implementation {$R *.dfm} uses UnitFormInst, MainModule, Main; procedure TUniFrame3.UniBitBtn1Click(Sender: TObject); var formInst:TUniFormInst; begin formInst:=TUniFormInst.Create(UniApplicaton);//创建子窗口 formInst.ShowModal;//调用子窗口 end; end. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 22, 2020 Share Posted January 22, 2020 Hi, Can you please create test case? I can't reproduce it. Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 23, 2020 Author Share Posted January 23, 2020 12 hours ago, Hayri ASLAN said: Hi, Can you please create test case? I can't reproduce it. Sorry,that is my wrong. thank you,Hayri ASLAN unit UnitFrame3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIFrame, uniGUIBaseClasses, uniLabel, uniButton, uniBitBtn; type TUniFrame3 = class(TUniFrame) UniLabel1: TUniLabel; UniBitBtn1: TUniBitBtn; procedure UniBitBtn1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; implementation {$R *.dfm} uses UnitFormInst,uniGUIApplication; procedure TUniFrame3.UniBitBtn1Click(Sender: TObject); var formInst:TUniFormInst; begin formInst:=TUniFormInst.Create(UniApplication);//创建子窗口 formInst.ShowModal;//调用子窗口 end; end. 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.