MapInfo Pro Developers User Group

 View Only
  • 1.  How To Deactivate A Frame With MapBasic

    Posted 11-03-2023 16:15

    I cannot find a way to deactivate a map frame in a layout using MapBasic.

    I can activate one using:

    Set Layout Window <LayoutWindow> Selection Add Frame ID <frameID>

    Run Menu Command M_LAYOUT_ITEM_ACTIVATE 

    But I can't find how to deactivate it. And while I'm on the topic, it is very cumbersome to not give the user a submenu to deactivate the frame. Making them scroll over and click in the gray area or margin feels really weird.

    Am I missing something here?

    Please help.



    ------------------------------
    John Hollingsworth
    GIS Director
    Clear Channel Outdoor
    ------------------------------


  • 2.  RE: How To Deactivate A Frame With MapBasic
    Best Answer

    Employee
    Posted 11-06-2023 01:38

    Hi John

    This statement clears any current selection from the layout:

        Set Layout Window nWID Selection Clear

    where nWID is the ID of a layout window.

    The latest version of the WindowHelper tool that is available in the MapInfo Marketplace has a button on the Layout tab for clearing any selection in the layout.

    I hope this helps


    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 3.  RE: How To Deactivate A Frame With MapBasic

    Posted 01-11-2024 11:05

    Thanks, Peter!



    ------------------------------
    John Hollingsworth
    GIS Director
    Clear Channel Outdoor
    ------------------------------