1

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 !

hamzarh
  • 330
  • 2
  • 6
  • 20

1 Answers1

2

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"). 
Mike Fechner
  • 6,627
  • 15
  • 17