CustomScrollableControl.CustomScrollableControl Class
Summary description for CustomScrollableControl.

Access: Public
Base Classes: UserControl
  Members Description  
    hScrollBar    
    vScrollBar    
    components Required designer variable.

 
    scrollingImage The bitmap of the virtual space.

 
    ScrollingImage Accessor for the scrollImage Property. The set calls the adjustScrollBars method in order to adjust the scroll bars when a new image is loaded.

 
    viewportCoords The Coordinates of the viewport.

 
    ViewportCoords Returns the actual Viewprot Coordinates. Used by applications to be able to determine the image coordinates relatice to the image.

 
    ScrollingImageArea Returns a rectangle the size from the origin of the control to the x-Coordinate of the vertical scrollbar and the y-Coordinate of the horizontal scrollbar.

 
    CustomScrollableControl    
    Dispose Clean up any resources being used.

 
    InitializeComponent Required method for Designer support - do not modify the contents of this method with the code editor.

 
    drawImage Calculates and draws the part of the bitmap that is visible to the control using a clip rectangle.

 
    CustomScrollableControl_Paint Paint event handler for CustomScrolableControl. It takes care of copyiong the necessary image date to the screnn and whites out any other area to the right or below the image that needs repainting.

 
    adjustScrollBars Dimensions and to sets some properties for the scrollbars

 
    scroll This is the heart of the custom control. In this method the viewport is incrementally moved from the previous psoition to the current position of the scrollbars. In between showing the incremental moves the methods slpees for a short time to display the image bfore moving to the next poition until the final destination.

 
    vScrollBar_Scroll Called when the vertical scrollbar was clicked by the user. The new coordinates according to the current scrollbar value is calculated and the scroll method is called to do the smooth scrolling from the old viewport position to the new one.

 
    hScrollBar_Scroll Called when the horizontal scrollbar was clicked by the user. The new coordinates according to the current scrollbar value is calculated and the scroll method is called to do the smooth scrolling from the old viewport position to the new one.

 
    CustomScrollableControl_Resize Called whenver the window is resized. The scrollbar positions are recalculated and the image coordinates for the repaint are calculated.

 
    CustomScrollableControl_Load