Download presentation
Presentation is loading. Please wait.
1
Mice, Lists, Timers, Arrays
2
Mice You can change the cursor property when the mouse does certain things.
3
Mouse Events – Several May Occur at “once”
1 – MouseDown 2 – MouseUp 3 – Click 4 – DblClick 5 -- MouseUp
4
4 arguments passed in many mouse operations
intButton 1 or 2 intShift a bitwise comparison handling all combinations of shift, alt, and control sngX sngY
5
Allows Dragging & Dropping
Experienced in Bonus 5 next week
6
List Boxes See Lists.html
7
List Boxes and Combo Boxes
Nearly infinite variations on 2 basic themes Common windows functionality
8
Methods A method is something an object does to itself
lstMyList.AddItem “Bananas”, 3 lstMyList.RemoveItem 2 lstMyList.ClearList
9
Properties ListCount ListIndex Sorted Text Selected(n) OTHERS
10
Events The only way you can add to most lists is when they click on something else, for instance cmdAddItem button. Private Sub cboMyList_LostFocus()
11
Lists See Lists.html
12
Timer
13
Timer Put anywhere on the form Set interval to 1000 for 1 second
Max is just over 64,000, or 64 seconds Causes an event every second if interval is 1000
14
Arrays Dim strStudents(50) Dim intFinal(50) 0 to 50, or 51 items
Subscript , or Index, starts at 0 Unless you put in the declarations an option: Option Base 1
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.