MI Re: Invoking MapInfo Pro from VB application

2000-06-05 Thread ml

Paul,

try to use the Automation.

If MapInfo is properly installed this will work:

dim mapinfo as object
set mapinfo = CreateObject("Mapinfo.Application")
mapinfo.Visible = True


Look at the MapInfo documentation for integrated mapping for more.

Or ask the registry for the install-path for mapinfo.

Regards


Markus

- Original Message -
From: Paul Fildes [EMAIL PROTECTED]
To: MapInfo List [EMAIL PROTECTED]
Sent: Monday, June 05, 2000 11:50 AM
Subject: MI: Invoking MapInfo Pro from VB application


 Dear all,

 From my VB application I'd like to launch MapInfo Professional via a menu
 item, and/or a toolbar. The problem I have is that my application when
 running isn't going to know where MapInfo has been installed on the
machine,
 if at all. Can anybody please tell me how I can determine whether MapInfo
 Pro. has been installed on a machine, and if so, how to launch it?.

 I've already tried the following code, which apparently works for
launching
 "Excel", but it didn't work for MapInfo;

 Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
 (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As
 String, _
  ByVal lpParameters As String, ByVal lpDirectory As String, _
  ByVal nShowCmd As Long) As Long

 Private Sub cmdLaunchMapInfo_Click()

Dim ReturnedStatus As Long

 'Launch MapInfo
ReturnedStatus = ShellExecute(Me.hwnd, vbNull, "Mapinfo", vbNull,
vbNull,
 1)
 End Sub

 Thanks,

 Paul Fildes   Phone: +44 121 643 6711
 Technology Applications Group, Maunsell Ltd,  Fax:   +44 121 643 1357
 Attwood House, 1 Worcester Walk,  Email: [EMAIL PROTECTED]
 New Street, Birmingham B2 4NX, UK URL:   www.maunsell.co.uk
 --
 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 Legend Window in Layout

2000-04-07 Thread ml

Hello listers,

i have a lot of problems in getting a thematic legend
automatically appear in a layout window via mapbasic.

Here is what i do :

1. do some thematic shading
2. change the name of main mapper window (eg: Set window Title "XYZ")
3. create a layout for this window
4. insert frame for the legend into this window

   ' I store the title of the legend window in a variable, the application i
s used with
   ' english Mi-Pro Versions as well as with german

legenden_title =  WindowInfo(WIN_LEGEND, WIN_INFO_NAME)

This is the point which doesnt work in all cases
create frame
   Into Window FrontWindow()
   (fx2 - 5.0,fy1+2.0) (fx2,fy1 + 17.0)
   Title legenden_title
   FillFrame On

The result is always a blank frame in the layout window with no window for.

I tried every combination of setting the legend title, e.g - never
succeeded.

Please send me some hints..


regards,

Markus

--
Markus Lindner  CISS TDI GmbH
Tel. +49 2642 97 80 0   Barbarossastrasse 36
Fax. +49 2642 97 80 10  53489 Sinzig, Germany
mailto:[EMAIL PROTECTED]http://www.ciss.de/


--
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 Problem with Beta version MapInfo 6

2000-03-16 Thread ml

John,

for beta testing discussions and questions please use the online
discussion forum on the Mapinfo Web Site, where you downloaded
the beta,

thanks

Markus
- Original Message -
From: John Maguire [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 17, 2000 6:03 AM
Subject: MI Problem with Beta version MapInfo 6



 While Test driving the Beta version of MapInfo 6.
  I have had problems overwriting existing workspaces which reside on a
server
 using Windows NT.
 This problem has been experienced in version 5.5 and doesnt appear to have
been
 rectified in Version 6 Beta.
 The error message is "Unable to save workspace".
  The only way to get around the problem is to save the .wor as a different
name
 or delete the existing .wor and reuse tht file number again.
 Our in house  IT people have exhausted all possibilities associated with
Windows
 NT.

Is there a time out issue with MapInfo across a network when saving
workspaces?
Can it be manually reset ?
Has this problem been experienced by other users?

 Any solution to  this very frustrating problem would be appreciated.

 Many thanks

 John Maguire




 The information contained in this email is intended only for the use of
the
 person(s) to whom it is addressed and may be confidential or contain
 privileged information.  If you are not the intended recipient you are
hereby
 notified that any perusal, use, distribution, copying or disclosure is
strictly
 prohibited.  If you have received this email in error, please immediately
 advise us by return email and delete the email without making a copy.






 --
 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 MapInfo and Laptops (Notebooks) Any comments?

2000-03-13 Thread ml

David,

I have no trouble at all with my Dell Inspiron 7500.
PIII/500
256 MB Memory
20 GB HD
ATI Graphics
Windows NT 4 SP6

Its really fast!

Regards,
Markus
- Original Message - 
From: David Reid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 14, 2000 2:57 AM
Subject: MI MapInfo and Laptops (Notebooks) Any comments?


 Anyone care to share their war stories or love stories , good/bad,
 running MI on their PC portable?
 
 I'm soon to be getting a laptop and still have time to make spec
 changes.  Would like to know such things as; "Trouble running MI with
 the Celeron processor" Other processors, AMD PII, III?  Any
 significant advantage to running 128mb of RAM (or more).
 
 ...would appreciate your feedback
 
 Thanks,
 __
 David Reid
 [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]
 

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