Floating Window (Legend, Ruler, etc.) Syntax - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

The Parent clause allows you to specify a new parent window for a Legend, Statistics, Info, Ruler, or Message window; this clause is only supported on Windows. The window specified by window_id becomes a popup window, attached to the window specified by HWND.

Note: Re-parenting a window in this manner changes the window's integer ID value. To return a window to its original parent (MapInfo Pro), specify zero as the HWND.

The ReadOnly / Default Access clause applies to the Info, Browser, and Legend windows. This clause controls whether the window is read-only. If you specify ReadOnly, the window does not allow editing. If you specify Default Access, the window reflects the read/write state of the table it is displaying. This works for the main legend and cartographic legends created with the Create Legend statement or the Create Cartographic Legend statement.

The Table clause allows you to display a specific row in the Info window; this clause is only valid when window_id refers to the Info window. Using the Table clause displays the Info window, if it was not already visible.

The Show or Hide clause allows you to show or hide any window that supports show/hide operations (for example, the Ruler window). It can also be used in the MapInfo Pro application window.