ComponentOne VSView 8.0
VSViewPort Control

The VSViewPort is a scrollable container control. With VSViewPort, you no longer have to write tedious code to synchronize scroll bars and picture boxes. You decide how big your window should be, then let the VSViewPort scroll your controls for you. You can use the VSViewPort to implement fill-out forms that are larger than the visible window, and print them later using the VSPrinter control.

The new VSViewPort control has a FocusTrack property that automatically scrolls the viewport so that the control with the input focus is visible to the user.

Note: Before you can use a VSViewPort control in your application, you must add the VSVPort8.ocx file to your project. Please refer to the VB documentation for details on adding controls to your projects.

To distribute applications you create with the VSViewPort control, you must install and register it on the user's computer. The Setup Wizard provided with Visual Basic provides tools to help you do that. Please refer to the Visual Basic manual for details.

The VSViewPort control provides the following properties, events and methods:

All of the properties, events and methods for the VSViewPort control are listed in the following tables. Properties, events and methods that apply only to this control, or that require special consideration when used with it, are marked with an asterisk (*). These are documented in later sections. For documentation on the remaining properties, see the Visual Basic documentation.

Properties

*AccessibleDescription

Gets or sets the description of the control used by accessibility client applications.

*AccessibleName

Gets or sets the name of the control used by accessibility client applications.

*AccessibleRole

Gets or sets the role of the control used by accessibility client applications.

*AccessibleValue

Gets or sets the value of the control used by accessibility client applications.

Appearance

See the Visual Basic documentation.

*AutoScroll

Returns or sets whether contents are scrolled automatically by the control.

BackColor

See the Visual Basic documentation.

BorderStyle

See the Visual Basic documentation.

Enabled

See the Visual Basic documentation.

*FocusMarginLeft

Returns or sets the left margin for tracking the child with focus.

*FocusMarginTop

Returns or sets the right margin for tracking the child with focus.

*FocusTrack

Returns or sets whether the control should scroll to keep visible the child with focus.

hWnd

See the Visual Basic documentation.

*LargeChangeHorz

Returns or sets the amount of change to the VirtualLeft property when the user clicks the scroll bar area.

*LargeChangeVert

Returns or sets the amount of change to the VirtualTop property when the user clicks the scroll bar area.

MouseIcon

See the Visual Basic documentation.

MousePointer

See the Visual Basic documentation.

*MouseScroll

Returns or sets whether contents may be scrolled by dragging the control's client area.

Picture

Returns or sets a picture to be used as a background for the control.

*ProportionalBars

Returns or sets whether the scrollbar thumbs should be proportional to the size of the visible area.

*SmallChangeHorz

Returns or sets the amount of change to the VirtualLeft property when the user clicks the scroll arrow.

*SmallChangeVert

Returns or sets the amount of change to the VirtualTop property when the user clicks the scroll arrow.

*Track

Returns or sets whether scrolling occurs as the user drags the scroll thumb.

*Version

Returns the version of the control currently loaded.

*VirtualHeight

Returns or sets the height of the scrollable area, in twips.

*VirtualLeft

Returns or sets the left coordinate of the visible area, in twips.

*VirtualTop

Returns or sets the top coordinate of the visible area, in twips.

*VirtualWidth

Returns or sets the width of the scrollable area, in twips.

Methods

*Refresh

See the Visual Basic documentation.

*SetVirtualExtent

Sets the VirtualWidth and VirtualHeight properties to fit the contained controls.

Events

Click

See the Visual Basic documentation.

DblClick

See the Visual Basic documentation.

MouseDown

See the Visual Basic documentation.

MouseMove

See the Visual Basic documentation.

MouseUp

See the Visual Basic documentation.

*Scroll

Fired after the control scrolls its contents.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback