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.
Run Menu Command M_LAYOUT_ITEM_ACTIVATE
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.