home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
vb_code2
/
scrollin
/
scroll.frm
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1995-02-27
|
156KB
|
48 lines
ScrollDemo
Scrolling Demo
Form1%
HScroll1
VScroll1
Picture1
picture2
Command4
Command4
Command1
Command1
Command3
Command3
Command2
Command2
Form_Resize
VScroll1
ScaleWidth
Width
ScaleHeight
HScroll1
Height
Picture1
Value
VDiff
Picture2
Enabled
LargeChange
HDiff
HScroll1_Change
VScroll1_Change
Form_Resize
Repostioin scrollbars and parent picture control
Enable or Disable VScroll1 depending on new size of Form
Generates VScroll1_Change() eventw
Enable or Disable HScroll1 depending on new size of Form
HScroll1_Change
Picture.Left is set to the Negative of the value sincer
as you scroll the Scrollbar to the Right, the display
should move to the Left, showing more of the rightl
of the display, and vice-versa when scrolling to the
lefth
VScroll1_Change
Picture.Top is set to the Negative of the value since
as you scroll the Scrollbar down, the display
should move up, showing more of the the bottom
of the display, and vice-versa when scrolling up