[MI-L] Unable to delete image

2006-10-20 Thread Rakesh Rao

Hello,

I am developing a MapBasic application in which I need to refresh a 
geo-referenced image in 
a layer dynamically. The image TIFF file needs to the have the same name so I 
need to first 
detach the image (or delete the layer?) and re-attach the same?

Can someone guide me the correct sequence of procedure to follow?

I have read about many prospective commands to do the same, like:

1. Remove Map Window FronWindow() Layer LayerName
2. Drop Map layerName
3. Close table LayerName
4. Drop Table LayerName
5. Kill TIFFFile

I am getting confused what is/are the correct statement(s) to use? What is the  
correct 
sequence to use? Which ones to use and which ones not to use?

The way I have it now - I am running statements (1), (3) and (5) but get an 
error saying that 
the TIFFFile cannot be deleted. If I delete it from the OS level (using Windows 
Explorer, it 
deletes without problems). What is happening here? Can someone enlighten me? I 
need to 
delete this file in order to be able to rename another newly generated file 
into this name and 
attach the refreshed layer.

Any quick help / tips are greatly appreciated. I am under pressure to get this 
sorted out.

Thanks  Regards
- Rakesh Rao [ rakesh.rao(at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] Event based programming

2006-10-17 Thread Rakesh Rao

Hello,

I have a dialog based application in which I need to update a raster image in a 
layer and 
show the dialog again soon after. Is there a way to temporarily hide the dialog 
box?

How do I find out if the dialog box has closed?

On a similar note, how do I trap the event when MapInfo is about to exit?

Any help is appreciated.

Thanks  Regards
- Rakesh Rao [ rakesh.rao(at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] Setting the Map Window size

2006-10-12 Thread Rakesh Rao

Hello,

In MapBasic, how do I set the coordinates of the current Map Window 
(FrontWindow).

I have the values llX, llY and urX, urY with me and would like to set the 
current window 
coordinates and also zoom (or set the size) of the window to this value.

I tried the few options in the Set Map command but am not clear how the 
inter-play between 
the units in the map window / workspace etc work.

This my code fragment that I used:

 dX = xMax - xMin
 dY = yMax - yMin

 cenPtX = xMin + (0.5 * dX)
 cenPtY = yMin + (0.5 * dY)

 Set Map
   Window FrontWindow()
   Center (cenPtX, cenPtY)
   Distance Units m
   Zoom dX Units m


Any help is greatly appreciated and thanks in advance.

- Regards
- Rakesh Rao [ rakesh.rao(at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] Icon Image Buttons in dialogs

2006-09-26 Thread Rakesh Rao

Hello,

I am trying to build a MapBasic dialog box with icons in Push buttons which act 
like toggles. 
One push and it is On and Push again, it is Off. I need to be able to 
dynamically change the 
icon of each button as it is depressed (like in VB) by changing the bmp's. How 
do I do this? 
What control I must use?

Any help is appreciated and thanks in advance.

Regards
- Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
- View GDF files within the AutoCAD environment, Use GDFViewer with GeoTools 
--- End of forwarded message ---

- Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
- View GDF files in AutoCAD, Get GDFViewer with GeoTools

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[Spam] Re: [MI-L] DLL function name limit

2006-09-26 Thread Rakesh Rao

Hi Bill,

Thank you for your reply. No, the Alias clause did not help either.
---
// Below function name compiled correctly but does not link, gives a run-time 
error saying that 
the function does not exist in DLL

IClientObject_ShowImageServicesDialog


// Below function does not compile at all, gives an error saying that function 
is already 
defined. It appears to be taking only the furst 32 signifiant characters in the 
function name.
 
IClientPropertiesDialog_ShowPropertyPage


' Declaration in header file

Declare Function IClientObject_ShowImageServicesDialog Lib ISClientC.dll 
Alias 
ShowServices (ByVal object as Integer, showImageServicesXml as String) as 
String

Declare Function IClientPropertiesDialog_ShowPropertyPage Lib ISClientC.dll ( 
ByVal 
object as Integer, ByVal pageId as Integer, ByVal parentHandle as Integer ) as 
Logical

Is there a way to get around this, other than having to recompile the DLL and 
make changes 
at source?


Regards
Rakesh
- Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
- View GDF files in AutoCAD, Get GDFViewer with GeoTools

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


RE: [MI-L] Off Topic - Shapefile to DWG

2006-09-26 Thread Rakesh Rao

Hi David,

You can import multiple SHP files at once into Autodesk Map. So, as long as you 
want all of 
the SHP files in one drawing, Autodesk Map should do your job.

Regards
Rakesh

On 26 Sep 2006 at 12:25, David Hilpipre wrote:

 As there's no specific budget, FME trial version may be ? (14 days trial 
 AFAIR) 
 
 David
 
 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:mapinfo-l-
[EMAIL PROTECTED] De la part de Jackson, Simon (Capita Symonds)
 Envoyé : mardi 26 septembre 2006 11:43
 À : mapinfo-l@lists.directionsmag.com
 Objet : [MI-L] Off Topic - Shapefile to DWG
 
 Ok, I thought this would be an easy one.  I have 50+ shapefiles (polygons, 
 polylines, points) 
and I need them to be in a dwg format.
 I can do this manually with Autocad MAP one by one.  However I want to batch 
 it up.  I 
have no budget to buy additional software.
 I have tried Universal Translator, converting them to TAB then to DWG but the 
 attribute 
data gets lost.  I only have arcview license of ArcMap and no ArcINFO which 
only lets me 
convert to DXF.  
 
 Any ideas?
 
 **
 This email and any files transmitted with it are confidential, and may be 
 subject to legal 
privilege, and are intended solely for the use of the individual or entity to 
whom they are 
addressed.  
 If you have received this email in error or think you may have done so, you 
 may not peruse, 
use, disseminate, distribute or copy this message. Please notify the sender 
immediately and 
delete the original e-mail from your system.
 
 Computer viruses can be transmitted by e-mail. Recipients should check this 
 e-mail for the 
presence of viruses. The Capita Group and its subsidiaries accept no liability 
for any damage 
caused by any virus transmitted by this e-mail.
 ***
 
 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l
 
 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l
 
 



- Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter


___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


Re: SV: [Spam] Re: [MI-L] DLL function name limit

2006-09-26 Thread Rakesh Rao

Thank you fro the tip, Bo, but it did not work.Any other ideas?

Is there a limit for the DLL also that the function names must be a maximum of 
31 characters 
like other MapInfo symbol names?

Regards
Rakesh

On 26 Sep 2006 at 14:04, Thomsen, Bo Victor wrote:

 Hi Rakesh -
 
 Try to change the place of the function name and the alias: Instead of this:
 
 Declare Function IClientObject_ShowImageServicesDialog Lib ISClientC.dll 
 Alias 
ShowServices (ByVal object as Integer, showImageServicesXml as String) as 
String
 
 try this:
 
 Declare Function ShowServices Lib ISClientC.dll Alias  
IClientObject_ShowImageServicesDialog (ByVal object as Integer, 
showImageServicesXml 
as String) as String
 
 
 call the function like this:
 
 sArg2 = space$ (255)
 sVal = ShowServices (nArg1, sArg2)
 
 
 Regards 
 
 Bo Thomsen
 GeoConsult I/S
 Denmark
 
 -Oprindelig meddelelse-
 Fra: [EMAIL PROTECTED] [mailto:mapinfo-l-
[EMAIL PROTECTED] På vegne af Rakesh Rao
 Sendt: 26. september 2006 13:03
 Til: mapinfo-l@lists.directionsmag.com
 Emne: [Spam] Re: [MI-L] DLL function name limit
 
 
 Hi Bill,
 
 Thank you for your reply. No, the Alias clause did not help either.
 ---
 // Below function name compiled correctly but does not link, gives a run-time 
 error saying 
that 
 the function does not exist in DLL
 
 IClientObject_ShowImageServicesDialog
 
 
 // Below function does not compile at all, gives an error saying that 
 function is already 
 defined. It appears to be taking only the furst 32 signifiant characters in 
 the function name.
  
 IClientPropertiesDialog_ShowPropertyPage
 
 
 ' Declaration in header file
 
 Declare Function IClientObject_ShowImageServicesDialog Lib ISClientC.dll 
 Alias 
 ShowServices (ByVal object as Integer, showImageServicesXml as String) as 
 String
 
 Declare Function IClientPropertiesDialog_ShowPropertyPage Lib ISClientC.dll 
 ( ByVal 
 object as Integer, ByVal pageId as Integer, ByVal parentHandle as Integer ) 
 as Logical
 
 Is there a way to get around this, other than having to recompile the DLL and 
 make 
changes 
 at source?
 
 
 Regards
 Rakesh
 - Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
 - Four Dimension Technologies
   [www.4d-technologies.com]
 - Get GeoTools, Work smarter: www.4d-technologies.com/geotools
 - Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
 - View GDF files in AutoCAD, Get GDFViewer with GeoTools
 
 ___
 MapInfo-L mailing list
 MapInfo-L@lists.directionsmag.com
 http://www.directionsmag.com/mailman/listinfo/mapinfo-l
 
 
 
 
 



- Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter


___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] Iconi Image Buttons in dialogs

2006-09-25 Thread Rakesh Rao

Hello,

I am trying to build a MapBasic dialog box with iconin toggle buttons whose 
toggle state is 
shown by changing icon images (bmp). How do I do this? What control I must use?

Any help is appreciated and thanks in advance.

Regards
- Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
- View GDF files within the AutoCAD environment, Use GDFViewer with GeoTools 

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] DLL function name limit

2006-09-25 Thread Rakesh Rao

Hello,

I am trying to connect to a C DLL and it appears that there is a limit of 31 
characters in the 
name of the DLL function? Is there any setting or variable to over-ride this 
limit and use 
longer named DLL functions. In this particular DLL that I have, most functions 
are named 31 
characters or longer. Is there an easier option for me other than to rename and 
recompile the 
entire function library?

- Regards
- Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
- View GDF files in AutoCAD, use GDFViewer with GeoTools

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] Seting default MBX folder location

