Jump to content
Fivewin Brasil

ref pagina fa internet


syspel

Recommended Posts



#include "FiveWin.ch"


Function abresite(cSite)
IF(!IsInternet())
MsgInfo("Necessário conexão com internet."+CRLF+"Operação cancelada","Informação")
RETURN(.f.)
ENDIF

PRIVATE oDlgIE, oActiveX, cEvents:="Vidal",oExplorer

cSite := ( "www.correios.com.br" )

Define Dialog oDlgIE From 0,0 TO 550,950 PIXEL Title " ..::"+"| Acessando:"+cSite

oDlgIE:lHelpIcon:=.F.

oActiveX:=TActiveX():New( oDlgIE, "Shell.Explorer",10,15,450,237 )

// oActivex:Silent := .T. // EM FWHX15.05 NEM E MAIS NECESSARIO.

oDlgIE:oClient:=oActiveX

oDlgIE:bPainted = { | hDC | GradientFill( hDC, 0, 0, oDlgIE:nHeight, oDlgIE:nWidth, { { 0.50, 16054371, 8388608 } } ) }

Activate Dialog oDlgIE Centered;
On Init(mBarraStatus(cSite),oActiveX:Do( "Navigate", cSite ))


Return(nil)
Static Func mBarraStatus(cSite)
Define STATUSBAR oStatusBar Prompt "Syspel" OF oDlgIE
oActiveX:SetProp( "STATUSBAR", .T. )
RETURN(.t.)



Link to comment
Share on other sites


// ABRESITE.PRG By Joao Santos - 25/08/2015 - POWERED BY FIVEWIN.

#Include "FiveWin.ch"

MEMVAR oActiveX
MEMVAR cEvents

Function abresite(cSite)

LOCAL oWnd

IF(!IsInternet())

MsgInfo("Necessário conexão com internet."+CRLF+"Operação cancelada","Informação")

RETURN NIL

ENDIF

cEvents := "Vidal"
cSite := ( "www.correios.com.br" )

DEFINE WINDOW oWnd TITLE " ..::" + "| Acessando: " + cSite

oActiveX = TActiveX():New( oWnd, "Shell.Explorer" )

oActivex:Silent := .T.

oActivex:SetFocus()

oWnd:oClient = oActiveX

//oActiveX:Navigate( "www.correios.com.br" )
oActiveX:Navigate( cSite )

ACTIVATE WINDOW oWnd MAXIMIZED

Return(nil)

// FIM DO PROGRAMA - By Joao Santos.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...