MapInfo Pro

 View Only
  • 1.  Mapbasic: textframe_id in Alter Designer Text statement

    Posted 01-16-2019 21:30
    Hi,
    Is it possible to return the textframe_id of a text object in the Layout window by searching on a given text string to return it's ID?
    Does anyone have an example of a similar Mapbasic statement?
    Thanks


    ------------------------------
    Janet Bateson
    Senior GIS Consultant
    Critchlow Ltd (VAR)
    Wellington
    ------------------------------


  • 2.  RE: Mapbasic: textframe_id in Alter Designer Text statement

    Employee
    Posted 01-17-2019 03:00
    Hi Janet

    The new Layout doesn't come with query support as the classic layout window had.

    You will have to run thru the frames, check their type and for the text frames check their content/text.

    One of the engineers on the MapInfo Pro team, Michele, wrote a post on how to loop thru the frames and find specific frames.
    You can find the post here: How to Find and Select Specific Frames in a Layout.

    I would build my own custom MapBasic function so that I could reuse this whenever I needed it. Also remember that frames on the layout now support names. This means that you can give your frames a name that can be used when searching for the frames.

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



  • 3.  RE: Mapbasic: textframe_id in Alter Designer Text statement

    Posted 01-21-2019 15:05
    Thanks Peter. Looks like that should do the job!

    ------------------------------
    Janet Bateson
    Senior GIS Consultant
    Critchlow Ltd (VAR)
    Wellington
    ------------------------------