home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / scn_savr / scrsvr / biker.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-11-08  |  7.0 KB  |  315 lines

  1. ScrnSave
  2. ScrnSave
  3. Form153    
  4. Picture1
  5. Creating
  6. Screen
  7. Savers
  8. Overview
  9. wanted
  10. your%
  11. screensaver-
  12. toldK
  13. person
  14. heard
  15.     Microsofty
  16. saidf
  17. screensavers
  18. wereF
  19. impossible
  20. Visual 
  21. Basic
  22. Windows
  23. easy+
  24. there
  25. somel
  26.     important
  27. things
  28. Experts
  29. straight
  30. code=
  31. Section{
  32. This.
  33. document
  34. DescriptionE
  35. Application^
  36. title
  37. regular
  38. executable
  39. renamed
  40.     extensionc
  41. Whenm
  42. making
  43. willu
  44. make4
  45. Dialog
  46. MUSTl
  47. whereW
  48. wantm
  49.     displayed@
  50. control]
  51. panel
  52. dropdown8
  53.     Arguments
  54. startsx
  55. calls
  56. argumentS
  57. wants
  58. setup
  59. uses<
  60. module
  61. calledY
  62. SCRNSAVL
  63.     statement%
  64. usedq
  65. capture
  66. change
  67. Startupf
  68. options-
  69. Project\
  70. Main\
  71. TellingA
  72. Saver!
  73. running
  74. waits
  75. beforec
  76. loading;
  77.     specifiedX
  78. doesnl
  79. reload
  80. After/
  81. passes
  82. again
  83. though
  84. already
  85. first
  86. thought5
  87. could|
  88. remedy
  89.     situation
  90. whetherO
  91. previous
  92. instance
  93. loaded
  94. should
  95. kills
  96.     instances
  97. just=
  98. found
  99. which
  100. tells
  101. inactive
  102. SystemParametersInfo
  103. parameters
  104. suchc
  105. active
  106. careful+
  107. sinceM
  108. changes
  109.     permanent
  110. turns
  111. backD
  112. ended
  113. ExitNice
  114. Hiding
  115. cursorC
  116. ShowCursorL
  117. hidden
  118. object
  119. process
  120. hides
  121. needs
  122.     redisplay
  123. well8
  124. Knowing
  125.     generally
  126. pressed
  127. routineU
  128. properly#    
  129. eachb
  130. these
  131. events
  132.     SaverForm{
  133. becauseT
  134. other
  135. wonS    
  136.     MouseMove
  137. message
  138. REGARDLESS!
  139. moved
  140. check
  141. somehown
  142. solution
  143. necessarily
  144.     prettiest
  145. ScrnSave
  146. declarationsm
  147. SWP_NOSIZE
  148. SWP_NOMOVE<
  149. SPI_SETSCREENSAVEACTIVE
  150. bShow
  151. SetWindowPosg
  152. Flags
  153. uAction
  154. uparam
  155. lpvParam=    
  156. fuWinIni
  157. ConfigFormJ
  158. mayE    
  159. alsoC
  160. initialization
  161. whatever
  162. does&
  163.     Form_Load5    
  164. WindowState%
  165. Form_MouseMove
  166. Oldxu    
  167. Form_Clicke    
  168. Form_MouseDown
  169. Form_KeyDown
  170. Form_KeyPress
  171. Config*
  172. pass2
  173. chosen
  174. specific
  175. might
  176. feature
  177. aboutd
  178. remembering
  179. Sources
  180. Congera
  181. James
  182. Group
  183. Electronic
  184. Journal$
  185.     Copyrightz
  186. Friendly2
  187. IssueK
  188. Januaryb
  189. February
  190. Disclaimer
  191. Distribution
  192. informationu
  193. providedQ
  194. freeT
  195. charge,
  196. freely
  197. distributed
  198. portions
  199.     elsewhere
  200. please
  201. indicate
  202. tested
  203. Professional
  204. risk/
  205. registered*
  206. trademarks
  207.     Submitted
  208. Peter<
  209. Provostb
  210. Button
  211. Shift
  212. KeyCode
  213. KeyAscii
  214. Timer1_Timer
  215. Picture1
  216. Timer1[
  217. Enabledn
  218. Interval
  219. ScaleWidth
  220. ThenPx
  221. Widthl
  222. Form_Resize
  223. ScaleHeight
  224. Picture1_Clicks
  225.     Direction
  226. Fright
  227. Fleft
  228. XDirI
  229. XDirect?
  230. YDirectG
  231. Xdirec5
  232. YInc4
  233. XincQ
  234. ifIfg
  235. BitBlt
  236. Target
  237. Source
  238. Column?
  239. SRCCOPY
  240. ScrSave
  241.     Blackness
  242. PlusVal
  243. NegVal
  244. bmWidth
  245. bmHeight
  246.     hdcMemory
  247. SelectObject
  248. hbmpOld
  249. DeleteDC
  250.     ReleaseDC
  251. hDestDC
  252. nWidth
  253. nHeight
  254. hSrcDC
  255. dwRop
  256. hbmpMyBitmap
  257. LoadBitmap
  258. hinst}
  259. GetDC
  260. CreateCompatibleDC
  261. Sub_Main
  262. FdAs^
  263. FwidthV
  264. Fheight
  265. Fbottom
  266. Fdiv#
  267. Speed
  268. Picnum
  269. ElseRow
  270. Accel
  271. Decel
  272. Decode
  273. Picture
  274. position
  275. Biker
  276. LoadPicture
  277. NOTE-g
  278. The program is currently set up to test from within VB
  279. To make a working SCR screensaver file do the folowing-F
  280. Remove the two Rems's from the Biker.Frm load event code..
  281. Change the Project/Options/StartUpForm to Sub Main
  282. Move the Biker.SCR file to your Windows directoryo
  283. and run from Control Panel.y    
  284. ExitNice
  285. Turn the cursor back onr
  286. reset screensavert
  287. Form_Click
  288. Form_KeyDown
  289. Form_KeyPress
  290. Form_Load
  291.  Initialise vars
  292. Make bitmap a picture1 property for SCR file
  293. \biker.bmp
  294. Remove Rem's for SCR file 
  295.  WindowState = 2
  296.  'Maximize the screensaver
  297. Show the forms
  298.  This = ShowCursor(False)
  299.  'Hide the cursor
  300.  Check for eventsl
  301.  Check form extents, & reverse direction
  302.  Needed if control of form y position needed
  303.  If Py < 0 Then YInc = Abs(YInc) Else If Py > Fbottom Then YInc = -(YInc)
  304.  Py = Py + YInc 
  305.  Decode picture position to blit from picture1 array
  306.  Set Accel & Deceleration depending on picture shown
  307.  As a few pixels at each end of the picture are black, and it
  308.  is being moved by 1 pixel, we don't need to explicitly erase it.e
  309.  If this is needed the follwing line will blit black overt
  310.  the previously blitted picture but the flicker will be visiblet
  311.  res = BitBlt(ScrnSave.hDC, Ox, Oy, 96, 96, ScrnSave.hDC, 96, 96, Blackness)
  312. Form_MouseDown
  313. Form_MouseMove
  314. Form_Resize
  315.