#include "FiveWin.ch"
function Main()
local oWnd, oActiveX,oLayer
local cEvents := ""
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Gis Support"
oActiveX = TActiveX():New( oWnd, "MapObjectsLT2.Map.1" )
oWnd:oClient = oActiveX // To fill the entire window surface
oActiveX:SetProp("Appearance", 1) // 3D
oActiveX:SetProp("ScrollBars", 1) // TRUE
oLayer := CreateObject("MapObjectsLT2.MapLayer")
oLayer:Do( "Add", "d:\gis\karten\provincies.shp" )
* hLayers := oActiveX:GetProp("Layers")
* nLayers := OleGetProperty(hLayers, "Count")
ACTIVATE WINDOW oWnd
return nil
#include "FiveWin.ch"
function Main()
local oWnd, oActiveX,oLayer
local cEvents := ""
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Gis Support"
oActiveX = TActiveX():New( oWnd, "MapObjectsLT2.Map.1" )
oWnd:oClient = oActiveX // To fill the entire window surface
oActiveX:SetProp("Appearance", 1) // 3D
oActiveX:SetProp("ScrollBars", 1) // TRUE
oLayer := CreateObject("MapObjectsLT2.MapLayer")
oLayer:File := "d:\gis\sez_bari.shp"
hLayers := oActiveX:GetProp("Layers")
OleInvoke( hLayers, "Add", oLayer )
oWnd:Resize()
oWnd:bResized := {|| oActiveX:Do("Refresh") }
ACTIVATE WINDOW oWnd
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Enrico Maria Giordano and 57 guests