Migrating 32 bit MapBasic Applications to the 64 bit MapInfo Pro(Am I missing something?)

502 views
Skip to first unread message

Keith Tozier

unread,
Oct 25, 2016, 12:30:21 PM10/25/16
to MapInfo-L
I have spent about three weeks working with the 64 bit version of MapInfo Pro and developing for that platform.
I have had some success in changing the menu which fell under the LEGACY Tab(Boy does this has a negative connotation) to the Ribbon.
I have relied upon examples to get where I am, but the examples do not do everything I need to do.
I am trying to understand the functions included in the IMapInfoPro.def. 
Where is the documentation for these functions? 
Are we limited to the examples/samples for documentation?
I have looked at the RibbonLibrary,  What does that have to do with the IMapInfoPro.def file?
Are these two separate paths to development? 
Does the Ribbon Library have functions that are not included in the IMapInfoPro.def?
I have been developing applications for MapInfo Pro for a long time using MapBasic. 
Up until the 64 bit version the documentation was pretty inclusive of all functions (Tableinfo, Windowinfo, etc...)
Microsoft introduced the Ribbon, this technology has been adopted by Pitney Bowes.
Is a developer to learn the Ribbon thru microsoft.NET and then apply that to the MapInfo Pro 64 bit development.
Or is a person supposed to be able to learn all they need to know thru examples and documentation(which leaves much to be desired)
Is the documentation for MapBasic 16.0 complete or still being worked on.
Am I missing something?



Keith Tozier
International Computer Works, Inc.




Peter Horsbøll Møller

unread,
Oct 25, 2016, 1:08:28 PM10/25/16
to mapi...@googlegroups.com

Hi Keith

 

I’ll try to give you some answers.

The documentation for MapBasic can now be found here:

http://reference1.mapinfo.com/software/mapbasic/english/16.0/MapBasicReference.pdf

 

I don’t think we have released MapBasic 16.0 yet. It will be there shortly.

 

To get a better understanding of the methods from the .NET API which also includes all the Ribbon “stuff” you need to look at the new help file in the MapBasic installation folder called ExtensibilityReferenceHelp.exe.

 

The RibbonLib has been created to help MapBasic developers who want to port their solution to the Ribbon interface.

The RibbonLib doesn’t cover all the capabilities that is available via iMapInfoPro.def and the .NET SDK actually have even more features than exposed via iMapInfoPro.def.

 

Basically the RibbonLib wraps the methods from the iMapInfoPro.def to make it easy to add controls to the ribbon.

And it also helps you remove the controls afterwards.

 

Are you look for specific things, please let me know.

Maybe it’s already there or maybe I can consider adding it.

 

Peter Horsbøll Møller

Pitney Bowes

--
--
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/d/optout.




Keith Tozier

unread,
Oct 25, 2016, 2:28:14 PM10/25/16
to MapInfo-L

I am looking at the MapBasic 16.0 user guide  MapInfo Pro 16 is a 64 bit version of MapInfo and 64 bit only.


Why does the MapBasic 16.0 user manual look like it was written for 32 bit? 

Are developers expected to write applications that run under the LEGACY Tab(yuk!)

Why does the manual describe how to develop the old user interface(menus, buttonpads, etc.)

The documentation needs some serious updating.
 

Keith Tozier

unread,
Oct 25, 2016, 7:48:31 PM10/25/16
to MapInfo-L



how to get pop out menu above into context menu below.


Peter,

 I know you have been exceptionally helpful and extremely knowledgeable with regards to developing for the new Ribbon. 

I Thank you for that.

I guess, what I am trying to do is understand what Pitney Bowes plans are for updating MapBasic Documentaion

The documentation for MapBasic 16.0 has already been released and can be viewed at Pitney Bowes website.

Porting existing Commercial of the Shelf Applications to the MapInfo 64 bit requires that the application interface to be in line with the GUI of the day.

I do not think many people would want to pay for applications that run under the LEGACY Tab and that is what the MapBasic Documentation is proposing (The MapBasic documentation is LEGACY Documentation)

