Problem:
How can I scroll a WOW form?
Resolution:
Out of the box, WOW does not provide a scrolling functionality. However, it does provide all the pieces needed to implement.
(Visual Basic also doesn’t provide this type of scrolling support but with some programming you can add the desired functionality.)
Here's how:
1. Set the form’s AllowFilterEvents property to false.
2. Add a container control to the form (the example program included uses the free Innovasys FramePlus control, as it allows the frame to be set to none, making it transparent to the user - see attached).
3. Place all the other controls inside the container control.
4. Add code to set the container control's size and position when the form is created. This allows you to define the scrollable ‘viewport’.
5. Add code in the form’s EVENTSEXTENSION section to trap the WM-VSCROLL and/or WM-HSCROLL events (messages).
6. Add code to handle the scroll event, remembering to update the scroll bar and repaint the form.
7. Move the position of the container control based upon the scroll bar position.
Please see the attached example that responds to the user grabbing and scrolling the vertical scroll bar. Adding the other type of scroll event types is pretty forward, see the WOW docs.