WINDEMO.DBD 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <WinDemo
  2. {WinDemo$CheckScrollLock
  3. }
  4. {WinDemo$SetC
  5. cc 8 #8BE
  6. bwc 6 #8BE
  7. (8BE 1 Black,Blue,Green,Cyan,Red,Magenta,Brown,LightGray,DarkGray,LightBlue,LightGreen,LightCyan,LightRed,LightMagenta,Yellow,White)
  8. }
  9. {WinDemo$Intro
  10. {WinDemo@IntroText
  11. }
  12. change -D6 B1
  13. exit -D5 B1
  14. delay -D4 C2
  15. DescWin -D2 P #11F4
  16. [11F4 50
  17. Guard 0 C2
  18. Next 2 P #11F4
  19. CursorChain 6 P #11F4
  20. WDef A #A2B
  21. XA 23 C2
  22. YA 25 C2
  23. XB 27 C2
  24. YB 29 C2
  25. OWidth 2B C2
  26. ODepth 2D C2
  27. Width 2F C2
  28. Depth 31 C2
  29. Title 33 P A50 C2[0..4F] L1
  30. TMode 37 #A35
  31. CurrentX 38 C2
  32. CurrentY 3A C2
  33. IsPalette 3C B1
  34. PalAttr 3D AA C1[0..9] C1
  35. CurPalColor 47 C1[0..9]
  36. Buffer 48 P AFA0 C2[0..7CF] C2
  37. UserRecord 4C P C2
  38. ]
  39. (A35 1 NoTitle,LeftUpperTitle,CenterUpperTitle,RightUpperTitle,LeftLowerTitle,CenterLowerTitle,RightLowerTitle)
  40. [A2B 19
  41. X1 0 C2
  42. Y1 2 C2
  43. X2 4 C2
  44. Y2 6 C2
  45. Foreground 8 #8BE
  46. Background 9 #8BE
  47. CursorOn A B1
  48. WrapOn B B1
  49. Hidden C B1
  50. FrameOn D B1
  51. FrameDef E A9 C2[0..8] L1
  52. FrameFore 17 #8BE
  53. FrameBack 18 #8BE
  54. ]
  55. up -CE B1
  56. b -CD B1
  57. num -CC A7 C2[0..6] L1
  58. wn -C5 C2
  59. j -C3 C2
  60. i -C1 C2
  61. Win -BF A78 C2[0..1D] P #11F4
  62. title -47 A28 C2[0..27] L1
  63. w -1F P #11F4
  64. WD -1B #A2B
  65. }
  66. {WinDemo$RandPalette
  67. p 6 V A14 C1[0..9] #F4B
  68. [F4B 2
  69. Fore 0 #8BE
  70. Back 1 #8BE
  71. ]
  72. i -3 C1
  73. }
  74. {WinDemo$Rmove
  75. W 6 P #11F4
  76. ny -E C2
  77. nx -C C2
  78. iy -A C2
  79. ix -8 C2
  80. dy1 -6 C2
  81. dx1 -4 C2
  82. }
  83. {WinDemo$RChangeSize
  84. W 6 P #11F4
  85. ny -6 C2
  86. nx -4 C2
  87. }
  88. {WinDemo$P1
  89. b -24 B1
  90. i -23 C2
  91. S -21 A1F C2[0..1E] L1
  92. }
  93. {WinDemo$P2
  94. {WinDemo@DrawBar
  95. x A C2
  96. y 8 C2
  97. val 6 C2
  98. on 4 B1
  99. }
  100. WD -31 #A2B
  101. V -18 A12 C2[1..9] C2
  102. j -6 C2
  103. i -4 C2
  104. }
  105. {WinDemo$P3
  106. CH -9 L1
  107. D -8 C2
  108. Y -6 C2
  109. X -4 C2
  110. }
  111. {WinDemo$P4
  112. i -4 C2
  113. }
  114. {WinDemo$P5
  115. }
  116. {WinDemo$P6
  117. }
  118. {WinDemo$P7
  119. }
  120. {WinDemo$P8
  121. }
  122. {WinDemo$P9
  123. }
  124. {WinDemo$Demo
  125. WD -1B #A2B
  126. }
  127. {WinDemo$CheckBW
  128. R -16 #536
  129. [536 14
  130. AL 0 C1
  131. AH 1 C1
  132. BL 2 C1
  133. BH 3 C1
  134. CL 4 C1
  135. CH 5 C1
  136. DL 6 C1
  137. DH 7 C1
  138. AX 0 C2
  139. BX 2 C2
  140. CX 4 C2
  141. DX 6 C2
  142. BP 8 C2
  143. SI A C2
  144. DI C C2
  145. DS E C2
  146. ES 10 C2
  147. Flags 12 S2 C2[0..F]
  148. ]
  149. }
  150. WinDemo@pal A14 C1[0..9] #F4B
  151. WinDemo@Initialize B1
  152. WinDemo@DS
  153. WinDemo@W4 P #11F4
  154. WinDemo@W3 P #11F4
  155. WinDemo@W2 P #11F4
  156. WinDemo@W1 P #11F4
  157. KeyFlags -17 S1 #2AA4
  158. (2AA4 1 RShift,LShift,Ctrl,Alt,Scroll,Num,Cap,Ins)
  159. WinDemo@IsBW B1
  160. >
  161.