2006-09-14 Thread Rakesh Rao

Hello,

I am new to MapInfo MapBasic programming and am trying to create a toolbar DLL. 
Is it 
mandatory to give the icon ID's as numbers like 101, 102 etc as shown in the 
MapInfo 
knowledge-base  sample or can we have meaningful names like ADD , DELETE 
etc.

If this is possible, how do we differentiate or tell MapInfo which is the small 
icon and which is 
the big icon for each button.

Any help is appreciated.

- Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
- Four Dimension Technologies
  [www.4d-technologies.com]
- Get GeoTools, Work smarter: www.4d-technologies.com/geotools
- Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter

___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


[MI-L] Test Message

2006-09-11 Thread Rakesh Rao


___
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


MI-L MapBasic

2004-12-06 Thread Rakesh Rao

Hello,

I have obtained a licensed copy of MapInfo 7 from our client for development 
use but 
Mapbasic is not part of it. I understand this is something that needs to be 
purchased 
separately. Fair enough. This is also being arranged by our client but it is 
likely to take some 
time to comlete the formalities. In the meanwhile, is there any way how I can 
obtain it for 
short time trial use, so as to use my time productively while waiting for it to 
arrive?

Regards
Rakesh


-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14377



MI-L Newcomer help

2004-11-28 Thread Rakesh Rao

Hello,

I am a total newcomer to MapInfo 7.0 but have programmed in VB / C++ / Lisp etc 
on other 
platforms. I have just got it installed and would like to know what are the 
available development 
platforms in MapInfo 7.0.

I understand that the native development tool is MapBasic. My questions are:

1. Is Mapbasic the only platform for Mapinfo 7.0? If yes, how do I get started 
with it? Where is 
the online programmers documentation etc?

2. Is VB or VBA a possible programming tool?

Let me know some answers so I can get started with your kind help.

Regards
Rakesh





-
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14262