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
------------------------------
Original Message:
Sent: 11-03-2023 16:15
From: John Hollingsworth
Subject: How To Deactivate A Frame With MapBasic
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
------------------------------