MVakili Posted March 20, 2021 Share Posted March 20, 2021 Hi I want to share an unit in our team. In testcase you can see we have A project assumed to share . In B project I want to call the procedure of A project. But after call Uni shows The A form too , but I dont want it How I can solve it? Projects.rar Quote Link to comment Share on other sites More sharing options...
MVakili Posted March 21, 2021 Author Share Posted March 21, 2021 Any Idea? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 21, 2021 Share Posted March 21, 2021 1 hour ago, MVakili said: Any Idea? Hi, I haven't looked at your test case yet. But I think it's better to use a simple module without a form. Quote Link to comment Share on other sites More sharing options...
MVakili Posted March 21, 2021 Author Share Posted March 21, 2021 4 hours ago, Sherzod said: Hi, I haven't looked at your test case yet. But I think it's better to use a simple module without a form. Tanks for replay we have to work as a team and I think this is best way Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 21, 2021 Share Posted March 21, 2021 Just now, MVakili said: I think this is best way Forms, do you mean? Quote Link to comment Share on other sites More sharing options...
MVakili Posted March 21, 2021 Author Share Posted March 21, 2021 1 hour ago, Sherzod said: Forms, do you mean? All of our tools (forms, common user UI , dynamic charts , report generator and so on) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 21, 2021 Share Posted March 21, 2021 If I understand you correctly, this post may help you: Quote Link to comment Share on other sites More sharing options...
MVakili Posted March 21, 2021 Author Share Posted March 21, 2021 1 hour ago, Sherzod said: If I understand you correctly, this post may help you: In this case finally you wrote this function window.show(sender, eOpts) { this.setHidden(true); } is there another solution for this problem? Quote Link to comment Share on other sites More sharing options...
MVakili Posted March 28, 2021 Author Share Posted March 28, 2021 well we try to change this project and find another solution you can download changed project 1) in BB project we try to isolate AMainForm uses // Comment this line when use in BB project--------- // AMainModule, // -------------------------------------- uniGUIVars, uniGUIApplication; function AMainForm: TAMainForm; begin // Comment this line when use in BB project--------- // Result := TAMainForm(AUniMainModule.GetFormInstance(TAMainForm)); // end; and then we call UniButton with Bform handel AMainForm.UniButton1Click(BMainForm); In this case, there is no need to hide the form We checked the server and everything seemed to work. You can download and view the result Projects.rar 1 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.