Map or Layout Window 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 ScrollBars clause only applies to Map windows. Use the ScrollBars clause to show or hide scroll-bars on a Map window.

The Autoscroll clause applies to Map and classic Layout windows. By default, the autoscroll feature is on for every Map and Layout window. In other words, users can scroll a Map or Layout by selecting a draggable tool (such as the Zoom In tool), clicking and dragging to the edge of the window. To prevent users from autoscrolling, specify Autoscroll Off. To determine whether a window has autoscroll turned on, call the WindowInfo( ) function.

Using the ScrollBars, Autoscroll, and Smart Pan clauses with a Layout window does nothing (the clauses are ignored).

Smart Pan changes the status of the window's panning. When Smart Pan is turned on for a Map window or a Layout window, panning and scrolling use off-screen bitmaps to reduce the number of white flashes. The default for Smart Pan is off.

When Smart Pan is activated for a Layout window, redraw is only affected when the Grabber tool is used.

When Smart Pan is activated for a Map window, there will be different effects depending on the method of moving the map. The Grabber tool automatically paints the exposed area as you grab and move the map. The map will move more slowly than when Smart Pan is off. A more complex map will move more slowly. Scrollbars and autoscrolling perform similarly to the Grabber tool, but the speed of the scrolling is not affected by smart panning. When the MapBasic command Set Map is used to center or pan with Smart Redraw on, the Map window changes without white flashes unless the map is repositioned in such a way that a complete redraw is required.

Note: If off-screen bitmaps have been turned off, then Smart Pan in a Map window behaves like a Layout window.