Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display Mapinfo in a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Display Mapinfo in a form
Miscellaneous
Thread ID:
00513198
Message ID:
00513198
Views:
36
I am trying to run an instance of Mapinfo in a VFP6 Form. This is the VB code.
How would I redirect the Mapinfo window to my VFP6 form. Mapinfo is actually running in the background. MapFrame.hwnd refers to a VB Picture Box on a VB Form.


* 'Create the Map window
mapinfo.do "Set Next Document Parent " & MapFrame.hWnd & " Style 1"

*!* I can get the following code to work.

mapinfo.do ([Open Table "c:\cv\states.tab" interactive Map From States])

*VB Code
mapinfo.do "Map From States"
mapid = Val(mapinfo.eval("WindowID(0)"))
mapinfo.do "Set Map Window " & mapid & " Center (-95.5,36.5) Zoom 3300"
James Harvey, MCP
Memphis Police Department
225 Channel Three DR
Memphis, TN 38103
901 577-1296
Reply
Map
View

Click here to load this message in the networking platform