Personal tools
You are here: Home "Set Window - Position" Bug
BugList >>

"Set Window - Position" Bug

Document Actions
last edited 1 year ago by Gentreau

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

« December 2008 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
 

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: