MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGIS:AxMap DoubleBuffer

From MapWindow GIS

Jump to: navigation, search

DoubleBuffer

Gets or sets whether or not the map uses double buffering. Double buffering uses a little more memory, but allows the view to be smoother with less flickering.


VB.NET Usage

Property DoubleBuffer() As Boolean

            Parameters

ReturnValue

A boolean value representing whether the map is using double buffering or not.

Sample Code

    Private Sub ToggleDoubleBuffering()
        'See if the map is using double buffering
        If Map1.DoubleBuffer() Then
            'Display message telling user that double buffering is being turned off
            MsgBox("Double buffering is on, turning it off.")
            'Set the map not to use double buffering
            Map1.DoubleBuffer = False
        Else
            'Display message telling user that double buffering is being turned on
            MsgBox("Double buffering is off, turning it on.")
            'Set the map to use double buffering
            Map1.DoubleBuffer = True
        End If
    End Sub
  

VB 6 Usage
Property DoubleBuffer() As Boolean
            Parameters

ReturnValue

A boolean value representing whether the map is using double buffering or not.

Sample Code

    Private Sub ToggleDoubleBuffering()
        'See if the map is using double buffering
        If Map1.DoubleBuffer() Then
            'Display message telling user that double buffering is being turned off
            MsgBox ("Double buffering is on, turning it off.")
            'Set the map not to use double buffering
            Map1.DoubleBuffer = False
        Else
            'Display message telling user that double buffering is being turned on
            MsgBox ("Double buffering is off, turning it on.")
            'Set the map to use double buffering
            Map1.DoubleBuffer = True
        End If
    End Sub

Retrieved from "http://www.mapwindow.org/wiki/index.php/MapWinGIS:AxMap_DoubleBuffer"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: November 12 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links