How to bring the web page on the top of Progress window - WIN7 & Prog10.1C

Hi,

We are using following code for calling a web page from our application.

With WIN7 OS, users are facing an issue with the below code. Web page is opening beside the parent progress window.

Please suggest a way to bring the web page on the top of Progress window.


DEFINE VARIABLE oExplorer AS COM-HANDLE NO-UNDO.
CREATE "InternetExplorer.Application" oExplorer.
oExplorer:Visible = True.
/* Tell Internet Explorer what Web Page to Display */
oExplorer:Navigate("www.progress.com").
PAUSE.

TIA
Philip
 
only way ive ever done it is via

Code:
PROCEDURE ShellExecuteA EXTERNAL "shell32" : /*when ran opens default web browser*/ 
    define input parameter hwnd as long. 
    define input parameter lpOperation as char. 
    define input parameter lpFile as char. 
    define input parameter lpParameters as char. 
    define input parameter lpDirectory as char. 
    define input parameter nShowCmd as long. 
    define return parameter hInstance as long. 
END PROCEDURE.
 
run ShellExecuteA in this-procedure (0,"open",ipchrWebSite,"","",1,output intOutput).

that opens a webpage uses the default web browser as well so dont know if thats any better
 
Why not embed the webpage into a Progress window, instead of cluttering the desktop with various window instances.
Drop a control onto a Progress window and simply embed the webpage in the progress container source - using an active X or IE dll.
Good luck.
 
Back
Top