Jump to content

HowTo: bring opened form to front


mierlp

Recommended Posts

Hi,

The user can  open the forms from within the menu. So he opens first FORM-1 then FORM-2 and then FORM-3

When  he clicks on the menu option ''FORM-2'', -which is already opened,  than this

opened form has to be on the foreground.

In VLC you can do something like :

Quote

if (not Assigned (Form2)) then begin
   Form2 := TForm2.Create(Application);
end;
Form2.Show;
if (Assigned(Form2)) then begin
   ShowWindow(Form2.Handle, sw_restore);
end;


How can it be done in uniGui?

Regards Peter

Link to comment
Share on other sites

Hi Sherzod

When trying :

  if UniMainModule.GetFormInstance(TFormTableBank, False)<>nil then begin
     FormTableBank.WebForm.JSInterface.JSCall('toFront', []);
  end;

or 

     FormTableBank.WebForm.JSInterface.JSCall('toFront', []);
 

is NOT working

 

Link to comment
Share on other sites

  • 2 years later...

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