MI Integrated mapping problem

2000-09-25 Thread Clark, Daniel (CRTLDN)
Title: Integrated mapping problem





Hi listers,


I have an integrated mapping app that I am developing in VB6. 


On my main form I have three picture boxes that I am using as a map window, browser window, and graph window respectively. I have set up the map window as the application window ('Set Application Window...'), and given the 'Set Next Parent...' statement for all three picture boxes. 

When the app is running I would like to be able to clear the contents of the browser or grapher windows, if the window has already been used, so a different table can be browsed or graphed. I have tried statements such as Mapinfo.do"Close Window "  Browse2.hWnd (for the browser window) and Mapinfo.do"Close Window FrontWindow()" etc etc. None of this seems to work and when I try the Close front window statement, all three windows are cleared.

Does anybody know how to solve this?


Thanks in advance


Dan Clark


* [EMAIL PROTECTED]





MI: Integrated mapping with ProViewer

2000-09-07 Thread Lavoie, Claude

Can ProViewer be integrated into and controlled by a VB program just like MI
Pro?

What we have in mind is a VB program that launches an instance of ProViewer
and then successively opens workspaces in this instance of ProViewer via the
VB routine.

I would like to hear any comments on similar experiences, and how it
resembles or differs from integrating a MI Pro instance into a VB program.

Will sum.  Thanks in advance.

_

Claude Lavoie, a.g.
Service du soutien à la clientèle
Direction des technologies de l'information
Ministère des Transports du Québec
35, rue de Port-Royal Est, salle 5.00 a
Montréal (Québec)
H3L 3T1

Téléphone:  (514) 873-6280
Télécopieur:(514) 873-8203
Courriel:   mailto:[EMAIL PROTECTED]
_

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



Re: MI integrated mapping application

2000-06-15 Thread Haibo [EMAIL PROTECTED]

Jayprakash,

You may take a look at MapWizAX, an OCX control, which will make the
integrated mapping much easier, esp. the callback function.

You can get it for a free trial at:

http://www.ducomsoft.com/mapwizax.htm

Regards,

Haibo Du
Ducom Software

-Original Message-
From: Jayaprakash Atmaram [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Date: Wednesday, June 14, 2000 7:34 AM
Subject: MI integrated mapping application


Hi,

One of my client has faced the following problem in integrated mapping
application using VC++. Can any one give some hints on this!!

 I have redefined short cut menu as -

   CREATE MENU \"MapperShortcut\" ID 100 AS
 \"Show in Different Window\" ID 101 CALLING OLE
\"ProcessMenuCommands\"

I am calling mapinfo.SetCallBack() with Document object, so that i
can receive all callbacks in my document class.

   I want to know How to declare/define, where to declare/define
function 'ProcessMenuCommands' in my document class.

Thanks in advance.

Regards,
Jayprakash.A
TATA Infotech LTd

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]


--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI integrated mapping application

2000-06-14 Thread Jayaprakash Atmaram

Hi,

One of my client has faced the following problem in integrated mapping 
application using VC++. Can any one give some hints on this!!

 I have redefined short cut menu as -

   CREATE MENU \"MapperShortcut\" ID 100 AS
 \"Show in Different Window\" ID 101 CALLING OLE
\"ProcessMenuCommands\"

I am calling mapinfo.SetCallBack() with Document object, so that i
can receive all callbacks in my document class.

   I want to know How to declare/define, where to declare/define
function 'ProcessMenuCommands' in my document class.

Thanks in advance.

Regards,
Jayprakash.A
TATA Infotech LTd

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated Mapping - Creating Brush Styles

2000-05-18 Thread Bullock, Davison


Hi 

I'd like to take the opportunity to thank all who were able to help with the
array problem.
I was out of the office yesterday but will have a go today.
Dmitry  the sample code was  much appreciated, Thanks!




Davison Bullock
Systems Developer
Ordnance Survey, UK
Southampton

Tel: 023 80795146 



--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated Mapping in Vb 6.0

2000-04-27 Thread Jayaprakash Athmaram

Dear MI gurus,

This is related to Integrated Mapping in Vb 6.0

I had made a drop down menu in my main form
which contains namely open table, browser and exit

By by clicking on open table menu, 
Two different maps are opened on two different forms , then click on
browser menu to open browser for recently open maps,a mapinfo dialog 
appears with two options for browser menu.At this stage if you click 
cancel button immediately next statement is executed and a blank form 
is visible


Problems

1. How can I trace the ok and cancel button of browser Dialog ?

2. Resizing all maps without clicking on maps dosen't work?

