home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_1 / APPTBK / APPTBOOK.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1980-01-04  |  28.8 KB  |  489 lines

  1. ApptForm
  2. Appointments
  3. Form15V
  4. Panel3D2
  5. SSPanel
  6. Appointment Types
  7. MS Sans Serif
  8.     KindFrame
  9. SSPanel
  10. Phone
  11. KindPict
  12. ppppp
  13. Q}Ux3
  14.     KindFrame
  15. SSPanel
  16. Travel
  17. KindPict
  18.     KindFrame
  19. SSPanel
  20. Meeting
  21. KindPict
  22. LLLL@
  23. {;;;<LLLLK;;;0
  24. ;;;;;
  25. ;;;;0
  26. ;;;;;;;;;;
  27. ;;;;;;;;;;
  28. ;;;;;;;;3
  29. ;;;;;
  30. ;;;;;;0
  31. ;99;;;
  32. ;9;;;;
  33.     KindFrame
  34. SSPanel
  35. Lunch
  36. KindPict
  37. wwwwww
  38. {;;;;;p
  39. ;;;;;p
  40. ;;*";7p
  41. {;;;r;p
  42. Panel3D1
  43. SSPanel
  44. Panel3D1
  45. SaveButton
  46. MS Sans Serif
  47. ApptText
  48. ApptTime
  49.     MaskEdBox
  50. MS Sans Serif
  51. hh:nn AM/PM 
  52. ##:## ??(
  53. ApptType
  54. MS Sans Serif
  55. Image1
  56. Label2
  57. When:
  58. MS Sans Serif
  59. Label1
  60. Appointment type:
  61. MS Sans Serif
  62.     GridTimer
  63. ApptList
  64. TrashCan
  65. wwwww
  66. TrashOpened
  67. wwwww
  68. ppppppppw
  69. wwppppwwwp
  70. xwwwww
  71. TrashClosed
  72. wwwww
  73.     DragArrow
  74.     DragArrow
  75. MoveIcon
  76. MoveIcon
  77. SaveIcon
  78. SaveIcon
  79. NoDrag
  80. NoDrag
  81. @    Form_Load/
  82. Grid1_Click
  83. ApptList
  84. ColWidth
  85. WidthK
  86. curTime8
  87. Prefs
  88.     timeStart
  89. timeEnd"
  90. timeIncrement
  91. curRow
  92. rowMax
  93. ApptList_Click
  94. Height
  95.     RowHeightl    
  96. Screen
  97. TwipsPerPixelYN
  98. PhoneButton_Click
  99. PhoneButton_LostFocus8
  100. PhoneButton_DragDrop
  101. Source
  102. Controlv
  103. PhoneButton_DragOver
  104. State
  105. PhoneButton_GotFocus
  106. PhoneButton_KeyDown
  107. KeyCode
  108. Shift
  109. PhoneButton_KeyPress+
  110. KeyAscii
  111. PhoneButton_KeyUpY
  112. Picture1_Click
  113. Picture1_MouseDown
  114. Button
  115. Picture1}
  116. BEGIN_DRAG4
  117. Index
  118. Picture1_MouseUp
  119. Image1_ClickY
  120. Image1_MouseDown
  121. Image1r
  122. Form_DragOverE
  123. ApptForm
  124. form-
  125. KindPict_MouseDown
  126. KindPict
  127.     KindFrame
  128.     BackColor
  129. G_REDa
  130. ApptList_DragOver
  131. ClickControlAt
  132. Debug1K
  133.     AtGridRow
  134. totalHeight
  135. selRow
  136. SelStartRow6
  137.     SelEndRow
  138. lastSelRow
  139. GridTimer_Timer
  140. Appt_XD
  141. Appt_Y
  142. ENTER%
  143.     GridTimerm
  144. Enabled
  145. LEAVEG
  146. ApptList_DragDrop
  147. DragObjecto
  148. KindPict_MouseUp
  149. Timer1_Timer
  150. Text1
  151. OldClipCursor
  152. BeginDragMode
  153. GetClipCursor;
  154. GetClientRect
  155. hWnd/
  156. cRect
  157. ClipCursor
  158. EndDragMode
  159. Form_DragDrop
  160. cPoint
  161. APIPOINT
  162. POINTAPI
  163. ClientToScreen
  164. lRetO
  165. SetCapture
  166. ReleaseCapture
  167. bottom
  168. right
  169. KindPict_DragOver
  170. KindFrame_DragDrop}
  171. KindFrame_DragOverv
  172. KindPict_DragDrop#
  173. ExecuteDragr
  174. GetMessage`
  175. WM_LBUTTONUP
  176. ExecuteLBDrag
  177. DOBJ_NEWAPPT
  178. objType
  179. DragType5
  180. Dragging
  181. LEFT_BUTTON
  182. MASK_NEWAPPTP
  183. Lsetet
  184. SSPanel
  185.     DragIndex    
  186. LTGREY 
  187. Form_MouseMove
  188. DragValidate
  189.     MASK_NONE
  190. src     
  191. DragIcon@
  192. NoDrag
  193. SaveIcon
  194. SavedOldDragIconk
  195. object
  196. AddAppt!
  197. kindT
  198. ApptTime
  199. ApptType
  200. TimeRowp
  201. thetime4    
  202. atime
  203. FormatW    @
  204. ApptTime_ValidationErrorA    
  205. InvalidTextK
  206. StartPosition:
  207. ApptList_RowColChange
  208. ApptEdit/
  209. ApptText
  210. colonPos
  211. aTextv
  212. gridLastRow
  213. AppListRow
  214. AppListc
  215. ApptList_SelChanged
  216. IgnoreRowChange
  217. ApptType_Change
  218. ApptType_KeyPress
  219. ChangeApptTime
  220. newtime
  221. oldAppt
  222. ApptTime_LostFocusr
  223. ApptText_Change
  224. ApptText_GotFocus
  225. ApptText_LostFocus5
  226. ChangeAppTime
  227. Command3D1_Click
  228.     DragValidN    
  229.     DragValue
  230. valid
  231. ApptText_DragOver
  232. Command3D1_DragOver
  233. Label2_Click
  234. Panel3D1_DragDrop
  235. Panel3D1_DragOver
  236. Label1_Click
  237. Label1_DragOver
  238. Label2_DragOverm
  239. ApptType_DragOverC
  240. ApptType_DragDrop0
  241. Label1_DragDropJ
  242. Label2_DragDropX
  243. ApptText_DragDrop
  244. ApptTime_DragDrop
  245. ApptTime_DragOver8
  246. MASK_OLDAPPT?
  247. ApptList_MouseDown
  248. GridTimerMode
  249. intege*
  250. GTIME_DRAGOVER
  251. GTIME_PICKUP
  252. SetGridTimer
  253. Style
  254. GTIMER_PICKUP_
  255. GTIME_DISABLE?
  256. GTIME_P
  257. DragRow
  258. Change
  259. MoveIcon
  260. ApptList_MouseUp
  261. Interval
  262. SaveButton_Click
  263. SaveButton_DragOver
  264. Panel3D2_DragDrop
  265. SendMessage,
  266. ApiRectFromPoint
  267. topLocationi
  268. GridInvertRect
  269. GridInvertedJ
  270. InvertRect
  271. ApplList
  272. newrect
  273. doinv
  274. gridDC
  275. GetDC
  276.     ReleaseDC
  277. TrueEnd
  278. HighlightRowAtPoint
  279. UnhighlightRow&
  280. HighlightRowFromPoint`
  281. DropRowNum
  282. rownum
  283. GridDropRow
  284.     DragArrow
  285. Enable
  286. selstartcol@
  287.     SelEndCol
  288.     highlight
  289.     AtGridCol
  290. curCol
  291. totalWidth
  292. TwipsPerPixelX
  293. TrashCan_Click
  294. TrashCan_DragOver
  295. TrashCan
  296. Picture
  297. TrashOpened
  298. TrashClosed
  299. TrashCan_DragDrop
  300. ScaleHeight
  301.     totHeight
  302. totWidth
  303. Image1_DragDrop
  304. Image1_DragOver
  305.  Variables used to manage grid
  306.  Drag mode constants to keep track of dragging activity.
  307.  type of object being draggedi
  308.  TRUE when dragging is in progress
  309.  Optional index of dragged obj
  310.  Optional row being dragged in gridi
  311.  Miscellaneous variables
  312.  used as return for DragValidS
  313.  Bitmasks to describe valid drag objects
  314.  a new appointment
  315.  an old appointment
  316.  mask used where no drops are allowed
  317. ApiRectFromPoint
  318.  Given a grid control and a coordinate position, this routine3
  319.  returns a Windows RECT structure containing the pixel
  320.  coordinates of the row being pointed at.  The row number is
  321.  returned, or -1, indicating that no row is being pointed at.
  322.  Loop through each row, accumulating row height until we reach
  323.  the row containing the point.
  324.  Convert the twips values into pixel coordinates
  325.  indicate failure 
  326. ApptEdit
  327.  This subroutine moves the data in the current grid row into
  328.  the "post-it" editing area.
  329.  This routine copies appointment data to the edit window
  330.  If no colon, there's no appointment, so clear the post-it
  331.  area.  If there is a colon, fill in the information.s
  332. ApptList_DragDrop
  333.  Drop a new appointment or existing appointment at a new
  334.  row position.
  335. ApptList_DragOver
  336.  When dragging over the grid, both new and old appointments 
  337.  are considered.  For both cases, we unhighlight the current
  338.  destination row upon leaving the drop zone, and assure that
  339.  the row under the point is highlighted otherwise.
  340. ApptList_MouseDown
  341.  We take charge of the mouse down event to initiate dragging
  342.  ourselves.  First, the cursor must be in column 1.  Next,
  343.  the row must contain a valid appointment to be grabbedx
  344.  (identified by the presence of a colon in the cell).e
  345.  The timer will now count down.  This allows the users
  346.  to easily click, or "press" the mouse.  The Timer
  347.  event handles the drag initialization. 
  348. ApptList_MouseUp
  349.  Be sure the timer is disabled so that a click doesn't
  350.  initiate a drag.  If it's already disabled, it doesn't matter. 
  351. ApptList_RowColChange
  352.  Whenever the row changes, move the highlight to track the
  353.  current cell.
  354.  IgnoreRowChange means that we're setting Col or Row somewhere
  355.  else in the code and we don't want ApptEdit to be called.
  356.  Otherwise, the user changed the row and we update the
  357.  "post-it" area.
  358. ApptText_DragDrop
  359. ApptText_DragOver
  360. ApptTime_DragDrop
  361. ApptTime_DragOver
  362. ApptTime_ValidationError
  363. Invalid time
  364. ApptType_DragDrop
  365.  Accept a drop only for a NEWAPPT icon, otherwise thee
  366.  operation will be cancelled.A
  367. ApptType_DragOver
  368. ApptType_KeyPress
  369.  Don't allow a colon to be entered, since we use a colon to
  370.  separate the appointment "kind" from the text.e
  371. AtGridCol
  372.  Given a point on a grid control, in twips, this routine
  373.  returns the column number where the point is located, or
  374.  -1 indicating the point is outside the grid. 
  375.  Loop through each column, accumulating column width until wew
  376.  reach the column containing the point. 
  377.  not found
  378. BeginDragMode
  379.  Whenever a drag is about to start, this routine is called.w
  380.  The type mask of the drag is flagged, and we remember thatw
  381.  dragging is in progress.   This routine MUST be matched
  382.  by an EndDragMode function call.r
  383.  Start the drag processs
  384. ChangeApptTime
  385.  Given a new time for an appointment at the current row, this
  386.  routine moves the appointment to the new location in thet
  387.  grid.
  388.  If we're already there, then do nothing and return False,
  389.  indicating no row change occurred.t
  390.  Actually move the row.g
  391.  move the data to the post-it area
  392. DragValid
  393.  This function is called by an object's DragOver event to,
  394.  automatically change the drag cursor to the "no drop"
  395.  cursor if necessary.  It also returns True if the object,
  396.  can legally be dropped according to the input mask.
  397.  This is not a valid drag.  Return False, but also change the
  398.  object's drag icon to the NoDrag icon (remembering the oldh
  399.  value for later restore when we exit this object). 
  400.  Entering, remember old icon
  401.  Exiting, restore old icon
  402. EndDragMode
  403.  This function is called when a drag has ended, either
  404.  successfully or unsuccessfully.  This routine removes any
  405.  user feedback related to the drag operation and returns
  406.  TRUE if the passed mask matches the dragged object.
  407.  If a "new appointment" icon was dragged, change the
  408.  frame background to LTGREY again so that the drag
  409.  is officially over.
  410.  If this is an item dragged from the grid, refresh
  411.  the grid in case the drag ended outside the gridh
  412.  frame (and the inverted row remains).
  413. Form_DragDrop
  414.  Ignore drops which occur on the form 
  415. Form_DragOver
  416.  Assure that the "no drop" icon is displayed when passingt
  417.  over the form.e
  418. Form_Load
  419.  Initialize the grid column widths, and set the height ofe
  420.  the list so it displays all times entered. 
  421. XX:XX XX
  422.  Fill the leftmost column with appointment times.e
  423. hh:mm am/pm
  424. Form_MouseMove
  425.  Since we can't trap a "drop" which occurs outside of oure
  426.  application, this is a pretty good solution.  Whenever the
  427.  cursor passes over the form, if we're still dragging check
  428.  to see if the button is now up.  If so, just cancel the
  429.  operation
  430. GridTimer_Timer
  431.  When the timer is triggered, the user has been holding the
  432.  mouse down over a grid row for a "press" duration.  Now,h
  433.  initiate a drag operation. 
  434.  Reset the column to the one with the text in it.n
  435.  Indicate we're doing an "old appointment" drag.
  436. HighlightRowAtPoint
  437.  If the ApplList grid was highlighted (according to thes
  438.  GridInverted variable), then unhighlight the old location and
  439.  highlight the new one.  Instead of a row number, a point within
  440.  the grid is passed.  The row number is returned, or -1, meaning
  441.  that the point was outside the grid.i
  442.  Don't rehighlight the current row, just exit.
  443.  Use the Windows API call InvertRect to invert the row we're
  444.  passing above.s
  445. Image1_DragDrop
  446. Image1_DragOver
  447. KindFrame_DragDrop
  448. KindFrame_DragOver
  449. KindPict_DragDrop
  450. KindPict_DragOver
  451. KindPict_MouseDown
  452.  When the left button goes down over an "appointment type"
  453.  icon, drag its image in NEWAPPT mode.  Copy the DragIcon"
  454.  each time, since it may still be set to the "no drop" icon
  455.  from a previous cancellation.
  456.  Save the index, we'll need it in EndDragMode"
  457. Label1_DragDrop
  458. Label1_DragOver
  459. Label2_DragDrop
  460. Label2_DragOver
  461. Panel3D1_DragDrop
  462. Panel3D1_DragOver
  463. SaveButton_Click
  464.  Save all data in the post-it area to the grid.e
  465.  We can only save if there's an appointment on the current
  466.  grid row already (at least a blank one).n
  467. No appointment at current row
  468.  If the time was changed manually, then move the row to the new
  469.  location.
  470. SaveButton_DragOver
  471. TimeRow
  472.  Given a time value, return the row number within the grid
  473.  where the specified time slot is located.
  474. TrashCan_DragDrop
  475.  The trash can only accepts drops for "old appointments" frome
  476.  the grid.
  477.  Get rid of feedback
  478.  Clear the grid row and update the post-it areai
  479. TrashCan_DragOver
  480.  Provide feedback by "opening the trashcan" whenever an"
  481.  old appointment is dragged over the trash. 
  482.  Open when entering 
  483.  Close when leaving 
  484. UnhighlightRow
  485.  If the ApptList grid is highlighted (according to the
  486.  GridInverted flag), then unhighlight it, otherwise do
  487.  nothing.r
  488.  Use the invert rectangle saved by HighlightRowAtPoint
  489.