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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...