Skip to main content

[archive] Help with calling independant windows...

  • March 5, 2010
  • 30 replies
  • 3 views

Show first post

30 replies

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Here is an example of how to pass parameters between two exe processes.
No compile options; ccbl32 mother.cbl ccbl32 child.cbl, then wrun32 mother:
       IDENTIFICATION               DIVISION.
       PROGRAM-ID.                  MOTHER.
       PROCEDURE DIVISION.
       MAIN-LOGIC.
           CALL    "C$RUN"          USING
                   ".\\wrun32.exe child Hello world"
           STOP    RUN
           .

       IDENTIFICATION               DIVISION.
       PROGRAM-ID.                  CHILD.
       WORKING-STORAGE SECTION.
       77 MyCommand                 PIC X(256).
       PROCEDURE DIVISION.
       MAIN-LOGIC.
           ACCEPT  MyCommand        FROM COMMAND-LINE
           DISPLAY MESSAGE          BOX
                   MyCommand
                   TITLE            "Received from command line"
           STOP    RUN
           .

To me, this produces the following output:

Received from command line

Hello world

OK
---------------------------

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Hello Kwt10,

I've had a look at your program and it seems the issue is only that there is no main screen. The CALL PFB window is a floating window so when you execute it the Runtime generates a sort of DOS looking main window. When you close the CALL PFB window that terminates the Runtime because there is no main window defined. So all PF BROWSER windows are also destroyed because the Runtime has terminated.

So I added another screen (type = INITIAL) to the call pfb program and defined it as the main window in program properties. From that main window I click a button to display your CALL PFB window, from there I launch multiple PF BROWSER windows then close the CALL PFB window, and the PF BROWSERs remain displayed (because the Runtime hasn't terminated).

I'm attaching a zip file containing the CALLPFB.psf which has my modifications.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Hello Kwt10,

I've had a look at your program and it seems the issue is only that there is no main screen. The CALL PFB window is a floating window so when you execute it the Runtime generates a sort of DOS looking main window. When you close the CALL PFB window that terminates the Runtime because there is no main window defined. So all PF BROWSER windows are also destroyed because the Runtime has terminated.

So I added another screen (type = INITIAL) to the call pfb program and defined it as the main window in program properties. From that main window I click a button to display your CALL PFB window, from there I launch multiple PF BROWSER windows then close the CALL PFB window, and the PF BROWSERs remain displayed (because the Runtime hasn't terminated).

I'm attaching a zip file containing the CALLPFB.psf which has my modifications.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
Hello Kwt10,

I've had a look at your program and it seems the issue is only that there is no main screen. The CALL PFB window is a floating window so when you execute it the Runtime generates a sort of DOS looking main window. When you close the CALL PFB window that terminates the Runtime because there is no main window defined. So all PF BROWSER windows are also destroyed because the Runtime has terminated.

So I added another screen (type = INITIAL) to the call pfb program and defined it as the main window in program properties. From that main window I click a button to display your CALL PFB window, from there I launch multiple PF BROWSER windows then close the CALL PFB window, and the PF BROWSERs remain displayed (because the Runtime hasn't terminated).

I'm attaching a zip file containing the CALLPFB.psf which has my modifications.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 04 March 2010]

Attached are two very simple test projects...

CALLPFB is a screen that has 3 buttons that call PFBROWSER passing it a web address to display in a the Acu-browser.

My question is how do I make the PFBROWSER screen totally independent of any other screen. When the user closes the CALLPFB screen I do not want the PFBROWSER window to be closed. If the user opens 15 PFBROWSER screens I want each to be separate and to stay until they choose to close them.

I am sure it is some property or setting that I am missing or the way that I am calling the PFBROWSER.

Thanks for any help that you guys can give.
To everyone that helped me solve this issue thank you! I was able to get the screens working as we had hoped for using info from this forum.

Now the fun part of development.....

We rolled it out to the customers that had requested it and they loved it. But the other development team we were working with changed their entire project and it can no longer be called from Internet explorer!!

So now I have knowledge and a product that I will have to make work for something else.

Thanks again all!!!!!!