OpenEdge - Progress ABL: How to open a web browser inside a dialog window

2k Views Asked by At

For the moment i have a code that allow me to open a web browser directly from my Progress application.

DEFINE VARIABLE cProgramName  AS CHARACTER  NO-UNDO.
DEFINE VARIABLE cPageAddress  AS CHARACTER  NO-UNDO.
DEFINE VARIABLE iReturnResult AS INTEGER    NO-UNDO.

ASSIGN
    cProgramName = "C:\Program Files\Internet Explorer\iexplore.exe"
    cPageAddress    = "http://www.progress.com".

RUN WinExec (INPUT cProgramName + CHR(32) + cPageAddress , INPUT 1, OUTPUT iReturnResult).

PROCEDURE WinExec EXTERNAL "KERNEL32.DLL":
    DEFINE INPUT  PARAMETER ProgramName AS CHARACTER.
    DEFINE INPUT  PARAMETER VisualStyle AS LONG.
    DEFINE RETURN PARAMETER StatusCode  AS LONG.
END PROCEDURE.

Now i want to open the browser inside a dialogue box, pop-up window or a frame. I can't find any code to help me with that !

1

There are 1 best solutions below

0
On BEST ANSWER

In AppBuilder, choose "OCX" from the palette. Then drag the "Microsoft Web Browser" Active X Control on your frame.

To navigate to a certain web-page use:

chCtrlFrame:WebBrowser:Navigate ("http://www.progress.com").