It seems, the most profound change from 32 bit MapInfo to 64 bit MapInfo is the Ribbon Interface, which seems to be the least discussed in the manual(4 pages copy and pasted from to the ribbon examples).

MapBasic 16.0 is designed specifically for MapInfo 16(64 bit), so why do you suppose the documentation explains in great detail how to build controls that will all fall under the LEGACY Tab.

In addition to this wondering, I have an example that uses the context menus and I really am not sure how to replicate a pop out menu in the mapper context menu.




Files included:

 

auto_Lib.mb

auto_Lib.def

auto_lib.mbo

contextmenusKT.mb

contextmenusKT.mbo

contextmenusKT.mbp

contextmenusKT.mbx

Enums.def

IMapInfoPro.def

MapBasic.def

ContextMenuKT1.jpg

ContextMenuKT2.jpg











ContextMenuKT.zip

Peter Horsbøll Møller

unread,
Oct 26, 2016, 6:56:31 AM10/26/16
to mapi...@googlegroups.com

Hi Keith

 

I agree. Having a tool getting loaded into the LEGACY tab really doesn’t look that professional, but that really was the best option for us to make it possible to get these older applications to work in the new interface. Also note that  menus and menu items earlier added to the Tools menu will now appear on the tool itself in the Tools window.

 

The new design options gives you the possibility to place your controls exactly where you want and so place them next to built-in controls that do similar things. If you haven’t already, have a look at how the MadCAD tools are integrated into the SPATIAL tab and existing controls on this tab.

 

We haven’t removed the description on the classic menu and buttonpads as those features are still supported by MapBasic but only partly by the interface. And I agree, we could certainly do better on the documentation on how to build your application into the user interface. I’ll put that forward to our documentation team.

 

Back to your example, you can use the Create Menu statement and Alter Menu statement to do what you are looking for.

 

You basically just need to add this single statement after you have created the menus:

Alter Menu ID M_SHORTCUT_MAPPER Add "Options Application" As "Options Application"

 

And you need to include Menu.def, too

 

 

Oh, and if you haven’t already seen the tool from GeoAS, I would recommend taking a look at that for building a Ribbon interface:

http://www.geoas.de/pages/en/home.php

They have a trial version that you can have a play with before deciding to purchase it.

 

Peter Horsbøll Møller

EMEA Channel Enablement Specialist

Location Intelligence | MapInfo

 

M: +45 29 133 769

peter....@pb.com | @phorsbollmoller

pitneybowes.com/dk | mapinfo.com

 

From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Keith Tozier


Sent: 26. oktober 2016 01:49
To: MapInfo-L <mapi...@googlegroups.com>

--
--
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/d/optout.

MEHMET HINC

unread,
Oct 26, 2016, 9:51:02 AM10/26/16
to mapi...@googlegroups.com
I used default documentation from PB MapInfo and easily created first simple application with Ribbon interface, I think documentation is a bit problem yes but it is not a rocket science when you truly understand Ribbon interface and so on. I struggled a lot in the beginning to switch from x86 to x64 but more or less it's ok :)

But with all due respect Peter and all mapinfo family. There should be big change when it comes to MapBasic, I believe MapBasic has to replaced with fully new version of MapBasic.NET or something like that, obviously we're still trying to adapt old world to the new world :)

Inline image 2


Cheers,
Mehmet

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/d/optout.

--
--
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.

Keith Tozier

unread,
Oct 26, 2016, 12:05:02 PM10/26/16
to MapInfo-L

Keith Tozier

unread,
Oct 27, 2016, 11:26:19 AM10/27/16
to MapInfo-L
Peter,

Alter Menu ID M_SHORTCUT_MAPPER Add "Options Application" As "Options Application"

Does not work in MapInfo Pro 15.2 or MapInfo Pro 16.0

I will start a new topic on this.

Keith Tozier

unread,
Oct 27, 2016, 11:34:59 AM10/27/16
to MapInfo-L
I see I was able to get it to work.
I have another application that did not seem to work and I think it is a matter of rearranging the code a bit.
I did get the "Options Application" to work.
no new topic for now
Reply all
Reply to author
Forward
0 new messages