home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 270.lha / UltraCard_Browser / calendar (.txt) < prev    next >
UltraCard Stack  |  1989-08-09  |  124KB  |  836 lines

  1. -- Select Handlers for this object
  2. Select:
  3. End_Select
  4. Select.Down:
  5. End_Select.Down
  6. Select
  7. Select.Down
  8. Select
  9. Select.Down
  10. GLOBAL
  11. DAYINDEX
  12. GLOBAL
  13. DAYNAME
  14. GLOBAL
  15. STARTMONTH
  16. GLOBAL
  17. YEARVALUE
  18. GLOBAL
  19. MONTHVALUE
  20. GLOBAL
  21. NEXTDAY
  22. ASKVALUE
  23. PROMPT
  24. What Year (78 = 1978, etc.)? 
  25. YEARVALUE
  26. ASKVALUE
  27. PROMPT
  28. What Month (1 = Jan, etc.) ? 
  29. MONTHVALUE
  30. CURSOR
  31. DAYINDEX
  32. LOCKSCREEN
  33. :LOOP1:
  34. DAYINDEX
  35. DAYNAME
  36. DAYNAME
  37. DAYINDEX
  38. DAYINDEX
  39. CURSOR
  40. LOOP1
  41. ENDIF
  42. YEARVALUE
  43. MONTHVALUE
  44. NEXTDAY
  45. NEXTDAY
  46. LASTDATE
  47. STARTMONTH
  48. DAYINDEX
  49. :LOOP2:
  50. DAYINDEX
  51. EXIT1
  52. ENDIF
  53. DAYINDEX
  54. LOOP2
  55. :EXIT1:
  56. THEDAYNUM
  57. :LOOP3:
  58. DAYINDEX
  59. DAYNAME
  60. THEDAYNUM
  61. DAYNAME
  62. THEDAYNUM
  63. DAYINDEX
  64. THEDAYNUM
  65. EXIT2
  66. ENDIF
  67. YEARVALUE
  68. MONTHVALUE
  69. THEDAYNUM
  70. LASTDATE
  71. STARTMONTH
  72. EXIT2
  73. ENDIF
  74. CURSOR
  75. LOOP3
  76. :EXIT2:
  77. MODIFIEDOBJECTS
  78. THEFRAME
  79. UNLOCKSCREEN
  80. KEYF1
  81. CURSOR
  82. READY
  83. What Year (78 = 1978, etc.)? 
  84. YEARVALUE
  85. ASKVALUE
  86. PROMPT
  87. What Month (1 = Jan, etc.) ? 
  88. MONTHVALUE
  89. CURSOR
  90. DAYINDEX
  91. :LOOP1:
  92. DAYINDEX
  93. DAYNAME
  94. DAYNAME
  95. DAYINDEX
  96. DAYINDEX
  97. CURSOR
  98. LOOP1
  99. ENDIF
  100. YEARVALUE
  101. MONTHVALUE
  102. NEXTDAY
  103. NEXTDAY
  104. LASTDATE
  105. STARTMONTH
  106. DAYINDEX
  107. :LOOP2:
  108. DAYINDEX
  109. EXIT1
  110. ENDIF
  111. DAYINDEX
  112. LOOP2
  113. :EXIT1:
  114. THEDAYNUM
  115. :LOOP3:
  116. DAYINDEX
  117. DAYNAME
  118. THEDAYNUM
  119. DAYNAME
  120. THEDAYNUM
  121. DAYINDEX
  122. THEDAYNUM
  123. EXIT2
  124. ENDIF
  125. YEARVALUE
  126. MONTHVALUE
  127. THEDAYNUM
  128. LASTDATE
  129. STARTMONTH
  130. EXIT2
  131. ENDIF
  132. CURSOR
  133. LOOP3
  134. :EXIT2:
  135. MODIFIEDOBJECTS
  136. THEFRAME
  137. KEYF1
  138. CURSOR
  139. READY
  140. -- Select Handlers for this object
  141. Select:
  142. End_Select
  143. Select.Down:
  144. End_Select.Down
  145. Select
  146. Select.Down
  147. -- Select Handlers for this object
  148. Select:
  149. End_Select
  150. Select.Down:
  151. End_Select.Down
  152. Select
  153. Select.Down
  154. -- Select Handlers for this object
  155. Select:
  156. answer "Do you really want to print?" with " Yes " , " No "
  157. if it is 0
  158. return
  159. endif
  160. answer "Printer ready?" with " Ok " , " No, Forget it "
  161. if it is 0
  162. return
  163. endif
  164. cursor wait
  165. do.menu "print" subitem 1
  166. cursor ready
  167. End_Select
  168. Select.Down:
  169. End_Select.Down
  170. Select
  171. Select.Down
  172. ANSWER
  173. Do you really want to print?
  174.  Yes 
  175. RETURN
  176. ENDIF
  177. ANSWER
  178. Printer ready?
  179.  No, Forget it 
  180. RETURN
  181. ENDIF
  182. CURSOR
  183. DOMENU
  184. print
  185. SUBITEM
  186. CURSOR
  187. READY
  188. -- Select Handlers for this object
  189. Select:
  190. End_Select
  191. Select.Down:
  192. End_Select.Down
  193. Select
  194. Select.Down
  195. -- Select Handlers for this object
  196. Select:
  197. End_Select
  198. Select.Down:
  199. End_Select.Down
  200. Select
  201. Select.Down
  202. -- Select Handlers for this object
  203. Select:
  204. End_Select
  205. Select.Down:
  206. End_Select.Down
  207. Select
  208. Select.Down
  209. -- Select Handlers for this object
  210. Select:
  211. End_Select
  212. Select.Down:
  213. End_Select.Down
  214. Select
  215. Select.Down
  216. -- Select Handlers for this object
  217. Select:
  218. End_Select
  219. Select.Down:
  220. End_Select.Down
  221. Select
  222. Select.Down
  223. -- Select Handlers for this object
  224. Select:
  225. End_Select
  226. Select.Down:
  227. End_Select.Down
  228. Select
  229. Select.Down
  230. -- Select Handlers for this object
  231. Select:
  232. End_Select
  233. Select.Down:
  234. End_Select.Down
  235. Select
  236. Select.Down
  237. -- Select Handlers for this object
  238. Select:
  239. End_Select
  240. Select.Down:
  241. End_Select.Down
  242. Select
  243. Select.Down
  244. -- Select Handlers for this object
  245. Select:
  246. End_Select
  247. Select.Down:
  248. End_Select.Down
  249. Select
  250. Select.Down
  251. -- Select Handlers for this object
  252. Select:
  253. End_Select
  254. Select.Down:
  255. End_Select.Down
  256. Select
  257. Select.Down
  258. -- Select Handlers for this object
  259. Select:
  260. End_Select
  261. Select.Down:
  262. End_Select.Down
  263. Select
  264. Select.Down
  265. -- Select Handlers for this object
  266. Select:
  267. End_Select
  268. Select.Down:
  269. End_Select.Down
  270. Select
  271. Select.Down
  272. -- Select Handlers for this object
  273. Select:
  274. End_Select
  275. Select.Down:
  276. End_Select.Down
  277. Select
  278. Select.Down
  279. -- Select Handlers for this object
  280. Select:
  281. End_Select
  282. Select.Down:
  283. End_Select.Down
  284. Select
  285. Select.Down
  286. -- Select Handlers for this object
  287. Select:
  288. End_Select
  289. Select.Down:
  290. End_Select.Down
  291. Select
  292. Select.Down
  293. -- Select Handlers for this object
  294. Select:
  295. End_Select
  296. Select.Down:
  297. End_Select.Down
  298. Select
  299. Select.Down
  300. -- Select Handlers for this object
  301. Select:
  302. End_Select
  303. Select.Down:
  304. End_Select.Down
  305. Select
  306. Select.Down
  307. -- Select Handlers for this object
  308. Select:
  309. End_Select
  310. Select.Down:
  311. End_Select.Down
  312. Select
  313. Select.Down
  314. -- Select Handlers for this object
  315. Select:
  316. End_Select
  317. Select.Down:
  318. End_Select.Down
  319. Select
  320. Select.Down
  321. -- Select Handlers for this object
  322. Select:
  323. End_Select
  324. Select.Down:
  325. End_Select.Down
  326. Select
  327. Select.Down
  328. -- Select Handlers for this object
  329. Select:
  330. End_Select
  331. Select.Down:
  332. End_Select.Down
  333. Select
  334. Select.Down
  335. -- Select Handlers for this object
  336. Select:
  337. End_Select
  338. Select.Down:
  339. End_Select.Down
  340. Select
  341. Select.Down
  342. -- Select Handlers for this object
  343. Select:
  344. End_Select
  345. Select.Down:
  346. End_Select.Down
  347. Select
  348. Select.Down
  349. -- Select Handlers for this object
  350. Select:
  351. End_Select
  352. Select.Down:
  353. End_Select.Down
  354. Select
  355. Select.Down
  356. -- Select Handlers for this object
  357. Select:
  358. End_Select
  359. Select.Down:
  360. End_Select.Down
  361. Select
  362. Select.Down
  363. -- Select Handlers for this object
  364. Select:
  365. End_Select
  366. Select.Down:
  367. End_Select.Down
  368. Select
  369. Select.Down
  370. -- Select Handlers for this object
  371. Select:
  372. End_Select
  373. Select.Down:
  374. End_Select.Down
  375. Select
  376. Select.Down
  377. -- Select Handlers for this object
  378. Select:
  379. End_Select
  380. Select.Down:
  381. End_Select.Down
  382. Select
  383. Select.Down
  384. -- Select Handlers for this object
  385. Select:
  386. End_Select
  387. Select.Down:
  388. End_Select.Down
  389. Select
  390. Select.Down
  391. -- Select Handlers for this object
  392. Select:
  393. End_Select
  394. Select.Down:
  395. End_Select.Down
  396. Select
  397. Select.Down
  398. -- Select Handlers for this object
  399. Select:
  400. End_Select
  401. Select.Down:
  402. End_Select.Down
  403. Select
  404. Select.Down
  405. -- Select Handlers for this object
  406. Select:
  407. End_Select
  408. Select.Down:
  409. End_Select.Down
  410. Select
  411. Select.Down
  412. -- Select Handlers for this object
  413. Select:
  414. End_Select
  415. Select.Down:
  416. End_Select.Down
  417. Select
  418. Select.Down
  419. -- Select Handlers for this object
  420. Select:
  421. End_Select
  422. Select.Down:
  423. End_Select.Down
  424. Select
  425. Select.Down
  426. fFORM
  427. ILBMBMHD
  428. pppBODY
  429. BACKDROP.1
  430. rH/pFRAME.1
  431. Day.1
  432. rIC(rII 
  433. Set Date
  434. hDiamond 12
  435. Month.Name
  436. (Garnet 9
  437. -1811
  438. rNumber
  439. Garnet 9
  440. Print...
  441. `Diamond 12
  442. day.8
  443. day.2
  444. day.3
  445. day.4
  446. day.5
  447. day.6
  448. day.7
  449. day.9
  450. day.10
  451. day.11
  452. day.12
  453. day.13
  454. day.14
  455. day.15
  456. day.16
  457. day.17
  458. day.18
  459. day.19
  460. day.20
  461.  rHtP
  462. day.21
  463. !rHvH
  464. day.22
  465. "rHx@
  466. day.23
  467. #rHz8
  468. day.24
  469. $rH|0
  470. day.25
  471. %rH~(
  472. day.26
  473. &rH~h
  474. day.27
  475. day.28
  476. day.29
  477. day.30
  478. day.31
  479. day.32
  480. day.33
  481. day.34
  482. day.35
  483. LASTDATE
  484. ULTRATALKCHAT
  485. cursor ready
  486. TheFGPen
  487. WIDTHADJUST
  488. CANTMODIFY
  489. HEIGHTADJUST
  490. TheBGPen
  491. TheDrawMode
  492. TheTextPen
  493.     FTheFont
  494. TheFont
  495. Topaz 8
  496. BoldStyle
  497. ItalicStyle
  498. UnderlineStyle
  499. DATACURSOR
  500. FALSE
  501. MOUSEX
  502. MOUSEY
  503. SHIFTKEY
  504. ALTKEY
  505. CONTROLKEY
  506. TheDate
  507.  1-Oct-89
  508. TheDay
  509. TheDayOfTheWeek
  510. TheTime
  511. 12:42:43 PM
  512. TheYear
  513. TheMonth
  514. EXTERNAL.SCRIPTER
  515. C:RUN C:RX
  516. EDITOR
  517. PAINT
  518. TABKEYOBJECT
  519. TARGET
  520. SELECTION
  521. FINDOBJECT
  522. IOLENGTH
  523. PATHWAYS
  524. ULTRA:STACKS/
  525. ULTRA:
  526. SOUNDSLOADED
  527. DAYINDEX
  528. DAYNAME
  529. day35
  530. STARTMONTH
  531. YEARVALUE
  532. MONTHVALUE
  533. NEXTDAY
  534. -- Select Handlers for this object
  535. Select:
  536. global day.index
  537. global day.name
  538. global start.month
  539. global year.value
  540. global month.value
  541. global next.day
  542. -- here we go.  Let's fill in the calendar strings
  543. -- the objects are named day.1 through day.35
  544. -- we have to start by clearing them all
  545. ask.value prompt "What Year (78 = 1978, etc.)? " into year.value
  546. ask.value prompt "What Month (1 = Jan, etc.) ? " into month.value
  547. cursor wait
  548. put 1 into day.index
  549. lock.screen
  550. :loop1:
  551. put "day" && day.index into day.name
  552. put " " into object(day.name)
  553. add 1 to day.index
  554. if day.index < 36
  555. cursor wait
  556. goto loop1
  557. endif
  558. put days(year.value,month.value,1) into next.day
  559. put next.day into last.date
  560. put the month into start.month
  561. put the month into object(1)
  562. put the year into object(2)
  563. put 1 into day.index
  564. :loop2:
  565. if day.index is day.of.the.week
  566. goto exit1
  567. endif
  568. add 1 to day.index
  569. goto loop2
  570. :exit1:
  571. put 1 into the.day.num
  572. :loop3:
  573. put "day" && day.index into day.name
  574. put the.day.num into object(day.name)
  575. add 1 to the.day.num
  576. add 1 to day.index
  577. if the.day.num is 32
  578. goto exit2
  579. endif
  580. put days(year.value,month.value,the.day.num) into last.date
  581. if the month is.not start.month
  582. goto exit2
  583. endif
  584. cursor wait -- rotate the ball
  585. goto loop3
  586. :exit2:
  587. set the modified.objects of the.frame to 1
  588. unlock.screen
  589. send key.f1
  590. cursor ready
  591. End_Select
  592. Select.Down:
  593. End_Select.Down
  594. FRAME.1
  595. Day.1
  596. Set Date
  597. Diamond 12
  598. Month.Name
  599. PGarnet 9
  600. -1811
  601. rNumber
  602. +xHGarnet 9
  603. Print...
  604. Diamond 12
  605. day.8
  606. day.2
  607. day.3
  608. day.4
  609. day.5
  610. day.6
  611. day.7
  612. day.9
  613. day.10
  614. day.11
  615. day.12
  616. day.13
  617. day.14
  618. day.15
  619. day.16
  620. day.17
  621. day.18
  622. day.19
  623. day.20
  624. day.21
  625. day.22
  626. day.23
  627. day.24
  628. day.25
  629. day.26
  630. day.27
  631. day.28
  632. day.29
  633. day.30
  634. day.31
  635. day.32
  636. day.33
  637. day.34
  638. day.35
  639. FRAME.1
  640. Day.1
  641. Set Date
  642. Diamond 12
  643. Month.Name
  644. PGarnet 9
  645. -1811
  646. rNumber
  647. +xHGarnet 9
  648. Print...
  649. Diamond 12
  650. day.8
  651. day.2
  652. day.3
  653. day.4
  654. day.5
  655. day.6
  656. day.7
  657. day.9
  658. day.10
  659. day.11
  660. day.12
  661. day.13
  662. day.14
  663. day.15
  664. day.16
  665. day.17
  666. day.18
  667. day.19
  668. day.20
  669. day.21
  670. day.22
  671. day.23
  672. day.24
  673. day.25
  674. day.26
  675. day.27
  676. day.28
  677. day.29
  678. day.30
  679. day.31
  680. day.32
  681. day.33
  682. day.34
  683. day.35
  684. LASTDATE
  685. ULTRATALKCHAT
  686. 'put "deluxepaintIII:dpaint" into paint
  687. TheFGPen
  688. WIDTHADJUST
  689. CANTMODIFY
  690. INMODIFY
  691. HEIGHTADJUST
  692. TheBGPen
  693. TheDrawMode
  694. TheTextPen
  695.     FTheFont
  696. TheFont
  697. Topaz 8
  698. BoldStyle
  699. ItalicStyle
  700. UnderlineStyle
  701. DATACURSOR
  702. FALSE
  703. MOUSEX
  704. MOUSEY
  705. SHIFTKEY
  706. ALTKEY
  707. CONTROLKEY
  708. TheDate
  709.  1-Oct-89
  710. TheDay
  711. TheDayOfTheWeek
  712. TheTime
  713. 12:42:43 PM
  714. TheYear
  715. TheMonth
  716. EXTERNAL.SCRIPTER
  717. C:RUN C:RX
  718. EDITOR
  719. PAINT
  720. deluxepaintIII:dpaint
  721. VISUAL.EFFECT
  722. EFFECT.SPEED
  723. EFFECT.AMOUNT
  724. 65534
  725. TABKEYOBJECT
  726. 65534
  727. TARGET
  728. SELECTION
  729. FINDOBJECT
  730. IOLENGTH
  731. PATHWAYS
  732. ULTRA:STACKS/
  733. ULTRA:
  734. SOUNDSLOADED
  735. UPEFFECT
  736. DOWNEFFECT
  737. RIGHTEFFECT
  738. LEFTEFFECT
  739. DAYINDEX
  740. DAYNAME
  741. day35
  742. STARTMONTH
  743. YEARVALUE
  744. MONTHVALUE
  745. NEXTDAY
  746. FRAME.1
  747. Day.1
  748. Set Date
  749. 'cXDiamond 12
  750. Month.Name
  751. Garnet 9
  752. -1811
  753. rNumber
  754. 'fhGarnet 9
  755. Print...
  756. '~(Diamond 12
  757. day.8
  758. day.2
  759. day.3
  760. day.4
  761. day.5
  762. day.6
  763. day.7
  764. day.9
  765. day.10
  766. day.11
  767. day.12
  768. day.13
  769. day.14
  770. day.15
  771. day.16
  772. day.17
  773. day.18
  774. day.19
  775. day.20
  776. day.21
  777. day.22
  778. day.23
  779. day.24
  780. day.25
  781. day.26
  782. day.27
  783. day.28
  784. day.29
  785. day.30
  786. day.31
  787. day.32
  788. day.33
  789. day.34
  790. day.35
  791. FRAME.1
  792. Day.1
  793. Set Date
  794. Diamond 12
  795. Month.Name
  796. Garnet 9
  797. -1811
  798. rNumber
  799. Garnet 9
  800. Print...
  801. Diamond 12
  802. day.8
  803. day.2
  804. day.3
  805. day.4
  806. day.5
  807. day.6
  808. day.7
  809. day.9
  810. day.10
  811. day.11
  812. day.12
  813. day.13
  814. day.14
  815. day.15
  816. day.16
  817. day.17
  818. day.18
  819. day.19
  820. day.20
  821. day.21
  822. day.22
  823. day.23
  824. day.24
  825. day.25
  826. day.26
  827. day.27
  828. day.28
  829. day.29
  830. day.30
  831. day.31
  832. day.32
  833. day.33
  834. day.34
  835. day.35
  836.