Scroll Bars

Both horizontal and vertical scroll bars are automatically created for any window that has a buffer that will not fit in the display area. This includes scrollable regions, virtual data and menu forms, choice lists, memo fields, and all memory-file mapped windows.

If the user resizes the window to accommodate the full buffer, then the scroll bars automatically disappear.

These behaviors apply regardless of the state of the Windows HSBAR and VSBAR style flags.

MANUALUPD Scrollbars

Events are received asynchronously in MS Windows. This means that Vermont Views can receive events even when the app is not in an event loop. One example of this is with the use of scroll bars. When the user clicks on a window's scroll bar, Windows sends a WM_HSCROLL or WM_VSCROLL message to the window's callback function. If your application uses MANUALUPD scroll bars, you must install and event function for the event AC_SBAREVENT on the system event table.

Related Information
AC_SBAREVENT

Writing Event Functions

Win32 Programmer's Reference - WM_HSCROLL, WM_VSCROLL

For an example of MANUALUPD scroll bars, see the wnv_wrtg tutorial in the vvwin\samples\tutor directory.


Home Contents Previous Next