jps services
  • Home Page
  • GIS Training Courses
    • QGIS Training Courses
    • ArcGIS Training Courses
    • MapInfo Pro Training Courses >
      • MapBasic Training Course
  • About
  • Blog

Using MapBasic code to create a Layout Designer window

12/7/2017

0 Comments

 

Legacy Layout v Layout Designer code

MapInfo Pro provides some information in MapBasic Help concerning legacy code for creating layout windows. However, some features within the legacy layout, available in earlier versions of MapInfo, are no longer supported. For instance, earlier versions of MapInfo had a graph function. Graphs are no longer supported so any code to include graphs in a layout is now redundant and needs to be removed. If the code is left in, at best you will end up with a blank space in the layout, or MapInfo may try to fill the space with a map window frame.

Another issue concerning coding is thematic and cartographic legend layer support for legacy code. If you look up cartographic legend in MapBasic Help you will find code which was developed for the legacy layout format. Below is a section from the Create Cartographic Legend section.

Picture
The first section of this code which should create a Cartographic Legend window creates errors when run in MapInfo Pro.   The second section of code should create a frame for a Thematic Legend window.   However the recommendation to create a frame for a Thematic Legend window, by changing the title to the following does not work as it contains errors:-

S_title="Theme Legend of " + WindowInfo (I_map_id, WW_INFO_NAME)

 By using a note statement you can ascertain the legend name using the first section of the code snippet as shown in the screen below.

Read More
0 Comments

    Author

    Joe Short BSc has been involved with various mapping solutions for over twenty years.  If you are considering implementing a GIS  or have ArcGIS Pro, MapInfo Pro or QGIS training requirements, jps services would be happy to be of assistance to your organisation. 

    Archives

    September 2023
    August 2023
    March 2023
    April 2020
    March 2020
    October 2019
    September 2019
    August 2019
    July 2019
    March 2019
    November 2018
    October 2018
    August 2018
    July 2018
    November 2017
    October 2017
    September 2017
    July 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    May 2016
    February 2016
    September 2015
    August 2015
    April 2015
    February 2015
    November 2014
    October 2014
    July 2014
    June 2014
    May 2014
    March 2014
    February 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    June 2013
    May 2013
    April 2013
    February 2013
    December 2012
    October 2012
    September 2012
    August 2012
    July 2012

    Categories

    All
    Arc Gis
    Arcview
    Autodesk
    Cad
    Gis Training
    Local Government
    Mapbasic
    Mapinfo
    Quantum Gis
    Relational Databases
    Saga Gis

    RSS Feed