Product: MapInfo Professional
Version: 8.x, 7.x, 6.x, 5.x
Platform: All Windows Platforms
Category: 3D Mapping
Determining if a window is 3D map window.
Is it possible to check for the existence of a 3D Map window? Can it be determined if the current front window(active window) is a 3D map window?
To determine if a window is a 3D map window, the WinInfo() MapBasic function needs to be used. The WIN_INFO_TYPE attribute of the function returns a smallint value indicating the window's type. If the value returned is 28 (WIN_3DMAP from the MapBasic.Def) then it is a 3D map window. See the sample code below:
Declare Sub Main
dim intWinId as integer
dim intWinType as integer
intWinId = frontwindow()
intWinType = WindowInfo(intWinId, WIN_INFO_TYPE)
if intWinType = WIN_3DMAP then
note "This is a 3D map window."
note "This is not a 3D map window."
Last Modified: 11/28/2006 08:07:52 AM