CPS613

Module 03-Swipe

Toronto Metropolitan University University

Learning Objectives

In this module you will learn how to
  • learn how to show dynamically different portions of the same picture
  • learn how to implement swiping

Module Description:

Summary

In this module you will develop a basic program that implements swiping to reveal different parts of the same picture.

User Interface and Interaction

The application will behave like ModuleSwipe.zip

This program contains a window that shows a portion on an image. Swiping the image reveals its hidden parts, but it is not possible to swipe past the boundaries of the window or the image.

Implementation Details

This is implemented with two controls on the main form:
  • A Panel control inside the main form.
  • A PictureBox control that belongs to the panel. This PictureBox has an image in its background and is the exact dimension of that image. The image should be chosen to be larger than the panel, and as a result the PictureBox will be larger than the panel that contains it. However, because it belongs to the panel, only the portion of the PictureBox (and thus the picture) overlapping the panel will be visible.

Handouts

In the Handouts directory you will find:

References

References for this module are in the Drag and Drop Reference
Explanations of all VB features needed for all the modules can be found at the General Assignment References page


This page is maintained by Sophie Quigley (cps613@cs.torontomu.ca)
Last modified Tuesday, 17-Oct-2023 23:37:24 EDT