Jump to content

Use another Unit in another project in my project


MVakili

Recommended Posts

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?

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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...