FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Showing SVG-files with links
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Showing SVG-files with links
Posted: Wed Nov 11, 2015 08:07 PM

Marc,

Would you mind to modify my example with your solution and post it here ?

many thanks!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Showing SVG-files with links
Posted: Wed Nov 11, 2015 08:44 PM
Antonio,

This is the modified version
Code (fw): Select all Collapse
FUNCTION toonsvg(curl,vtagname)

   local oWnd, oActiveX

   local veinde := .f.
   local vLoaded := .f.
   local vURL

   DEFINE WINDOW oWnd TITLE "Graplical loop of "+vtagname

   @ 0, 0 ACTIVEX oActiveX PROGID "Shell.Explorer" OF oWnd
   oActiveX = TActiveX():New( oWnd, "Shell.Explorer" )
   oWnd:oClient = oActiveX // To fill the entire window surface

   oActiveX:Do( "Navigate", cURL )

   oActiveX:bOnEvent = { | event, aParams, pParams | If( event == "StatusTextChange" .and. Left( aParams[ 1 ], 5 ) == "file:", vURL := aParams[ 1 ] ,), ;
   If( event == "DocumentComplete" , vLoaded := .t.,),;
   If( event == "NavigateComplete2" .and. vLoaded, (veinde := .t. ,oWnd:end()),) }

   ACTIVATE WINDOW oWnd MAXIMIZED valid (iif(!veinde,(vURL:='TagName_Leeg',veinde := .t.),),.t.)
   StopUntil( { || veinde = .t. } )

RETURN vURL
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Showing SVG-files with links
Posted: Wed Nov 11, 2015 08:47 PM

Marc,

many thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion