Couple ways to do this...
External button approach:
Code:
OnPress="show_window(MainHUD.Map) show_window(MainHUD.Map)
parent.parent.Map.TM_Plugins.TM_Plugin1.DockButton.TM_DockButton.Activated=true"
The above code assumes the button is at the top of a MainHud window. Add parent references as needed if its nested farther down. It MUST be in MainHud.
Plugin Hack approach:
Insert the following button into Plugin1.xml just after the opening page code.
Code:
<button Name="OnShowWindow" OnActivate="TM_DockButton.Activated=true
Activated=false">
The above method will ALWAYS open the map window in cropped mode. Just use the M key noramlly. You can click the undock button to uncrop the map at any time