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.
web page in a dialog
web page in a dialog
Saludos / Regards,
FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
- Patrick Mast
- Posts: 244
- Joined: Sat Mar 03, 2007 8:42 pm
Re: web page in a dialog
Just tested here with Vista SP1 and works as expected. Can you show a reduced sample that shows your error?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.
Patrick
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
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
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
FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40