FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem getting an ActiveX component to work
Posts: 17
Joined: Sun Jan 28, 2007 11:47 AM
Problem getting an ActiveX component to work
Posted: Mon Jan 29, 2007 08:08 PM

Oke guys, I also got it more or less running. At least I see a map.
Antonio, you hint works fine.
I'll come back in a few days with a working sample including zooming and panning.

Regards,
Stephan

Posts: 17
Joined: Sun Jan 28, 2007 11:47 AM
Problem getting an ActiveX component to work
Posted: Mon Jan 29, 2007 09:36 PM

to zoom in add the following code:

DEFINE moZoomIn 51

oMap:SetProp("MousePointer", moZoomIn)

In function EventInfo add the following:

IF event == "Click"
IF oMap:GetProp("MousePointer") == moZoomIn
oRect := oMap:Do("TrackRectangle")
oMap:SetProp("Extent", oRect)
oMap:Do("Refresh")
ENDIF

However, this code does not work. oMap:Do("TrackRectangle") returns a handle to a rectangle object. I have no idea how to assign this object to the Extent property of oMap

Also the tracking does not work well.

Regards,
Stephan

Continue the discussion