3. If I have more than one Maps open on different forms , Which function
   should I use to get the list of all recently open Maps in a listView
   or equivalent control.

Iam stuck here. Can anybody give me some hints

Thanks in advance.

Regards,
Jayprakash.A
~~~
Jayaprakash  Athmaram
Products Specialist Group
TATA Infotech Ltd
Mumbai - 400 059.
Office : [EMAIL PROTECTED]
Personal : [EMAIL PROTECTED]
Web   : www.tatainfotech.com
~~~

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated Mapping with VB 6

2000-04-24 Thread Matthew . Gatt

Hi all

I am setting up an integrated application in VB6.  The Mapbasic samples I
have use VB4 and generate an error.  Can anyone show me the correct
procedure for implementing these callbacks with VB6.

TIA
Matthew Gatt


--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated Mapping - Can't Create Object

2000-03-15 Thread Chris Prescott

I'm trying to develop an Integrated Mapping app with VB6 and MI Pro 5.5 on
an NT4 machine but I can't get off first base.

I keep getting the error :
'ActiveX component can't create object' 
on the line:
 Set mi = CreateObject("MapInfo.application")

I have reinstalled MapInfo 5.5 and it runs correctly and the registry
settings for MI appear to be correct.

Does anyone have any ideas as to what is wrong?

Thanks in advance.

Chris


Christopher Prescott
Geospatial International Pty. Ltd.

At Fujitsu:
Spatial Integrated Information Services (SIIS) Project

Phone:  (08) 8372 3308
Mobile: 0417 856 109
email:  [EMAIL PROTECTED]

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI integrated mapping

2000-03-03 Thread Timothy Chinchen Cen-IT

Use a Win32 API call
(for more info check out SetWindowPos Declare in the API Viewer
(Win32API.txt)) 
eg. 
1/ copy the following to a module in your project (nb e-mail will probably
truncate the function statment)

Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal
hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long,
ByVal cy As Long, ByVal wFlags As Long) As Long

2/ Create a new form with your buttons on and place in the form load:-

Const conHwndTopmost = -1
Const conHwndNoTopmost = -2
Const conSwpNoActivate = H10
Const conSwpShowWindow = H40
SetWindowPos hwnd, conHwndTopmost, leftToolLoc, rightToolLoc, leftToolwidth,
rightToolwidth, conSwpShowWindow 

You'll have to experiment with some of the values, I hope this helps

Tim Chinchen (GIS Systems Developer) 
I.T. Services Bournemouth Borough Council
Mailto:[EMAIL PROTECTED]

 -Original Message-
 From: Elias Atlabachew [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, March 02, 2000 4:02 PM
 To:   [EMAIL PROTECTED]
 Subject:  MI integrated mapping
 
 Does some one know if it is possible to create floating buttonpads in
 Visual basic. The only way to access them is by having an icon on vb form.
 Any help please?
 thank you
 Elias


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI integrated mapping

2000-03-03 Thread Elias Atlabachew




1) Where are mapinfo toolbar icons located? I 
want to integrate them in my visual basic form
2) I have a line icon (borrowed from vb) on my 
form and attched the following to it 
Private Sub 
pctrLine_Click() objMapInfo.RunMenuCommand 
M_TOOLS_LINEEnd Sub
When I click it nothing happens, how can I 
get it work?

Any help please 
thankyou


RE: MI integrated mapping

2000-03-03 Thread Brad Mathews

Elias,

1. The icons are integrated into the mapinfow.exe file. I have done screen
captures to get them out. Most of them are in the attached ZIP file.
2. Do you have the MapBasic includes file with the constants declarations in
your project? If not, you need to use the actual values, not the constants
(like M_TOOLS_LINE) because VB does not know what M_TOOLS_LINE means..

- Brad

 toolbar_buttons.zip 
 -Original Message-
 From: Elias Atlabachew [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, March 03, 2000 8:00 AM
 To:   [EMAIL PROTECTED]
 Subject:  MI integrated mapping
 
 1) Where are mapinfo toolbar icons located? I want to integrate them in my
 visual basic form
 2) I have a line icon (borrowed from vb) on my form and attched the
 following to it 
 Private Sub pctrLine_Click()
 objMapInfo.RunMenuCommand M_TOOLS_LINE
 End Sub
  When I click it nothing happens, how can I get it work?
  
 Any help please 
 thankyou

 toolbar_buttons.zip


RE: MI Integrated mapping

2000-03-02 Thread Thake, Peter

Hi Harald,

