MapInfo - INFO tool mbx code

1,263 views
Skip to first unread message

Canuck

unread,
Feb 26, 2013, 2:04:45 PM2/26/13
to mapi...@googlegroups.com
Does anyone know where I can acquire the full Map Basic code that makes up the Info tool in MapInfo?  I have all the sample codes for all the tools that are provided in the tool manager, and more, but I do not see, or could not find the code for the Info tool.

There are some properties of the way the Info tool works that I would like to use in my own code for a project that I am working on.  

If anyone has it, or knows where I may be able to download the mb file for that, I would really appreciate it.

Thanks in advance.

Ryan

Uffe Kousgaard

unread,
Feb 26, 2013, 4:21:04 PM2/26/13
to mapi...@googlegroups.com
Hi,

I am quite certain the info-tool is a core part of MapInfo and written
in C++. Not something you can download on its own.

Regards
Uffe Kousgaard
> --
> --
> You received this message because you are subscribed to the
> Google Groups "MapInfo-L" group.To post a message to this group, send
> email to mapi...@googlegroups.com
> To unsubscribe from this group, go to:
> http://groups.google.com/group/mapinfo-l/subscribe?hl=en
> For more options, information and links to MapInfo resources (searching
> archives, feature requests, to visit our Wiki, visit the Welcome page at
> http://groups.google.com/group/mapinfo-l?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "MapInfo-L" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapinfo-l+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Robert Crossley

unread,
Feb 26, 2013, 10:17:17 PM2/26/13
to mapi...@googlegroups.com
On the surface, it wouldn't be difficult to mimic the behavior of the info tool in MapBasic.  Cycle through the selectable layers in a map, looking for objects at the location you just clicked, etc.

But doing the dialog for this when you don't know how many layers you might find, or how many fields there are in any one layer would be a nightmare.

It would be so much simpler if you could add dialog controls programatically after you raise the dialog, so that you could add as many text boxes as needed.

R



Canuck wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
--
--
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.To post a message to this group, send email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

--- You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





--
----------------------------------
Robert Crossley
Agtrix P/L Australia
 
Far Southern Queensland Office:
Unit 6, 2 Bonanza Drive
Billinudgel 2483
Postal:
PO Box 63
New Brighton 2483
 
P: 61 2 6680 1309
F: 61 2 6680 5214
E: rob...@agtrix.com
W: www.agtrix.com
 
Brisbane Office:
109 Milsom St
Cooparoo  4151
Queensland
P: 61 7 3843 3363

Peter Horsbøll Møller

unread,
Feb 27, 2013, 1:35:23 AM2/27/13
to mapi...@googlegroups.com
That would be a nice improvement to the dialog, Rob.

For the dialog, Uffe is right. The code for the Info Tool is part of
MI Pro and not written as a MapBasic tool. However as the Tool has
been there for ever I'm sure it wasn't written in C++ :-)
You can use the Set Window statement to let the Info Window show a
specific record, not sure if that's helpful information in this
specific case

Peter Horsbøll Møller

