Showing SVG-files with links

Re: Showing SVG-files with links

Postby Antonio Linares » Wed Nov 11, 2015 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Showing SVG-files with links

Postby Marc Vanzegbroeck » Wed Nov 11, 2015 8:44 pm

Antonio,

This is the modified version
Code: Select all  Expand view
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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Showing SVG-files with links

Postby Antonio Linares » Wed Nov 11, 2015 8:47 pm

Marc,

many thanks :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 67 guests