This could be because a previous instance of MapInfo has not been closed
properly. You must quit the VB/Mapinfo application cleanly by issuing a
close all and set MyMapInfo to nothing. Have a quit menu command calling
something like this:

Private Sub Exiter()
MyMapInfo.do "Close all"
Set MyMapInfo = Nothing
End

End Sub

However, there will be times when Mapinfo will crash/not quit cleanly
(happens a lot during development). To cure this, do Ctrl-alt-del to call up
the Windows NT Task Manager. Close any instances of MapinfoW.exe listed in
Processes. Should do the trick!

A tip for you: you can use Chr(34) instead of """" to get the speech mark
character (though the ASCII code might depend on which character set you are
using).

Hope this helps,

Pete
Ordnance Survey, UK

-Original Message-
From: Harald Schoelzel [mailto:[EMAIL PROTECTED]]
Sent: 02 March 2000 05:50
To: '[EMAIL PROTECTED]'
Subject: MI Integrated mapping


When I try to open a table through an application that after I have
correctly launched  an instance of Mapinfo through:

Set MyMapInfo = createobject("MapInfo.Application")

and I try to open a table through

msg = "Open Table "
msg = msg  """"
msg = msg  """"
msg = msg  MapNameArray(i, 1, BrowserNo) 'Contains the string as a path to
a mapinfo table
msg = msg  """"
msg = msg  """"
MyMapInfo.Do msg  

I receive an error message saying:
MapInfo:
Cannot open file system32. It may be open or in use. when I cancel the
message box I'll get an run time error can't open table.

I'm using Windows NT.

Any thoughts 

Harald Schölzel
Economist Civil Engineer
c/o SOPAC South Pacific Applied Geoscience Commission
Private Mail Bag
Suva, Fiji
Tel: Business (679) 381 377 private (679) 386 236
Fax: (679) 370 040
Mailto:[EMAIL PROTECTED]
URL: http://www.sopac.org.fj/wru
Mirror URL: http://www.sidsnet.org/pacific/sopac/wru

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI integrated mapping

2000-03-02 Thread Brad Mathews

Elias,

There are third party tools that do a very good job of this. Pick up a copy
of Visual basic Programmer's Journal and you will see a few ads for these
tools.

You can also use a form with a toolbar style. Not as sophisticated, but it
works.

- Brad

 -Original Message-
 From: Elias Atlabachew [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, March 02, 2000 8:02 AM
 To:   [EMAIL PROTECTED]
 Subject:  MI integrated mapping
 
 Does some one know if it is possible to create floating buttonpads in
 Visual basic. The only way to access them is by having an icon on vb form.
 Any help please?
 thank you
 Elias
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



RE: MI Integrated mapping

2000-03-02 Thread Harald Schoelzel

Thanks to all that replied to my message yesterday:

Yeah,

I had indeed to many quotes. Removed them and it opens the tables. However,
when I open the table and want to show it in my a picture on a form by
issuing the Map From command I get an Error saying:

Numeric Value Required (The message comes from VB). I changed quotes and
syntax and if I enter a random string I get an eror message that says that
the table is not open (of course not). What's wrong with that one?

Code:
MyMapInfo.Do "Set Application Window "  frmMappers.OLE1.hwnd
'Picture on a form as container
MyMapInfo.Do "Set Next Document Parent "  frmMappers.OLE1.hwnd  "
Style 1"
msg = "Open Table " 
msg = msg  Chr(34)

msg = msg  MapNameArray(i, 1, BrowserNo)
   
msg = msg  Chr(34)

 
msg = msg  " Interactive "
 
  

'Built the string to show the open tables as maps
msg2 = "Map From "

msg2 = msg2  MapNameArray(i, 2, BrowserNo)  'Contains the table
name without extension
 
MsgBox msg2

'Get MapInfo to execute both strings
 
MyMapInfo.Do msg
MyMapInfo.Do msg2

Here comes the run time error. The strings seem to be okay and when I open
a table manually through the 

MyMapInfo.runmenucommand M_file_open method it displays. If I then use the
layer control to add the abopve opened table it works. But not if I don't do
any manual stuff. (I ve got lots of table to open and can't so it manually,
and anyhow, it's a matter of principles.

Thanks
Harald Schölzel
Economist Civil Engineer
c/o SOPAC South Pacific Applied Geoscience Commission
Private Mail Bag
Suva, Fiji
Tel: Business (679) 381 377 private (679) 386 236
Fax: (679) 370 040
Mailto:[EMAIL PROTECTED]
URL: http://www.sopac.org.fj/wru
Mirror URL: http://www.sidsnet.org/pacific/sopac/wru

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated mapping

2000-03-01 Thread Harald Schoelzel

When I try to open a table through an application that after I have
correctly launched  an instance of Mapinfo through:

Set MyMapInfo = createobject("MapInfo.Application")

and I try to open a table through

msg = "Open Table "
msg = msg  
msg = msg  
msg = msg  MapNameArray(i, 1, BrowserNo) 'Contains the string as a path to
a mapinfo table
msg = msg  
msg = msg  
MyMapInfo.Do msg  

I receive an error message saying:
MapInfo:
Cannot open file system32. It may be open or in use. when I cancel the
message box I'll get an run time error can't open table.

I'm using Windows NT.

Any thoughts 

Harald Schölzel
Economist Civil Engineer
c/o SOPAC South Pacific Applied Geoscience Commission
Private Mail Bag
Suva, Fiji
Tel: Business (679) 381 377 private (679) 386 236
Fax: (679) 370 040
Mailto:[EMAIL PROTECTED]
URL: http://www.sopac.org.fj/wru
Mirror URL: http://www.sidsnet.org/pacific/sopac/wru

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated Mapping Question

2000-01-27 Thread MikeKilmore

Honored Listers,
In Access97 I have a form with an Unbound Object Frame.  The wizard knew how 
make it display a MapInfo map.  Now, how do I tell it to recenter the map, 
with new Lon and Lat?  The online docs in MB and Access got me started, and 
stuck.

Thanks all.

Mike Kilmore
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI - Integrated Mapping and VBA

1999-12-07 Thread HENROTAY PIERRE


I am trying to introduce a callback in an Access 97 application (using VBA)
with Integrated Mapping

I am never able to get the SetCallBack to work. The Access error code always
says: "Method SetCallBack of object IMapInfo failed'.
If the line with SetCallBack is removed, a MapInfo window appears and
everithing works as expected except for this callback stuff.
Any idea ?
Thanks for any help.


Hereby an extract of the code (simplified to a max):

For the form itself:
Private Sub Form_Load()
  Set MyObj = CreateObject("MapInfo.Application")
  MyObj.Visible = True
  Set myObject = New MyClass
  MyObj.SetCallBack myObject
  MyObj.DO "Open Table ""States"" Interactive"
  MyObj.DO "Map from States"
End Sub

For the MyClass class:
Public Sub SetStatusText(ByVal mytext As String)
MsgBox mytext
End Sub

For a declarations module:
Public MyObj As Object
Public myObject As New MyClass

Pierre Henrotay
Siemens Business Services
Major Projects
Tel.: +32 81 559 687
Fax: +32 81 559 658
Mail (office): [EMAIL PROTECTED]
Mail (home): [EMAIL PROTECTED]


--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated mapping with Delphi

1999-11-24 Thread Alan Hale

Can anyone point me to tutorials, books, example code etc. on this topic?

Many thanks.



***
Alan Hale
Area Ecologist, West Area
Countryside Council for Wales 
Plas Gogerddan
Aberystwyth SY23 3EE
Tel.: 01970 821100
Email: [EMAIL PROTECTED]
***

   
   
   
   
   
   
   
   
   
   
   
  !
!
!
  
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Integrated mapping with VB- finding longitude and latitude

1999-09-22 Thread Dennis Brundage


I have been asked to create an application that will allow a user to input a
latitude and longitude and to return information about that point from one
of
two map layers.  This sounds like it should be a fairly standard application
for
a mapping program, but I haven't been able to find a solution so far.  First
off,
I am trying to use Integrated mapping (VB5.0 professional and MapInfo
runtime 4.12).
If there is a better way to do this then I am more then willing to listen to
suggestions.

If integrated mapping is a viable solution, how do I open more than one
table in a
window?  I have no trouble getting a window to pop up with a map in it, I
just can't
get the two maps to overlay each other(one is a map of US county borders and
the other
is a map of US PSAP's, public safety answering points).

Once I get the two maps to overlay each other, then I need to be able to
take a latitude
and longitude, and return information regarding the PSAP that covers that
point.  If no
PSAP covers that point, then I need to return the county and state
information.  Are
these sort of tasks possible using integrated mapping?  A combination of
SearchPoint()
and SearchInfo() seems like it should work, but I haven't gotten far enough
to try them
and I don't want to waste any more time if they are not going to work.

Any help would be greatly appreciated.

Thanks in advance,

Dennis Brundage
Veridian, Calspan Operations
4455 Genesee St
Buffalo, NY 14225

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]