"Set Window - Position" Bug
According to the MapBasic help file, the command
Set Window window_id [ Position ( x, y ) [ Units paper_units ]? ]
should do the following:
"x states the desired distance from the top of MapInfo Professional's workspace to the top edge of the window. "
"y states the desired distance from the left of MapInfo Professional's workspace to the left edge of the window. "
In fact the x and y positions are relative to the entire screen and not the MapInfo Window. Therefore if the user has reduced the size of the MI window, positioning the Legend or Message windows with this command is unreliable unless you first use the commands:
WindowInfo?(WIN_MAPINFO,WIN_INFO_X) WindowInfo?(WIN_MAPINFO,WIN_INFO_Y)
to obtain the current position of the MapInfo Window.
This has been confirmed by PB MapInfo as "An error in the documentation" in 8.5.1