2013/2/27, Robert Crossley <rob...@agtrix.com>:
>>> http://groups.google.com/**group/mapinfo-l/subscribe?hl=**en<http://groups.google.com/group/mapinfo-l/subscribe?hl=en>
>>> For more options, information and links to MapInfo resources (searching
>>> archives, feature requests, to visit our Wiki, visit the Welcome page at
>>> http://groups.google.com/**group/mapinfo-l?hl=en<http://groups.google.com/group/mapinfo-l?hl=en>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "MapInfo-L" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> email to
>>> mapinfo-l+unsubscribe@**googlegroups.com<mapinfo-l%2Bunsu...@googlegroups.com>
>>> .
>>> For more options, visit
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>
>> --
>> --
>> You received this message because you are subscribed to the Google Groups
>> "MapInfo-L" group.To post a message to this group, send email to
>> mapi...@googlegroups.com
>> To unsubscribe from this group, go to:
>> http://groups.google.com/**group/mapinfo-l/subscribe?hl=**en<http://groups.google.com/group/mapinfo-l/subscribe?hl=en>
>> For more options, information and links to MapInfo resources (searching
>> archives, feature requests, to visit our Wiki, visit the Welcome page at
>> http://groups.google.com/**group/mapinfo-l?hl=en<http://groups.google.com/group/mapinfo-l?hl=en>
>>
>> --- You received this message because you are subscribed to the Google
>> Groups "MapInfo-L" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to
>> mapinfo-l+unsubscribe@**googlegroups.com<mapinfo-l%2Bunsu...@googlegroups.com>
>> .
>> For more options, visit
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>>
>>
>
>
> --
> ----------------------------------
> Robert Crossley
> Agtrix P/L Australia
>
> Far Southern Queensland Office:
> Unit 6, 2 Bonanza Drive
> Billinudgel 2483
> Postal:
> PO Box 63
> New Brighton 2483
>
> P: 61 2 6680 1309
> F: 61 2 6680 5214
> E: rob...@agtrix.com
> W: www.agtrix.com
>
> Brisbane Office:
> 109 Milsom St
> Cooparoo 4151
> Queensland
> P: 61 7 3843 3363
>
> --
> --
> You received this message because you are subscribed to the
> Google Groups "MapInfo-L" group.To post a message to this group, send
> email to mapi...@googlegroups.com
> To unsubscribe from this group, go to:
> http://groups.google.com/group/mapinfo-l/subscribe?hl=en
> For more options, information and links to MapInfo resources (searching
> archives, feature requests, to visit our Wiki, visit the Welcome page at
> http://groups.google.com/group/mapinfo-l?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "MapInfo-L" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mapinfo-l+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


--
Peter Horsbøll Møller
Pitney Bowes Software

Giles

unread,
Feb 27, 2013, 2:23:22 AM2/27/13
to mapi...@googlegroups.com
BosqMap Forms is a replacement for the info tool which allows users to create forms (of drop down boxes, tick boxes, free text) for entering and viewing data  - http://www.bosqmap.co.uk/content/bosqmap-forms .  There is no limit on the number of tables or columns and you can decide how each column's data is displayed in the dialog box or form

Regards,

Giles

Greg

unread,
Feb 27, 2013, 4:34:00 AM2/27/13
to mapi...@googlegroups.com
Hi,
 
It's easy to replicate the infotool using the SearchPoint() functon, which you can use to search for objects in a map or layout window at a given x, y location.  You can then use SearchInfo() function to return the tablename and rowid for all the objects found, which in turn can be used in a 'fetch' statement to return the record from the table.  There's a good example of this in the MapBasic Reference guide under the SearchInfo() function description.
 
HTH
 
Greg
R



Canuck wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 

--
--
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.To post a message to this group, send email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

--- You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


Lars I. Nielsen (GisPro)

unread,
Feb 27, 2013, 5:06:54 AM2/27/13
to mapi...@googlegroups.com
Sorry to be the spoil-sport, but it's not that easy, in MapBasic at least it isn't.

The "Set Info" functionality is limited to a single record in a single table, hardly a full fledged replacement of the built-in info dialog.

Furthermore, the info dialog is modeless, aka non-modal, whereas all dialogs in MapBasic are modal.

And then the info update has to be triggered by a specific user action, not working "automagically" as is the case with the info tool.

As I see it, the only way to break these barriers is to do a completely separate implementation, in C or VB or Delphi or whatever, and have this work with Pro.

Not even the MapBasic .Net interface will do, as it's also "modal" in nature. Unless of course one employs some serious thread magic :-)



Best regards / Med venlig hilsen
Lars I. Nielsen
GIS & DB Integrator
GisPro

Canuck

unread,
Feb 27, 2013, 11:24:52 AM2/27/13
to mapi...@googlegroups.com
Thanks for all the help and suggestions.

I do have something setup, or at least something I am working on, so that when my tool is activated, it will run through a loop of all the open layers in the map and make them all un-selectable (all but the one I'm interested in selecting).  This will guarantee that only the layer that I am interested in will be picked for my tool.

It is what happens when there are multiple objects in the same layer that can confuse things in my tool, and I thought the code for the Info tool would help me to display these multiple objects and then allow me to choose which of these I want.  

That is a bummer that it is not a tool that is really MapBasic coded, I just assumed that it would be.  Still, I think there are some helpful ideas here, and maybe I can get something to work.

Thanks again for all the responses.

Greg

unread,
Feb 27, 2013, 2:54:14 PM2/27/13
to mapi...@googlegroups.com
Here's a tool that I wrote years ago that might be of interest and is based on the functions I mentioned in my previous post:

http://www.directionsmag.com/files/view/click-select/139398

If it helps, I can provide the source code.

Greg.

Canuck

unread,
Feb 28, 2013, 9:41:24 AM2/28/13
to mapi...@googlegroups.com
Very cool!  Yes, if you would not mind providing the source code, I think that I would get a lot out of it.  

Thanks so much for your offer and for your help.  

Ryan
Reply all
Reply to author
Forward
0 new messages