web page in a dialog

Post Reply
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

web page in a dialog

Post by MOISES »

Hi,

I want a web page in a dialog, as Activex example but without using Activex, as I have experienced some errors in some cases, where it hangs up the app, for example in some PCs using Vista Service Pack 1.

Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Re: web page in a dialog

Post by Patrick Mast »

MOISES wrote:I want a web page in a dialog, as Activex example but without using Activex, as I have experienced some errors in some cases, where it hangs up the app, for example in some PCs using Vista Service Pack 1.
Just tested here with Vista SP1 and works as expected. Can you show a reduced sample that shows your error?

Patrick
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Post by MOISES »

very simple code:

// ---------------------------------------------------------------------------
FUNCTION NavegadorWeb( cTituloVentana, cServidor, cParametros )

LOCAL oDlg, oActiveX, lSave := .F.


DEFINE DIALOG oDlg RESOURCE "NAVEGADORWEB" TITLE cTituloVentana


REDEFINE ACTIVEX oActiveX ID 201 OF oDlg PROGID "Shell.Explorer"


REDEFINE BUTTON ID 101 OF oDlg ACTION( oActiveX:Do( "ExecWB", 6, 1 ) )
REDEFINE BUTTON ID 102 OF oDlg ACTION( lSave := .T., oDlg:End() )
REDEFINE BUTTON ID 103 OF oDlg ACTION( Ayuda() )




ACTIVATE DIALOG oDlg CENTERED ;
ON INIT oActiveX:Do( "Navigate2", cServidor + cParametros )



Return nil
// ---------------------------------------------------------------------------
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Post Reply