Jump to content

Is it possible to open form in new window/tab ?


delagoutte

Recommended Posts

example :

i have my main app with an interface. i click on a button.

in normal app, when i click on this button it is open a new form on same browser window.

i would like to know if it is possible that this new form could be open in a new browser window or tab.

If yes :

when i close this new window could i have a callback method that was call

var
  aNewForm : TFormUniGui;
begin
    aNewForm := TFormUniGui.Create(UniApplication);
    aNewForm.ShowModal( // i would like that this form was opened on a new browser window/tab
      procedure (Sender: TComponent; AResult:Integer)
      begin
        showmessage('window/tab is closed');
      end);
Link to comment
Share on other sites

 

example :

i have my main app with an interface. i click on a button.

in normal app, when i click on this button it is open a new form on same browser window.

i would like to know if it is possible that this new form could be open in a new browser window or tab.

If yes :

when i close this new window could i have a callback method that was call

var
  aNewForm : TFormUniGui;
begin
    aNewForm := TFormUniGui.Create(UniApplication);
    aNewForm.ShowModal( // i would like that this form was opened on a new browser window/tab
      procedure (Sender: TComponent; AResult:Integer)
      begin
        showmessage('window/tab is closed');
      end);

do you mean to open form in another parent (like pagecontrol?)

 

look at this link

 

http://forums.unigui.com/index.php?/topic/9604-open-form-in-a-pagecontrol/?hl=pagecontrol

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