home *** CD-ROM | disk | FTP | other *** search
/ The Ultimedia System / IBM_ACD_101.ISO / tbkeval / prototyp.tbk (.txt) < prev    next >
Asymetrix ToolBook File  |  1991-09-16  |  169KB  |  2,452 lines

  1. Why Use ToolBook?
  2. percent 
  3.     bar" 
  4. (i > 0) 
  5. (i < 12.5) 
  6. selectedTextLines 
  7. "options")
  8. (i > 12.5) 
  9. (i < 25) 
  10. (i > 25.0) 
  11. (i < 37.5) 
  12. (i > 37.5) 
  13. (i < 50) 
  14. (i > 50) 
  15. (i < 62.5) 
  16. (i > 62.5) 
  17. (i < 75) 
  18. (i > 75.0) 
  19. (i < 87.5) 
  20. (i > 87.5) 
  21. (i < 100) 
  22. i < 12.5
  23. statusString 
  24. "Testing Option A"
  25. i < 25
  26. i < 37.5
  27. i < 50
  28. i < 62.5
  29. i < 75
  30. i < 87.5
  31. i < 100
  32. "Done"
  33. B"include 1" 
  34. ": Suite 1" 
  35. percent bar
  36. percent
  37. options
  38. options
  39. options
  40. options
  41. options
  42. options
  43. options
  44. options
  45. Testing Option A
  46. Testing Option B
  47. Testing Option C
  48. Testing Option D
  49. Testing Option E
  50. Testing Option F
  51. Testing Option G
  52. Testing Option H
  53. include 1
  54. : Suite 1
  55. include 2
  56. : Suite 2
  57. status
  58. statusString
  59. Introduction
  60. Building a prototype in ToolBook
  61. Design tips
  62. The drawTextDirect property
  63. How to read this book
  64. sectionNumber
  65. startSection
  66. How to read this book
  67. ljsldkfjlaksdjflkjasdsdjflkjasd
  68. IntroductionQ
  69. The pages in this book combine explanation, illustration and demonstrations.
  70. Instructions in a green shadowed box tell you what to do next.        t the bottom of the page turn pages or return to the table of contents when clicked.cked.icked.
  71. When the cursor turns to                  further explaination is available with a single click.
  72. When the cursor turns to              some actions is avaible with a single click.....
  73. Click the right arrow to begin the next chapter.he next chapter..er.ext chapter....
  74. Illustrations and demonstrations
  75. Explanation
  76. Buttons to turn pages and return to the table of contents
  77. Button
  78.      
  79.      
  80. Table of Contents
  81. Table of Contents
  82. Instructions
  83. Purpose of this book
  84. sectionNumber
  85. startSection
  86. Purpose of this book
  87. Introductionwing and speeded
  88. ToolBook is widely used to prototype Windows applications.  ToolBook's integrated drawing tools, database fields, functional Windows control objects, and powerful scripting language combine to provide developers with the means to develop functional prototypes in a very short time.
  89. Click the right arrow.
  90. Demonstrate how using ToolBook saves time in development how using ToolBook saves time in development
  91. Click the right arrow to continue.t page.hapter.in the next chapter.ext chapter....
  92. Explain how ToolBook is used in protyping
  93. Demonstrate how using ToolBook saves time in development
  94. -- Table 
  95. Contents - 
  96. -- The 
  97. may be entered 
  98. 8. That 
  99. 's section 
  100. saved 
  101. -- s_currentSection 
  102. handler. 
  103. used 
  104. displayed.
  105. -- There 
  106. also a 
  107. -- marks a completed 
  108. chapter 
  109. Hplacing 
  110. -- asterisk beside its 
  111. -- When entering 
  112. (entry 
  113. -- corresponding 
  114. recorded 
  115. 4s_didDoubleClick
  116.     -- Clear 
  117. }click flag
  118.     -- Switch 
  119. Reader level
  120.     -- Highlight 
  121. selectedTextLines 
  122. J"Chapters" 
  123. J"Sections" 
  124. -- Place 
  125. front 
  126. identified 
  127. x. If 
  128. sections 
  129. , place 
  130. markSection x
  131. chapterNum 
  132. sectionNum 
  133.         -- Get 
  134. list 
  135.         -- 
  136. propertyName 
  137. commandLine 
  138. " && 
  139. 5&& "
  140.         -- 
  141. fore 
  142. " && 
  143.         -- If 
  144. chapterDone 
  145. chapters 
  146. x"*" 
  147. enterPage
  148. markSection
  149. enterPage
  150. reader
  151. Chapters
  152. buttonUp
  153. Chapters
  154. Sections
  155. Sections
  156. currentSection
  157. s_didDoubleClick
  158. s_currentSection
  159. markSection
  160. Sections
  161. of page "Table of Contents"
  162. of page "Table of Contents" to it
  163. Chapters
  164. Table of Contents
  165. chapters
  166. chapterDone
  167. commandLine
  168. propertyName
  169. sectionNum
  170. chapterNum
  171. Table of Contents
  172. What is a prototype?
  173. What is a prototype???
  174. startSection
  175. sectionNumber
  176. -- When a chapter 
  177. clicked update the section list.
  178. 4s_DidDoubleClick
  179. updateSectionList
  180. oselectedTextLines
  181. strip(
  182. -- If 
  183. user presses a key that 
  184. reflect 
  185. -- Algorithm:
  186. -- Get 
  187. currently 
  188. . Forward 
  189. keystroke 
  190. ToolBook 
  191. default processing. Check 
  192. -- changed. If so, 
  193.  message 
  194. sections.
  195. causes 
  196. respond 
  197. -- Update 
  198. 4s_currentSection
  199.     -- Set 
  200. "Chapter 
  201. 3Name" 
  202. "Sections" 
  203. commandLine 
  204. sectionList 
  205. " && "
  206.     -- Clear 
  207. buttonDoubleClick
  208. buttonUp
  209. keyDown
  210. updateSectionList
  211. buttonUp
  212. updateSectionList
  213. s_DidDoubleClick
  214. buttonDoubleClick
  215. strip
  216. s_DidDoubleClick
  217. keyDown
  218. updateSectionList
  219. updateSectionList
  220. Chapter Name
  221. strip
  222. set sectionList to
  223. Sections
  224. of this page
  225. Sections
  226. Sections
  227. sectionList
  228. commandLine
  229. s_currentSection
  230. What Is Prototyping
  231. Graphics
  232. Controls in ToolBook
  233. oolBook
  234. Controls in ToolBookToolBookk
  235. startSection
  236. sectionNumber
  237. Designing the User Interface
  238. Prototypes in ToolBook
  239. Developing a Prototype
  240. Developing a prototype
  241. startSection
  242. sectionNumber
  243. AboutInit
  244. ",s47,
  245. ,b48,TRUE"
  246. AboutBox
  247. "524480,2,30,20,148,65
  248. 8,Helv,,22.40,8.74,110.13,26.13,47,1342177281,130,,0,,52.27,36.88,50.86,12.31,48,1342242817,128,OK,0"
  249. searchInit
  250. ",s26,Search 
  251. ,s27,Replace 
  252. ,e28,
  253. ,e29,
  254. BOK,b30,
  255. BCancel,b32,FALSE"
  256. searchBox
  257. "524480,6,30,20,163,82,,,
  258. 12.91,10.79,39.20,11.45,26,1342177282,130,
  259. :,0,,3.58,26.87,48.53,11.45,27,1342177282,130,
  260. f:,0,
  261. ,53.98,10.79,100.80,13.17,28,1350631424,129,,0,
  262. ,53.98,26.87,100.80,13.17,29,1350631424,129,,0,OK,25.98,48.98,50.86,16.08,30,1342242817,128,OK,0,
  263. 85.71,48.98,50.86,16.08,32,1342242816,128,
  264. characterInit 
  265. Font:
  266. combobox 
  267. ,c37,Courier"&CRLF&"
  268. Modern"&
  269. Roman"&
  270. Script"&
  271. %System"&
  272. /Terminal"&
  273. ;Tms Rmn
  274. ,s38,Point Size:
  275. ,c42,8"&
  276. c10"&
  277. i12"&
  278. o14"&
  279. u18"&
  280. {22"&
  281. ,g46,Style
  282. BBold,b47,
  283. BItalic,
  284. BUnderline,b49,
  285. BStrikeout,b50,
  286. characterBox
  287. "524480,11,30,20,116,114,,,Character,8,
  288. 7.47,4.64,39.20,11.45,26,1342177280,130,
  289. ,0,OK,74.67,58.91,35.47,16.08,30,1342242817,128,OK,0,
  290. 74.67,79.02,35.47,16.08,32,1342242816,128,
  291. ,7.47,16.70,59.43,82.31,37,1352728898,133,,0,,74.67,4.64,37.33,11.45,38,1342177280,130,
  292. ,0,,74.67,16.70,35.47,82.31,42,1352728642,133,,0,,7.47,34.79,58.86,60.31,46,1342177287,128,
  293. 11.20,44.84,50.86,10.46,47,1342242819,128,
  294. 11.20,56.90,50.86,10.46,48,1342242819,128,
  295. 11.20,70.97,50.86,10.46,49,1342242819,128,
  296. 11.20,83.04,50.86,10.46,50,1342242819,128,
  297. selectedtextlines 
  298. "DB Type" 
  299. init 
  300. odlgInit
  301. odlgBox
  302. setValue(
  303. /,"s47",
  304. "about Static")
  305. --DLL function
  306. -Caption"
  307. KButton"
  308. retValue 
  309. dialog(box, 
  310. ,"s26",
  311. ,"s27",
  312. replace")
  313. ,"e28",
  314. ,"e29",
  315. Sfont")
  316. ,"s38",
  317. Spoint 
  318. buttonUp
  319. buttonUp
  320. ,s47,
  321. ,b48,TRUE
  322. 524480,2,30,20,148,65,,,,8,Helv,,22.40,8.74,110.13,26.13,47,1342177281,130,,0,,52.27,36.88,50.86,12.31,48,1342242817,128,OK,0
  323. ,s26,Search for:
  324. ,s27,Replace with:
  325. edit Search,e28,
  326. edit Replace,e29,
  327. button OK,b30,TRUE
  328. button Cancel,b32,FALSE
  329. 524480,6,30,20,163,82,,,Search,8,Helv,,12.91,10.79,39.20,11.45,26,1342177282,130,Search for:,0,,3.58,26.87,48.53,11.45,27,1342177282,130,Replace with:,0,Search,53.98,10.79,100.80,13.17,28,1350631424,129,,0,Replace,53.98,26.87,100.80,13.17,29,1350631424,129,,0,OK,25.98,48.98,50.86,16.08,30,1342242817,128,OK,0,Cancel,85.71,48.98,50.86,16.08,32,1342242816,128,Cancel,0
  330. ,s26,Font:
  331. button OK,b30,TRUE
  332. button Cancel,b32,FALSE
  333. combobox Font,c37,Courier
  334. Modern
  335. Roman
  336. Script
  337. System
  338. Terminal
  339. Tms Rmn
  340. ,s38,Point Size:
  341. ,c42,8
  342. ,g46,Style
  343. button Bold,b47,FALSE
  344. button Italic,b48,FALSE
  345. button Underline,b49,FALSE
  346. button Strikeout,b50,FALSE
  347. 524480,11,30,20,116,114,,,Character,8,Helv,,7.47,4.64,39.20,11.45,26,1342177280,130,Font:,0,OK,74.67,58.91,35.47,16.08,30,1342242817,128,OK,0,Cancel,74.67,79.02,35.47,16.08,32,1342242816,128,Cancel,0,Font,7.47,16.70,59.43,82.31,37,1352728898,133,,0,,74.67,4.64,37.33,11.45,38,1342177280,130,Point Size:,0,,74.67,16.70,35.47,82.31,42,1352728642,133,,0,,7.47,34.79,58.86,60.31,46,1342177287,128,Style,0,Bold,11.20,44.84,50.86,10.46,47,1342242819,128,Bold,0,Italic,11.20,56.90,50.86,10.46,48,1342242819,128,Italic,0,Underline,11.20,70.97,50.86,10.46,49,1342242819,128,Underline,0,Strikeout,11.20,83.04,50.86,10.46,50,1342242819,128,Strikeout,0
  348. DB Type
  349. dlgInit
  350. dlgBox
  351. about Static
  352. setValue
  353. about Caption
  354. about Button
  355. dialog
  356. DB Type
  357. search Caption
  358. search OK
  359. search Cancel
  360. search search
  361. setValue
  362. search replace
  363. setValue
  364. search search edit
  365. setValue
  366. search replace edit
  367. setValue
  368. dialog
  369. DB Type
  370. character Caption
  371. character OK
  372. character Cancel
  373. character Style
  374. character Bold
  375. character Italic
  376. character Underline
  377. character Strikeout
  378. character font
  379. setValue
  380. character point size
  381. setValue
  382. dialog
  383. retValue
  384. characterBox
  385. characterInit
  386. searchBox
  387. searchInit
  388. AboutBox
  389. AboutInit
  390. reset
  391. ClickMe
  392. 4s_PauseSpeed
  393. status "First 
  394. J..."
  395. mvCursor 
  396. y,2955,1935,20,2,
  397. B"currtool" 
  398. 2820,1800
  399. y,4695, 2340,2,5,
  400. "p1" 
  401. 4575, 2310, 4695, 2340
  402. user's login 
  403. y,4695, 2340,2,5,
  404. "p1" 
  405. 4575, 2310, 4785, 2340
  406. y,4800, 2430,2,5,
  407. "p1" 
  408. 4575, 2340, 4800, 2430
  409. y,4890, 2550,2,5,
  410. "p1" 
  411. 4575, 2340, 4890, 2550
  412. y,5295, 2625,2,5,
  413. "p1" 
  414. 4575, 2340, 5295, 2625
  415. y,5400, 2625,2,5,
  416. "p1" 
  417. 4575, 2340, 5400, 2625
  418. y,5505, 2625,2,5,
  419. "p1" 
  420. 4575, 2340, 5505, 2625
  421. y,5610, 2625,2,5,
  422. "p1" 
  423. 4575, 2340, 5610, 2625
  424. y,5700, 2625,2,5,
  425. "p1" 
  426. 4575, 2340, 5700, 2625
  427. y,5790, 2625,2,5,
  428. "p1" 
  429. 4575, 2340, 5790, 2625
  430. y,5880, 2625,2,5,
  431. "p1" 
  432. 4575, 2340, 5880, 2625
  433. y,6045, 2625,2,5,
  434. "p1" 
  435. 4575, 2340, 6045, 2625
  436. y,6150, 2625,2,5,
  437. "p1" 
  438. 4575, 2340, 6150, 2625
  439. y,3270,1245,20,2,
  440. 3150,1110
  441. "ToolPalette"
  442. Change 
  443. etitle."
  444. "Title" 
  445. "Acme E-Mail"
  446. Color 
  447. 0,75.3125,0
  448. 0,75.3125,0
  449. Add a 3-D effect 
  450. "edge"
  451.  "Caption"
  452. allow 
  453. Login."
  454. And one 
  455. Cancel."
  456. nally lets 
  457. a few graphic additions."
  458. Group
  459. default
  460. y,6150,1005,20,2,
  461. myActivate 
  462. FALSE
  463. All done..."
  464. "ToolBook - (Untitled)"
  465. newText
  466. ClickMe
  467. enterPage
  468. reset
  469. status
  470. enterPage
  471. reset
  472. ClickMe
  473. *status
  474. First select the field tool...
  475. mvCursor
  476. currtool
  477. mvCursor
  478. *status
  479. Now draw a field for the user's login name.
  480. mvCursor
  481. mvCursor
  482. mvCursor
  483. mvCursor
  484. mvCursor
  485. mvCursor
  486. mvCursor
  487. mvCursor
  488. mvCursor
  489. mvCursor
  490. mvCursor
  491. mvCursor
  492. mvCursor
  493. currtool
  494. ToolPalette
  495. *status
  496. Change the window title.
  497. Title
  498. Acme E-Mail
  499. *status
  500. Color the background.
  501. background
  502. *status
  503. Color the user name field.
  504. *status
  505. Add a 3-D effect to field.
  506. *status
  507. Add a caption to the field.
  508. Caption
  509. *status
  510. Add a button to allow the user to Login.
  511. Login
  512. *status
  513. And one to allow the user to Cancel.
  514. Cancel
  515. *status
  516. Finally lets add a few graphic additions.
  517. E-Mail
  518. mvCursor
  519. ClickMe
  520. myActivate
  521. *status
  522. All done...
  523. default
  524. s_PauseSpeed
  525. reset
  526. ToolPalette
  527. Title
  528. ToolBook - (Untitled)
  529. background
  530. 0,100,0
  531. 0,100,0
  532. Caption
  533. Login
  534. Cancel
  535. E-Mail
  536. ClickMe
  537. myActivate
  538. *status
  539. status
  540. status
  541. newText
  542. Prototypes in ToolBook
  543. ToolBook
  544. startSection
  545. Prototypes in ToolBook ToolBook
  546. sectionNumber
  547. ToolBook As A Prototyping Tool
  548. Buttons
  549. Dialog Boxes
  550. Programming on the fly
  551. sectionNumber
  552. startSection
  553. Programming on the fly
  554. What is a prototype?e
  555. Prototypes can be as simple as a mock-up of an application's screens,  or as complex as a complete working model of the final program.
  556. Prototypes are usually created quickly, then modified repeatedly, so the tool used to build them must allow developers to work "on the fly".
  557. Click the right arrow to continue.t page.hapter.in the next chapter.ext chapter....
  558. I've got a demo in 15 minutes!tive Committe in 5 minutes.
  559. Why this book exists
  560. Table of Contents
  561. Window's DLL Routines
  562. Menus
  563. sectionNumber
  564. startSection
  565. Menus
  566. Controls in ToolBookToolBookk
  567. You can fully customize the menu bar of a ToolBook book. 
  568. Simple commands like Add Menu, Remove Menu, Add MenuItem, and Remove MenuItem let you quickly modify the menu bar.
  569. Of course, if you don't need menus at all, ToolBook lets you hide the menu bar.................
  570. Click these buttons to modify the menu bar.pter.he next chapter..er.ext chapter....
  571. restoremenubar
  572. buttonUp
  573. buttonUp
  574. restoremenubar
  575. Restore Menubar
  576. Add Menu
  577. 4MenuList,MMIMML
  578. init 
  579. dlgInit 
  580. retValue 
  581. dialog(dlgBox 
  582. NewMenu 
  583. getValue(
  584. --DLL function
  585. MenuPos 
  586. Position")
  587. FALSE    
  588. GetRidOfPounds(
  589. CRLF&
  590. buttonUp
  591. buttonUp
  592. dlgInit
  593. dlgBox
  594. dialog
  595. edit Menu
  596. getValue
  597. edit Position
  598. getValue
  599. GetRidOfPounds
  600. GetRidOfPounds
  601. GetRidOfPounds
  602. GetRidOfPounds
  603. MenuPos
  604. NewMenu
  605. retValue
  606. MenuList
  607. MMIMML
  608. dlgInit
  609. ,s6,Menu:
  610. ,s19,Position:
  611. edit Menu,e8,
  612. iedit Position,i20,
  613. button OK,b9,TRUE
  614. button Cancel,b10,FALSE
  615. dlgBox
  616. 524480,6,30,20,156,76,,,Add Menu,8,Helv,,7.47,11.98,31.73,11.45,6,1342177282,130,Menu:,0,,5.60,29.83,33.60,11.45,19,1342177282,130,Position:,0,Menu,41.03,10.58,110.10,13.17,8,1350631424,129,,0,Position,41.03,28.43,16.84,13.17,20,1350631424,129,,0,OK,29.87,49.60,50.86,12.31,9,1342242817,128,OK,0,Cancel,83.89,49.60,50.93,12.31,10,1342242816,128,Cancel,0
  617.     ctrlID
  618. Add Menu
  619. Remove Menu
  620. 4MenuList,MenuItemList
  621. init 
  622. odlgInit
  623. setValue(
  624. ,"c18",
  625. --DLL function
  626. retValue 
  627. dialog(
  628. odlgBox, 
  629. DelMenu 
  630. getValue(
  631. RemoveFromList(
  632. ,MenuItems(
  633. buttonUp
  634. buttonUp
  635. dlgInit
  636. setValue
  637. dlgBox
  638. dialog
  639. getValue
  640. RemoveFromList
  641. MenuItems
  642. RemoveFromList
  643. DelMenu
  644. retValue
  645. MenuList
  646. MenuItemList
  647. dlgInit
  648. ,s5,Remove Menu:
  649. combobox Menulist,c18,
  650. button OK,b9,TRUE
  651. button Cancel,b10,FALSE
  652. dlgBox
  653. 524480,4,30,20,171,64,,,Remove Menu,8,Helv,,3.70,11.86,50.40,11.45,5,1342177282,130,Remove Menu:,0,Menulist,56.00,10.67,110.10,76.31,18,1352728899,133,,0,OK,35.09,32.21,50.93,12.31,9,1342242817,128,OK,0,Cancel,89.22,32.21,50.90,12.31,10,1342242816,128,Cancel,0
  654. ctrlID
  655. Remove Menu
  656. Add MenuItem
  657. 4MenuList,MenuItemList
  658. init 
  659. dlgInit 
  660. setValue(
  661. ,"c18",
  662. --DLL function
  663. retValue 
  664. dialog(dlgBox 
  665. theMenu
  666. getValue(
  667. E, "combobox 
  668. theMenuItem 
  669. thePosition 
  670. FALSE    
  671. GetRidOfPounds(
  672. CRLF&
  673. AddToMap(
  674. buttonUp
  675. buttonUp
  676. dlgInit
  677. setValue
  678. dlgBox
  679. dialog
  680. combobox MenuList
  681. getValue
  682. edit MenuItem
  683. getValue
  684. edit Position
  685. getValue
  686. GetRidOfPounds
  687. GetRidOfPounds
  688. AddToMap
  689. thePosition
  690. theMenuItem
  691. theMenu
  692. retValue
  693. MenuList
  694. MenuItemList
  695. dlgInit
  696. ,s5,Add To Menu:
  697. ,s6,MenuItem:
  698. ,s19,Position:
  699. combobox Menulist,c18,
  700. edit MenuItem,e8,
  701. iedit Position,i20,
  702. button OK,b9,TRUE
  703. button Cancel,b10,FALSE
  704. dlgBox
  705. 524480,8,30,20,171,92,,,Add MenuItem,8,Helv,,3.70,11.16,50.40,11.45,5,1342177282,130,Add To Menu:,0,,7.47,28.64,46.67,11.45,6,1342177282,130,MenuItem:,0,,7.47,46.48,46.67,11.45,19,1342177282,130,Position:,0,Menulist,56.00,9.97,110.10,78.31,18,1352728899,133,,0,MenuItem,55.89,27.24,110.13,13.17,8,1350631424,129,,0,Position,55.89,45.09,16.91,13.17,20,1350631424,129,,0,OK,35.09,64.74,50.93,12.31,9,1342242817,128,OK,0,Cancel,89.22,64.74,50.90,12.31,10,1342242816,128,Cancel,0
  706. ctrlID
  707. Add MenuItem
  708. Remove MenuItem
  709. 4MenuItemList
  710. init 
  711. odlgInit
  712. setValue(
  713. ,"c18",
  714. --DLL function
  715. retValue 
  716. dialog(dlgBox 
  717. DelMenuItem 
  718. getValue(
  719. RemoveFromList(
  720. buttonUp
  721. buttonUp
  722. dlgInit
  723. setValue
  724. dlgBox
  725. dialog
  726. getValue
  727. RemoveFromList
  728. DelMenuItem
  729. retValue
  730. MenuItemList
  731. dlgInit
  732. ,s5,Remove MenuItem:
  733. combobox MenuItemList,c18,
  734. button OK,b9,TRUE
  735. button Cancel,b10,FALSE
  736. dlgBox
  737. 524480,4,30,20,184,64,,,Remove MenuItem,8,Helv,,3.70,11.20,63.58,11.45,5,1342177282,130,Remove MenuItem:,0,MenuItemList,69.22,10.01,110.10,78.31,18,1352728899,133,,0,OK,41.07,35.49,50.90,12.31,9,1342242817,128,OK,0,Cancel,95.12,35.49,50.93,12.31,10,1342242816,128,Cancel,0
  738. ctrlID
  739. Remove MenuItem
  740. Hide Menubar
  741. buttonUp
  742. buttonUp
  743. sizeToPage
  744. ctrlID
  745. dlgBox
  746. 524480,8,30,20,171,92,,,Add MenuItem,8,Helv,,3.70,10.63,50.40,11.45,5,1342177282,130,Add To Menu:,0,,7.47,28.10,46.67,11.45,6,1342177282,130,MenuItem:,0,,7.47,45.95,46.67,11.45,19,1342177282,130,Position:,0,Menulist,56.00,9.44,110.10,80.31,18,1350631747,133,,0,MenuItem,55.92,26.71,110.13,13.17,8,1350631424,129,,0,Position,55.92,44.55,16.88,13.17,20,1350631424,129,,0,OK,35.12,64.21,50.90,12.31,9,1342242817,128,OK,0,Cancel,89.22,64.21,50.90,12.31,10,1342242816,128,Cancel,0
  747. dlgInit
  748. ,s5,Add To Menu:
  749. ,s6,MenuItem:
  750. ,s19,Position:
  751. combobox Menulist,c18,
  752. edit MenuItem,e8,
  753. iedit Position,i20,
  754. button OK,b9,TRUE
  755. button Cancel,b10,FALSE
  756. Hide Menubar
  757. Show Menubar
  758. buttonUp
  759. buttonUp
  760. sizeToPage
  761. ctrlID
  762. dlgBox
  763. 524480,4,30,20,185,64,,,Remove MenuItem,8,Helv,,3.73,10.63,63.58,11.45,5,1342177282,130,Remove MenuItem:,0,MenuItemList,69.22,9.44,110.10,80.31,18,1350631747,133,,0,OK,41.07,34.91,50.90,12.31,9,1342242817,128,OK,0,Cancel,95.16,34.91,50.90,12.31,10,1342242816,128,Cancel,0
  764. dlgInit
  765. ,s5,Remove MenuItem:
  766. combobox MenuItemList,c18,
  767. button OK,b9,TRUE
  768. button Cancel,b10,FALSE
  769. Show Menubar
  770. Listboxes And Edit Controls
  771. sectionNumber
  772. startSection
  773. Listboxes and edit controls
  774. Controls in ToolBookToolBookk
  775. ToolBook offers the full set of Windows listbox and edit controls. Listboxes can be single or multiple selection. A listbox is a type of field, which is where you type text.  A  field can be edited and formatted with multiple font faces, sizes, color, and paragraph styles.  All fields can have scroll bars, baselines, and hypertext-like hotwords.e hotwords.like hotwords.
  776. ActivateScripts
  777. false
  778. This is an edit control...
  779. "Text" 
  780. oselectedtextlines) 
  781. buttonUp
  782. buttonUp
  783. Courier
  784. Modern
  785. Roman
  786. Script
  787. System
  788. Terminal
  789. Tms Rmn
  790. "Text" 
  791. oselectedtextlines) 
  792. buttonUp
  793. buttonUp
  794. Features
  795. style 
  796. lineItem 
  797. ItemCount(
  798. oSelectedTextLines)
  799. feature 
  800. buttonUp
  801. buttonUp
  802. feature
  803. lineItem:to
  804. lineItem
  805. style
  806. ActivateScripts
  807. false
  808. Italic
  809. Underline
  810. Strikeout
  811. Click the right arrow to continue. right to see an example. Click the right arrow to continue..
  812. Click the right arrow to continue.k the right arrow to continue..
  813. Select items from these listboxs to change the style of the text below. Type in the lower field to see an example of ToolBook's text field.ght arrow to continue..
  814. Listboxes And Edit Controls
  815. Table of Contents
  816. -- If 
  817. moved, 
  818. a user-defined property, home, 
  819. -- the 
  820. graphic covering 
  821. "Arrow" 
  822. -- When 
  823. Fmouse 
  824. pressed, 
  825. B"pushButton" 
  826. released, 
  827. w. Finally, 
  828. -- Move 
  829. -- depending on 
  830. parameter, x, which can be 
  831. H15,15
  832. buttonDown
  833. moved
  834. buttonUp
  835. press
  836. moved
  837. Arrow
  838. buttonDown
  839. pushButton
  840. press
  841. buttonUp
  842. press
  843. press
  844. Arrow
  845. pushButton
  846. 2291,4043
  847. pushButton
  848.      
  849. Arrow
  850. Table of Contents
  851. Table of Contents
  852. pushButton
  853.      
  854. Arrow
  855. Chapters
  856. Sections
  857. -- Turn the 
  858. selected section 
  859. clicked.
  860. turnToSection
  861. pressed.
  862.         -- 
  863. pkey 
  864. default processing
  865. -- Algorithm:
  866. -- Get 
  867. currently 
  868. . If 
  869. named 
  870. strip(
  871. oselectedTextLines 
  872. Click
  873. buttonDoubleClick
  874. keyChar
  875. turnToSection
  876. buttonDoubleClick
  877. qturnToSection
  878. keyChar
  879. qturnToSection
  880. turnToSection
  881. strip
  882. Chapter Name
  883. Title
  884. Graphics
  885. sectionNumber
  886. startSection
  887. Graphics?
  888. Controls in ToolBookToolBookk
  889. Graphics are a key part of any Windows program.
  890. With ToolBook, you can quickly draw, modify, or import graphics without writing complex code or compiling application resources.  And any graphic can have a script, making it a control.
  891. :PHYSSIZE
  892. Title
  893. ToolBook - (Untitled)
  894. ToolPalette
  895. :PHYSSIZE
  896. currtool
  897. Background
  898. White
  899. Rest of Black
  900. black
  901. Startvertices
  902. 4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077,4331,2077
  903. Endvertices
  904. 4331,2077,4527,1981,4563,1980,4564,2004,4454,2247,4497,2242,4550,2230,4566,2224,4571,2222,4597,2208,4608,2183,4585,2162,4569,2149,4555,2119,4566,2101,4610,2075,4667,2062,4698,2061,4729,2082,4714,2108,4664,2108,4660,2108,4637,2115,4630,2133,4653,2155,4668,2169,4667,2210,4640,2237,4534,2281,4447,2294,4432,2295,4424,2313,4406,2353,4397,2373,4371,2389,4348,2372,4348,2356,4360,2327,4373,2298,4376,2292,4306,2279,4268,2264,4263,2261,4249,2230,4271,2217,4289,2218,4315,2230,4365,2244,4480,2061,4338,2128,4026,2313,3852,2423,3844,2428,3831,2437,3814,2435,3804,2428,3798,2408,3810,2387,3816,2384,3854,2358
  905. continuing
  906. ...software redefined.ine software..
  907. status
  908. ClickMe
  909. ButtonDown
  910. myActivate() 
  911. "Click Me"
  912. ClickMe
  913. Reset
  914. logicalValue
  915. grey 
  916. 0,50,0
  917. oexcludeTab 
  918. ButtonDown
  919. myActivate
  920. myActivate
  921. ButtonDown
  922. myActivate
  923. Click Me
  924. .(ClickMe
  925. Reset
  926. myActivate
  927. myActivate
  928. 0,0,0
  929. logicalValue
  930. Click Me
  931. Click the button Click Me to see an example.
  932. Click the right arrow to continue....
  933. All done.eld is added for the finishing touch.sional effect.ion.
  934. Dialog Boxes
  935. 4s_NoDlgDLL
  936. FALSE
  937.     linkDLL "tbkdlg.dll"
  938. dialog(
  939. setValue(
  940. getValue(
  941. c"Cannot load 
  942. default
  943. strNoDLL("
  944. selectedtextlines 
  945. "db type" 
  946.         unlinkDLL "
  947. enterpage
  948. leavepage
  949. enterpage
  950. tbkdlg.dll
  951. dialog
  952. setValue
  953. getValue
  954. Cannot load DLL
  955. tbkdlg.dll
  956. strNoDLL
  957. db type
  958. buttonUp
  959. db type
  960. default
  961. s_NoDlgDLL
  962. leavepage
  963. tbkdlg.dll
  964. s_NoDlgDLL
  965. sectionNumber
  966. startSection
  967. Dialog Boxes
  968. Controls in ToolBookToolBookk
  969. You can quickly create modal Windows dialog boxes for your prototypes.
  970. ToolBook includes a Windows dialog box editor.  This graphical, interactive utility lets you copy and paste the controls for your dialog box, and constructs boilerplate scripts for tying it into your application..
  971. Dialog
  972. ctrlID
  973. dlgBox
  974. 524480,2,30,20,148,65,,,About ToolBook Overview,8,Helv,,22.40,8.74,110.13,26.13,47,1342177281,130,ToolBook Overview
  975. by Brad Gaub
  976. (C) 1991 Asymetrix Corporation,0,,52.27,36.88,50.86,12.31,48,1342242817,128,OK,0
  977. dlgInit
  978. ,s47,ToolBook Overview
  979. by Brad Gaub
  980. (C) 1991 Asymetrix Corporation
  981. ,b48,TRUE
  982. Click Me
  983. Choose a dialog box from the list to the right, edit the text in the box above, then click the Click Me button to view the modified dialog box. Click the right arrow to go to the next
  984. DB Type
  985. oselectedtextlines) 
  986. buttonUp
  987. keyUp
  988. buttonUp
  989. all dbs
  990. keyUp
  991. all dbs
  992. About...
  993. Search...
  994. Character...eee
  995. DB Type
  996. Dialog Box Type
  997. all dbs
  998. search...
  999. frame
  1000. wsgroup
  1001. false
  1002. search caption
  1003. wsgroup
  1004. false
  1005. Search...rololol
  1006. search search
  1007. ctrlID
  1008. wsgroup
  1009. false
  1010. objtype
  1011. static
  1012. Search for:
  1013. search replace
  1014. objtype
  1015. static
  1016. wsgroup
  1017. false
  1018. ctrlID
  1019. Replace with:
  1020. Search search edit
  1021. ctrlID
  1022. wsgroup
  1023. false
  1024. autohscroll
  1025. FALSE
  1026. autovscroll
  1027. FALSE
  1028. hscroll
  1029. FALSE
  1030. vscroll
  1031. FALSE
  1032. multiline
  1033. FALSE
  1034. objtype
  1035. integer
  1036. FALSE
  1037. search Replace edit
  1038. ctrlID
  1039. wsgroup
  1040. false
  1041. autohscroll
  1042. FALSE
  1043. autovscroll
  1044. FALSE
  1045. hscroll
  1046. FALSE
  1047. vscroll
  1048. FALSE
  1049. multiline
  1050. FALSE
  1051. objtype
  1052. integer
  1053. FALSE
  1054. defvalue
  1055. FALSE
  1056. objtype
  1057. button
  1058. ctrlID
  1059. wsgroup
  1060. false
  1061. ctrlID
  1062. objtype
  1063. button
  1064. defvalue
  1065. FALSE
  1066. FALSE
  1067. wsgroup
  1068. false
  1069. search cancel
  1070. Cancel
  1071. search ok
  1072. character...
  1073. frame
  1074. wsgroup
  1075. false
  1076. defvalue
  1077. objtype
  1078. button
  1079. ctrlID
  1080. wsgroup
  1081. false
  1082. Cancel
  1083. ctrlID
  1084. objtype
  1085. button
  1086. defvalue
  1087. FALSE
  1088. FALSE
  1089. wsgroup
  1090. false
  1091. noEdit
  1092. FALSE
  1093. sortItems
  1094. ddlength
  1095. objtype
  1096. combobox
  1097. editCtrl
  1098. field id 50 of page id 531
  1099. downArrow
  1100. paintObject id 49 of page id 531
  1101. ctrlid
  1102. cbItems
  1103. Courier
  1104. Modern
  1105. Roman
  1106. Script
  1107. System
  1108. Terminal
  1109. Tms Rmn
  1110. vscroll
  1111. wsgroup
  1112. false
  1113. wsgroup
  1114. false
  1115. ctrlID
  1116. :PHYSSIZE
  1117. wwwwwww
  1118. wwwwwww
  1119. ctrlID
  1120. wsgroup
  1121. false
  1122. ctrlid
  1123. downArrow
  1124. paintObject id 54 of page id 531
  1125. editCtrl
  1126. field id 55 of page id 531
  1127. objtype
  1128. combobox
  1129. ddlength
  1130. sortItems
  1131. FALSE
  1132. noEdit
  1133. FALSE
  1134. cbItems
  1135. vscroll
  1136. wsgroup
  1137. false
  1138. :PHYSSIZE
  1139. ctrlID
  1140. wsgroup
  1141. false
  1142. wwwwwww
  1143. wwwwwww
  1144. wsgroup
  1145. false
  1146. ctrlID
  1147. character style
  1148. Style Box
  1149. FALSE
  1150. buttonDown
  1151. buttonUp
  1152. buttonDown
  1153. buttonUp
  1154.  defvalue
  1155. FALSE
  1156.  objtype
  1157. button
  1158.  ctrlID
  1159. false
  1160.  wsgroup
  1161. false
  1162. Italic
  1163. FALSE
  1164. buttonDown
  1165. buttonUp
  1166. buttonDown
  1167. buttonUp
  1168. false
  1169. ."$"ctrlID
  1170. L">"objtype
  1171. button
  1172. j"^"defvalue
  1173. FALSE
  1174. z"wsgroup
  1175. false
  1176. Italic
  1177. Underline
  1178. FALSE
  1179. buttonDown
  1180. buttonUp
  1181. buttonDown
  1182. buttonUp
  1183. false
  1184. #ctrlID
  1185. #objtype
  1186. button
  1187. #defvalue
  1188. FALSE
  1189. $wsgroup
  1190. false
  1191. Underline
  1192. Strikeout
  1193. FALSE
  1194. buttonDown
  1195. buttonUp
  1196. buttonDown
  1197. buttonUp
  1198. 8%,%defvalue
  1199. FALSE
  1200. V%H%objtype
  1201. button
  1202. p%f%ctrlID
  1203. %|%def
  1204. false
  1205. %wsgroup
  1206. false
  1207. Strikeout
  1208. character caption
  1209. &wsgroup
  1210. false
  1211. Character...olol
  1212. character font
  1213. &ctrlID
  1214. &wsgroup
  1215. false
  1216. &objtype
  1217. static
  1218. Font:: for:
  1219. character point size
  1220. 'x'objtype
  1221. static
  1222. 'wsgroup
  1223. false
  1224. 'ctrlID
  1225. Point Size::
  1226. character bold
  1227. Boldd
  1228. character italic
  1229. Italiccc
  1230. character Underline
  1231. Underlinee
  1232. character Strikeout
  1233. Strikeoutt
  1234. character OK
  1235. OKtttt
  1236. character Cancel
  1237. Cancell
  1238. o    >+1
  1239. About...
  1240. about Static
  1241. Generic Application
  1242. (C) 1991
  1243. Acme Corporationn
  1244. about Caption
  1245. About...me ws Prototyping
  1246. about Button
  1247. Table of Contents
  1248. Sections5
  1249.     Why use ToolBook?
  1250.     Features in the full ToolBook
  1251. Sections4
  1252.     Buttons
  1253.     Menus
  1254.     Listboxes and edit controls
  1255.     Graphics
  1256.     Dialog boxes
  1257. Sections3
  1258.     Designing the user interface
  1259.     Adding functionality quickly
  1260. Sections2
  1261.     Programming on the fly
  1262.     Tools for the job
  1263. Sections1
  1264.     Purpose of this book
  1265.     How to read this book
  1266.     Introduction
  1267.     What is a prototype?
  1268.     Developing a prototype
  1269.     Controls in ToolBook
  1270.     Prototypes in ToolBookkkkkkes in ToolBookkkk
  1271.     Purpose of this book
  1272.     How to read this booklBookraphics
  1273.     Dialog boxessoxes
  1274. Introductionn ToolBookolBookook
  1275. Windows Prototyping
  1276. -- Hide 
  1277. help information 
  1278. clicked.
  1279. default
  1280. buttonDoubleClick
  1281. buttonDoubleClick
  1282. default
  1283. Instructions:
  1284. Click a chapter name on the left to see the chapter's sections on the right.
  1285. Double-click a chapter name to go to the beginning of the chapter.
  1286. Double-click a section name on the right to go directly to the section.
  1287. Completed sections and chapters will be marked with an asterisk.e-click this text to make it disappear.ear....ear.ar.ppear.....in the Workbook window to return to the Workbook.
  1288. Click this text to make it disappear.r..e it disappear..
  1289. Windows Prototyping Book
  1290.  1991 Asymetrix Corporation 
  1291. All rights reserved.
  1292. Asymetrix Windows Prototyping Book team:
  1293. Tom Arnold
  1294. Jeff Day
  1295. Brad Gaub
  1296. Nanette Wright
  1297. Special thanks to:
  1298. Bob Galluppplupupluprles Seybold, and  n Arbor, Michigan
  1299. ichigan
  1300. ructional design:
  1301. Tec Ed, Ann Arbor, Michigan
  1302. Table of Contents
  1303. -- Go 
  1304. the Table 
  1305. Contents 
  1306. buttonUp
  1307. buttonUp
  1308. Table of Contents
  1309. Why Use ToolBook?
  1310. sectionNumber
  1311. startSection
  1312. Why use ToolBook?
  1313. Prototypes in ToolBook ToolBookkK
  1314. With ToolBook you can create functional graphic screens and menu structures in a matter of hours that would take many weeks to program in a traditional programming language like C, or even other graphical development tools that don't have all of ToolBook's predefined functionality..
  1315. :PHYSSIZE
  1316. :PHYSSIZE
  1317.  First Quarter Reports
  1318. :PHYSSIZE
  1319. :PHYSSIZE
  1320. Button
  1321. Click the right arrow to continue.n example.
  1322. Click the right arrow to continue....
  1323. Features in the full ToolBook
  1324. How to read this book
  1325. 4s_NoDlgDLL
  1326. FALSE
  1327.     linkDLL "tbkdlg.dll"
  1328. dialog(
  1329. setValue(
  1330. getValue(
  1331. c"Cannot load 
  1332. default
  1333. strNoDLL("
  1334. RestoreMenuBar
  1335.         unlinkDLL "
  1336. RemoveFromList theList,theItemList
  1337. GetRidOfPounds theString
  1338. 4MenuList,MenuItemList,MMIMML,MMIMMIL
  1339. "File"&CRLF&"Edit"&
  1340.     Text"&
  1341. Page"&
  1342. Help"
  1343. "Open"&
  1344. .Save"&
  1345.  As"&
  1346. ?Import"&
  1347. Ixport"&
  1348. RPrinter Setup"&
  1349.  Pages"&
  1350.  Report"&
  1351. |Run"&
  1352. xit"&
  1353. "Author"&
  1354. Show Hotword"&
  1355. Next"&
  1356. Previous"&
  1357. First"&
  1358. Last"&
  1359. Back"&
  1360. History"&
  1361. Search"&
  1362. How To Read This Book"
  1363. ,Export,
  1364. ,Exit"&
  1365. setupMenu
  1366. MenuItems MenuName
  1367. AddToMap 
  1368. Y,MenuItemName
  1369. terpage
  1370. leavepage
  1371. enterpage
  1372. RestoreMenuBar
  1373. oveFromList
  1374. GetRidOfPounds
  1375. MenuItems
  1376. RemoveFromList
  1377. AddToMap
  1378. enterpage
  1379. tbkdlg.dll
  1380. dialog
  1381. setValue
  1382. getValue
  1383. Cannot load DLL
  1384. tbkdlg.dll
  1385. strNoDLL
  1386. RestoreMenuBar
  1387. default
  1388. s_NoDlgDLL
  1389. leavepage
  1390. RestoreMenuBar
  1391. tbkdlg.dll
  1392. s_NoDlgDLL
  1393. RemoveFromList
  1394. i:to1
  1395. theItem
  1396. theItemList
  1397. theList
  1398. GetRidOfPounds
  1399. theString
  1400. RestoreMenuBar
  1401. Save As
  1402. Import
  1403. Export
  1404. Printer Setup
  1405. Print Pages
  1406. Print Report
  1407. Author
  1408. Show Hotword
  1409. Previous
  1410. First
  1411. History
  1412. Search
  1413. How To Read This Book
  1414. Open,Save,Save As,Import,Export,Printer Setup,Print Pages,Print Report,Run,Exit
  1415. Author
  1416. Show Hotword
  1417. Next,Previous,First,Last,Back,History,Search
  1418. How To Read This Book
  1419. setupMenu
  1420. MenuList
  1421. MenuItemList
  1422. MMIMML
  1423. MMIMMIL
  1424. MenuItems
  1425. MMIMML
  1426. MMIMMIL
  1427. MenuName
  1428. AddToMap
  1429. MMIMML
  1430. MMIMMIL
  1431. MenuItemName
  1432. MenuName
  1433. Windows Prototyping
  1434. July, 1991
  1435. (c) Asymetrix Corporation
  1436. gives you permission 
  1437. e, revise 
  1438. reuse the individual 
  1439. scripts 
  1440. your own applications.
  1441. --You may 
  1442. x, however, 
  1443. Sentire 
  1444. a substantial part 
  1445. redistribution 
  1446. jproduct.
  1447. retains 
  1448. copyright on 
  1449. original elements 
  1450.  . Include 
  1451. notice "Portions 
  1452.  are 
  1453. they contain 
  1454. copied 
  1455. -- When entering 
  1456. 8, switch 
  1457. Reader level, 
  1458. -- environment, 
  1459. cbar 
  1460. status box.
  1461. -- System 
  1462. --    s_changesDB        -    The setting 
  1463. nproperty.
  1464. 8was opened.
  1465. --    s_currentSection-    Chapter 
  1466. section 
  1467. --    s_Chapters        -    Text 
  1468. chapters 
  1469. table 
  1470. contents.
  1471. --    s_didDoubleClick-    Flag used 
  1472. indicate whether
  1473. has been 
  1474. }-clicked.
  1475. --    s_Author        -    Set 
  1476. handler. 
  1477. goes 
  1478. . Used 
  1479. confirmation 
  1480. accessed.
  1481. 4s_DidDoubleClick
  1482. 4s_NewToTOC
  1483. 4s_PauseSpeed
  1484. restoreEnvironment
  1485. "Table 
  1486. Contents"
  1487. selectedTextLines 
  1488. SetupMenu
  1489. leaving 
  1490. 4sFromAppSampler
  1491. 8"appsamp.tbk"
  1492. -- Restore 
  1493. _saving 
  1494. . Also, 
  1495. asure that ToolBook confirms 
  1496. -- user exits 
  1497. 8without 
  1498. oldFromAppSampler 
  1499. oldChangesDB 
  1500. beginning 
  1501. . If 
  1502. marks 
  1503. list.
  1504. -- This 
  1505.  also unlocks 
  1506. screen, forcing 
  1507. image, 
  1508. mouse cursor 
  1509. hourglass 
  1510. default shape.
  1511. ocomplements 
  1512. , which 
  1513. effective 
  1514. notify 
  1515. flipping 
  1516. complete.
  1517. 4s_sectionStarted
  1518. sectionNumber 
  1519. startSection 
  1520. markSection 
  1521. record 
  1522. 4s_lastTestTime
  1523. intentional.
  1524. -- Each 
  1525. Ifollowing 
  1526. , going 
  1527.  will cause
  1528. -- a 
  1529. display asking 
  1530. verification.
  1531.         Request "Even minor 
  1532.  could 
  1533. " &&\
  1534. work incorrectly. Go 
  1535.  anyway?" 
  1536. f"Cancel" 
  1537. "Yes"
  1538. -- Go 
  1539. -- Use 
  1540. function 
  1541. asterisk, 
  1542. strip x
  1543. SPACE & TAB & "*" & CR & LF
  1544. -- Moves 
  1545. (s) listed 
  1546.  param 
  1547. startPos 
  1548. endPos. 
  1549. moved 1/division 
  1550. distance between 
  1551. z    larger 
  1552. slower 
  1553.  moves. If interrupt
  1554. moveImage 
  1555. endPosX
  1556. endPosY
  1557. div_1 
  1558. showObjects obj, xOffset, yOffset
  1559. objList 
  1560. startTime
  1561. 4s_testTime
  1562. GetCurrentTime()
  1563. showElapsedTime
  1564. thisTestTime 
  1565. Y) / 1000
  1566. %"#.0"
  1567. prompt 
  1568.  took" && 
  1569. G&& "
  1570.  <> 0 
  1571. deltaTime 
  1572. )) * 100
  1573. %"#.0"
  1574. 2<> 0
  1575. relation 
  1576. "faster"
  1577. %"#.0"
  1578. " It was" && 
  1579. & "%" && 
  1580. "than 
  1581. strNODLL dllName
  1582. rtStr 
  1583. "Cannot find 
  1584. "& "."
  1585. 2& ":" && 
  1586. G & "."
  1587. 8- 1)
  1588. 8- 1)
  1589. setupMenu
  1590. saveSLS 
  1591. FALSE
  1592. c"Help" 
  1593. e"&How To 
  1594. RemoveMenuItemsByPosition 0,"4,3"
  1595. 1,"8,7,6,5,4,3,2,1,0"
  1596. -2,"7,6,5,4,3,2,1,0"
  1597. G3,"7,6"
  1598. unlink
  1599.     linkDLL "
  1600.         WORD GetSystemMenu
  1601. ,INT)
  1602. 'ubMenu
  1603. EnableMenuItem (
  1604.     unlinkDLL "
  1605. MenuPos,MenuItemPosList
  1606. cdesired. -1 
  1607. submenu 
  1608. hMenu 
  1609. (syswindowHandle,0)
  1610. hMainMenu 
  1611. GetMenu(
  1612. GetSubMenu(
  1613. (menuitemPosList)
  1614. EnaRet 
  1615. ,1024)
  1616. RemRet 
  1617. ,1024)
  1618. HowToReadThisBook
  1619. restoreEnvironment
  1620. moveImage
  1621. showObjects
  1622. startTime
  1623. leaveBook
  1624. showElapsedTime
  1625. enterPage
  1626. setupMenu
  1627. leavePage
  1628. enterBook
  1629. unlink
  1630. RemoveMenuItemsByPosition
  1631. author
  1632. HowToReadThisBook
  1633. strip
  1634. strNODLL
  1635. enterBook
  1636. reader
  1637. eRrestoreEnvironment
  1638. Table of Contents
  1639. Chapters
  1640. Chapters
  1641. sizeToPage
  1642. SetupMenu
  1643. s_PauseSpeed
  1644. s_NewToTOC
  1645. s_Author
  1646. s_DidDoubleClick
  1647. s_Chapters
  1648. s_currentSection
  1649. s_changesDB
  1650. leaveBook
  1651. eRrestoreEnvironment
  1652. s_changesDB
  1653. appsamp.tbk
  1654. sFromAppSampler
  1655. restoreEnvironment
  1656. oldChangesDB
  1657. oldFromAppSampler
  1658. sFromAppSampler
  1659. s_changesDB
  1660. enterPage
  1661. sectionNumber
  1662. startSection
  1663. sectionNumber
  1664. markSection
  1665. Table of Contents
  1666. default
  1667. s_sectionStarted
  1668. leavePage
  1669. sectionNumber
  1670. s_lastTestTime
  1671. s_currentSection
  1672. author
  1673. Even minor changes at Author level could cause this
  1674. book to work incorrectly. Go to Author level anyway?
  1675. Cancel
  1676. s_Author
  1677. Table of contents
  1678. strip
  1679. moveImage
  1680. div_1
  1681. endPosY
  1682. endPosX
  1683. division
  1684. endPos
  1685. startPos
  1686. image
  1687. showObjects
  1688. group
  1689. objList
  1690. yOffset
  1691. xOffset
  1692. startTime
  1693. GetCurrentTime
  1694. s_testTime
  1695. showElapsedTime
  1696. GetCurrentTime
  1697. This test took
  1698. seconds.
  1699. faster
  1700. slower
  1701.  It was
  1702. than the previous test.
  1703. relation
  1704. deltaTime
  1705. prompt
  1706. thisTestTime
  1707. s_testTime
  1708. s_lastTestTime
  1709. strNODLL
  1710. Cannot find DLL
  1711. rtStr
  1712. dllName
  1713. setupMenu
  1714. &Help
  1715. &How To Read This Book
  1716. RemoveMenuItemsByPosition
  1717. RemoveMenuItemsByPosition
  1718. 8,7,6,5,4,3,2,1,0
  1719. RemoveMenuItemsByPosition
  1720. 7,6,5,4,3,2,1,0
  1721. RemoveMenuItemsByPosition
  1722. unlink
  1723. saveSLS
  1724. GetSystemMenu
  1725. GetMenu
  1726. GetSubMenu
  1727. EnableMenuItem
  1728. RemoveMenu
  1729. unlink
  1730. RemoveMenuItemsByPosition
  1731. GetSystemMenu
  1732. GetMenu
  1733. GetSubMenu
  1734. menuitemPosList
  1735. EnableMenuItem
  1736. RemoveMenu
  1737. RemRet
  1738. EnaRet
  1739. MenuItemPos
  1740. hMainMenu
  1741. hMenu
  1742. MenuItemPosList
  1743. MenuPos
  1744. HowToReadThisBook
  1745. How To Read This Book
  1746. Chapter Head
  1747. Title
  1748. -- If 
  1749. moved, 
  1750. a user-defined property, home, 
  1751. -- the 
  1752. graphic covering 
  1753. "Arrow" 
  1754. -- When 
  1755. Fmouse 
  1756. pressed, 
  1757. B"pushButton" 
  1758. released, 
  1759. w. Finally, 
  1760. -- Move 
  1761. -- depending on 
  1762. parameter, x, which can be 
  1763. H15,15
  1764. buttonDown
  1765. moved
  1766. buttonUp
  1767. press
  1768. moved
  1769. Arrow
  1770. buttonDown
  1771. pushButton
  1772. press
  1773. buttonUp
  1774. press
  1775. press
  1776. Arrow
  1777. pushButton
  1778. 2291,4043
  1779. pushButton
  1780.      
  1781. Arrow
  1782. Table of Contents
  1783. -- Go 
  1784. the Table 
  1785. Contents 
  1786. buttonUp
  1787. buttonUp
  1788. Table of Contents
  1789. Click the right arrow to continue.rrrrrrrrr
  1790. previous
  1791. -- If 
  1792. moved, 
  1793. a user-defined property, home, 
  1794. -- the 
  1795. graphic covering 
  1796. "Arrow" 
  1797. -- When 
  1798. Fmouse 
  1799. pressed, 
  1800. B"pushButton" 
  1801. released, 
  1802. w. Finally, 
  1803. Previous
  1804. -- Move 
  1805. -- depending on 
  1806. parameter, x, which can be 
  1807. H15,15
  1808. buttonDown
  1809. moved
  1810. buttonUp
  1811. press
  1812. moved
  1813. Arrow
  1814. buttonDown
  1815. pushButton
  1816. press
  1817. buttonUp
  1818. press
  1819. Previous
  1820. press
  1821. Arrow
  1822. pushButton
  1823. 1917,4043
  1824. pushButton
  1825.      
  1826. Arrow
  1827. reset
  1828. ClickMe
  1829. status "First 
  1830. the irregular 
  1831. ~a filled region."
  1832. mvCursor 
  1833. y,2970,3570,20,2,
  1834. B"currtool" 
  1835. 2820,3435
  1836. PointsPerI 
  1837. StartVertices 
  1838. y,x, y,20,5,
  1839. Drawing graphics 
  1840. done visually."
  1841. 5"))/(
  1842. *2)-((
  1843. *2)-1) 
  1844. *2)-((
  1845. *2)-1) 
  1846. EndVertices 
  1847. *2-1 
  1848. y,x,y,1,5,
  1849. FALSE
  1850. y,3270,1245,20,2,
  1851. 3150,1110
  1852. "ToolPalette"
  1853. default
  1854. "rest 
  1855. 240,25.125,100
  1856. easy 
  1857. ea complex 
  1858. {..."
  1859. "White"
  1860. change its colors 
  1861. give a three dimensional effect."
  1862. "Blue"
  1863. "continuing"    
  1864. added 
  1865. finishing touch."
  1866. y,6150,1005,20,2,
  1867. MyActivate 
  1868. "Title" 
  1869. "ToolBook"
  1870. newText
  1871. ClickMe
  1872. enterPage
  1873. reset
  1874. status
  1875. enterPage
  1876. reset
  1877. ClickMe
  1878. *status
  1879. First select the irregular polygon tool to draw a filled region.
  1880. mvCursor
  1881. currtool
  1882. black
  1883. black
  1884. StartVertices
  1885. black
  1886. black
  1887. black
  1888. mvCursor
  1889. *status
  1890. Drawing graphics is done visually.
  1891. black
  1892. black
  1893. black
  1894. EndVertices
  1895. black
  1896. black
  1897. mvCursor
  1898. mvCursor
  1899. currtool
  1900. ToolPalette
  1901. rest of black
  1902. background
  1903. *status
  1904. It is easy to copy a complex object...
  1905. White
  1906. *status
  1907. ...and change its colors to give a three dimensional effect.
  1908. continuing
  1909. *status
  1910. A text field is added for the finishing touch.
  1911. mvCursor
  1912. ClickMe
  1913. MyActivate
  1914. *status
  1915. All done.
  1916. default
  1917. PointsPerI
  1918. reset
  1919. ToolPalette
  1920. black
  1921. rest of black
  1922. White
  1923. continuing
  1924. Title
  1925. ToolBook
  1926. background
  1927. 0,100,0
  1928. ClickMe
  1929. MyActivate
  1930. *status
  1931. status
  1932. status
  1933. newText
  1934. Purpose of this book
  1935. What is a prototype?
  1936. Book Editor
  1937. Developing a Prototype
  1938. Topic
  1939. 4s_Chapters
  1940. sectionNumber 
  1941. 3 Name" 
  1942.             strip(
  1943. mvcursor x1,y1,x2,y2,iterations, 
  1944. ydif 
  1945. (y1-y2)/
  1946. xdif 
  1947. (x2-x1)/2
  1948. direction 
  1949. theta 
  1950. incr 
  1951. /))+y2
  1952. m*(1+
  1953. D))+x1
  1954. x2,y2 -- 
  1955. cover 
  1956. roundoff error
  1957. enterPage
  1958. mvcursor
  1959. enterPage
  1960. sectionNumber
  1961. Chapter Name
  1962. strip
  1963. s_Chapters
  1964. mvcursor
  1965. theta
  1966. direction
  1967. cursor
  1968. iterations
  1969. Chapter Name
  1970. Title
  1971. getLine loc
  1972. getLine
  1973. getLine
  1974. textFromPoint
  1975. -- If 
  1976. moved, 
  1977. a user-defined property, home, 
  1978. -- the 
  1979. graphic covering 
  1980. "Arrow" 
  1981. -- When 
  1982. Fmouse 
  1983. pressed, 
  1984. oenabled 
  1985. B"pushButton" 
  1986. released, 
  1987. w. Finally, 
  1988. -- Move 
  1989. -- depending on 
  1990. parameter, x, which can be 
  1991. H15,15
  1992. logVal
  1993. excludeTab 
  1994. 0,50,0
  1995. buttonDown
  1996. moved
  1997. buttonUp
  1998. enabled
  1999. press
  2000. enabled
  2001. moved
  2002. Arrow
  2003. buttonDown
  2004. enabled
  2005. pushButton
  2006. press
  2007. buttonUp
  2008. enabled
  2009. press
  2010. press
  2011. Arrow
  2012. pushButton
  2013. enabled
  2014. pushButton
  2015. pushButton
  2016. Arrow
  2017. 0,0,0
  2018. Arrow
  2019. logVal
  2020. enabled
  2021. pushButton
  2022. 2291,4043
  2023. pushButton
  2024.      
  2025. Arrow
  2026. Table of Contents
  2027. -- Go 
  2028. the Table 
  2029. Contents 
  2030. buttonUp
  2031. buttonUp
  2032. Table of Contents
  2033. previous
  2034. -- If 
  2035. moved, 
  2036. a user-defined property, home, 
  2037. -- the 
  2038. graphic covering 
  2039. "Arrow" 
  2040. -- When 
  2041. Fmouse 
  2042. pressed, 
  2043. B"pushButton" 
  2044. released, 
  2045. w. Finally, 
  2046. Previous
  2047. -- Move 
  2048. -- depending on 
  2049. parameter, x, which can be 
  2050. H15,15
  2051. buttonDown
  2052. moved
  2053. buttonUp
  2054. press
  2055. moved
  2056. Arrow
  2057. buttonDown
  2058. pushButton
  2059. press
  2060. buttonUp
  2061. press
  2062. Previous
  2063. press
  2064. Arrow
  2065. pushButton
  2066. 1917,4043
  2067. pushButton
  2068.      
  2069. Arrow
  2070. Topic
  2071. arning ToolBook
  2072. enScript Exercises
  2073. s Rmn
  2074. 3^D|D|
  2075. -- a 
  2076. renumbering a 
  2077. n > 0 
  2078. enterBook
  2079. renumber
  2080. enterBook
  2081. sizeToPage
  2082. renumber
  2083. :REPORTDATA
  2084. :CONDITIONDATA
  2085. Text of RecordField "Instructions" is "null" As Text
  2086. Text of RecordField "Instructions" is null
  2087. defaultSize
  2088. 9315,5745
  2089. System
  2090. y`D|D|
  2091. `D|D|
  2092. gD|D|E
  2093. gD|D|
  2094. System
  2095. gD|D|5
  2096. `D|D|
  2097. fD|D|E
  2098. fD|D|E
  2099. fD|D|E
  2100. `D|D|
  2101. rminal
  2102. `D|D|
  2103. `D|D|
  2104. `D|D|
  2105. fault
  2106. 9_D|D|
  2107. pageNumber is 103 or pageNumber is 104
  2108. pageNumber is 103 or pageNumber is 104
  2109. pageNumber is 103 or pageNumber is 104
  2110. pageobjs
  2111. ]D|D|
  2112. :PRINTLAYOUT
  2113. `D|D|
  2114. `D|D|
  2115. u`D|D|
  2116. `D|D|
  2117. aB|B|
  2118. Title
  2119. q\D|D|
  2120. \D|D|
  2121. System
  2122. S\D|D|
  2123. About Windows Prototyping
  2124. System
  2125. fD|D|%
  2126. ]D|D|
  2127. Small Fonts
  2128. ;gD|D|=
  2129. gD|D|5
  2130. `D|D|
  2131. Title
  2132. E v a l u a t i o n   E d i t i o n
  2133. E v a l u a t i o n   E d i t i o n
  2134. Tools for the job
  2135. sectionNumber
  2136. startSection
  2137. Tools for the job
  2138. What is a prototype?e
  2139. Though prototypes are developed quickly, they should still represent most of the functionality of a program. The most useful prototyping tools provide many functional elements that require little or no programming to apply. The more comprehensive the set of  elements provided by the tool, the quicker the prototype can be built.
  2140. :PHYSSIZE
  2141. Title
  2142. ToolBook - (Untitled)
  2143. File    Edit    Text
  2144. Push Button
  2145. single
  2146. select
  2147. Checkbox
  2148. Radio
  2149. multi-
  2150. select
  2151. Edit and listbox controls.trols.ontrols.
  2152. Complete menu controls.rols.s.
  2153. Full-featured button controls.
  2154. Click the right arrow to continue.t page.hapter.in the next chapter.ext chapter....
  2155. Welcome
  2156. uy ToolBook
  2157. Windows Prototypingtion
  2158. Windows Prototypingtion
  2159. Controls in ToolBook
  2160. Designing the User Interface
  2161. sectionNumber
  2162. startSection
  2163. Designing the user interfacectionality Quickly
  2164.     Back End Simulations
  2165. Developing a prototypement
  2166. With ToolBook you can build user interfaces (UIs) almost as quickly as you can envision them. 
  2167. All elements of the UI can be drawn graphically. You can quickly define working menus. You can even copy UI elements onto the Clipboard and paste them into a new book.to a new book.o a new book.ew book. into a new book.ew book.
  2168. :PHYSSIZE
  2169. Title
  2170. ToolBook - (Untitled)
  2171. ToolPalette
  2172. :PHYSSIZE
  2173. currtool
  2174. Background
  2175. Caption
  2176. Name::
  2177. Login
  2178. "p1" 
  2179. "Logged 
  2180. %user:"&&
  2181. buttonUp
  2182. buttonUp
  2183. Logged in as user:
  2184. Login
  2185. Cancel
  2186. "p1" 
  2187. buttonUp
  2188. buttonUp
  2189. Cancel
  2190. E-Mail
  2191. Acme E-Mail
  2192. Acme E-Mail
  2193. Acme E-Mail
  2194. Acme E-Mail
  2195. Acme E-Mail
  2196. Acme E-Mail
  2197. ClickMe
  2198. ButtonDown
  2199. myActivate() 
  2200. "Click Me"
  2201. ClickMe
  2202. Reset
  2203. logicalValue
  2204. grey 
  2205. 0,50,0
  2206. oexcludeTab 
  2207. ButtonDown
  2208. myActivate
  2209. myActivate
  2210. ButtonDown
  2211. myActivate
  2212. Click Me
  2213. .(ClickMe
  2214. Reset
  2215. myActivate
  2216. myActivate
  2217. 0,0,0
  2218. logicalValue
  2219. Click Me
  2220. Click the button Click Me to see an example.
  2221. Click the right arrow to continue....
  2222. status
  2223. Chapter Head
  2224. Introduction
  2225. Introduction
  2226. startSection
  2227. sectionNumber
  2228. Programming on the fly
  2229. Tools for the job
  2230. Welcome
  2231. Adding Functionality Quickly
  2232. "list 1" 
  2233. "Apple"&CRLF&"Grape"&
  2234. Strawberry"
  2235. "Red"&
  2236. +Blue"&
  2237. 3een"
  2238. selectedtextlines 
  2239. enterpage
  2240. enterpage
  2241. list 1
  2242. Apple
  2243. Grape
  2244. Strawberry
  2245. list 2
  2246. Green
  2247. list 1
  2248. list 2
  2249. sectionNumber
  2250. startSection
  2251. Adding functionality quickly
  2252. Developing a prototypement
  2253. ToolBook's intelligent objects allow you to create the basic functionality of buttons, list boxes, dialogs, and other objects graphically.  
  2254. The  OpenScript  language allows you to quickly add application-specific functionality  with clear, English-like syntax statements.
  2255. List 1
  2256. Apple
  2257. Grape
  2258. Strawberry
  2259. Redeawberryberry
  2260. List 2
  2261. GreenpeAppleGreen
  2262. Move >>
  2263. selectedTextLines 
  2264. "List 1" 
  2265. selectedItem 
  2266. selectedTextItem 
  2267. CRLF 
  2268. buttonUp
  2269. buttonUp
  2270. List 1
  2271. List 1
  2272. List 1
  2273. List 2
  2274. List 2
  2275. List 2
  2276. List 1
  2277. selectedTextItem
  2278. selectedItem
  2279. Move >>
  2280. << Move
  2281. selectedTextLines 
  2282. "List 2" 
  2283. selectedItem 
  2284. selectedTextItem 
  2285. CRLF 
  2286. buttonUp
  2287. buttonUp
  2288. List 2
  2289. List 2
  2290. List 2
  2291. List 1
  2292. List 1
  2293. List 1
  2294. List 2
  2295. selectedTextItem
  2296. selectedItem
  2297. << Move
  2298. List 11
  2299. List 22
  2300. Click here to see script of this button   r example.
  2301. B"<< Move"
  2302. buttonUp
  2303. buttonUp
  2304. << Move
  2305. Select an item from one of the lists, then click one of the Move buttons to see a prototype of a possible Windows dialog box. Click the right arrow to continue...
  2306. Adding Functionality Quickly
  2307. Menus
  2308. Features in the full ToolBook
  2309. selectedtextlines 
  2310. "options" 
  2311. "2,4,6,8"
  2312. enabled 
  2313. FALSE
  2314. enterpage
  2315. leavepage
  2316. enterpage
  2317. options
  2318. 2,4,6,8
  2319. enabled
  2320. leavepage
  2321. enabled
  2322. sectionNumber
  2323. startSection
  2324. Features in the full ToolBookkkkk
  2325. Prototypes in ToolBook ToolBookk
  2326. With the full version of ToolBook, you get Windows-style buttons, listboxes,  a dialog box editor, and other tools to simplify development. You also receive graphics filters to import many types of graphics files,such as WMF, CGM, TIFF, and more. Building a prototype was never easier!
  2327. :PHYSSIZE
  2328. :PHYSSIZE
  2329. Title
  2330. My Prototype
  2331. File    Edit    Options     
  2332. status 
  2333. "Status"
  2334. "callouts"
  2335. buttonUp
  2336. buttonUp
  2337. Status
  2338. callouts
  2339. Status
  2340. callouts
  2341. Status
  2342. status
  2343. Run Test
  2344. options
  2345. Option A
  2346. Option B
  2347. Option C
  2348. Option D
  2349. Option E
  2350. Option F
  2351. Option G
  2352. Option H
  2353. Include 1
  2354. Include 1
  2355. Include 2
  2356. Include 2
  2357. callouts
  2358. Marbelized texture that was scanned then imported into ToolBook., then imported into ToolBook.
  2359. Customized menu bar
  2360. Listbox field that scrolls
  2361. Windows-style buttons
  2362. Click on the prototype to the right for an example. Choose Exit from the File menu to exit this demonstration......n..
  2363. Done: Suite 1n H: Suite 1
  2364. status
  2365. percent bar
  2366. percent 
  2367. %"00.00"
  2368. 4 &&"%"
  2369. M &&"%"
  2370. }+ ((
  2371. /100) * dX)
  2372. FALSE
  2373. sized
  2374. (dx/2)-300
  2375. (dx/2)-300
  2376. sized
  2377. percent
  2378. percent
  2379. 00.00
  2380. sized
  2381. Percent White
  2382.     100.00 %
  2383. Percent Blue
  2384.     100.00 %
  2385. Percent Complete:
  2386. Current Status:
  2387. status
  2388. Done: Suite 1n H: Suite 1
  2389. Buttons
  2390. sectionNumber
  2391. startSection
  2392. Buttons
  2393. Controls in ToolBookToolBookk
  2394. ToolBook offers the full set of Windows button controls, as well as some additional styles. 
  2395. Buttons, like all ToolBook objects, can be drawn with a single mouse operation. Their captions can have any color or font. And they all come with the standard functionality already programmed.
  2396. Click one of the buttons to to the right to see an example. Click the right arrow to continue..
  2397. Click the right arrow to continue.k the right arrow to continue..
  2398. Pushbutton
  2399. FALSE
  2400. buttonDown
  2401. buttonDown
  2402. Radio
  2403. Buttons
  2404. Checkbox
  2405. Shadowed Border
  2406. Rounded Border
  2407. Rectangle Border
  2408. No Border
  2409. hhffhh
  2410. ffhffhf
  2411. hfhfh
  2412. hffhhfh
  2413. hffhf
  2414. fhffh
  2415. ffhfh
  2416. foffh
  2417. fhffh
  2418. ffhff
  2419. ffhfh
  2420. fhfhf
  2421. hfhfo
  2422. ffhfh
  2423. foffh
  2424. hfhff
  2425. hfhffo
  2426. hffhffh
  2427. fhfh    f
  2428. ffhfo
  2429. ffhfh
  2430. ffhfh
  2431. ffhffh
  2432. prototyp.ico
  2433. wwwwwwwp
  2434. fffffffp
  2435. fffffffp
  2436. fffffffp
  2437. wwwwww
  2438. fffffffp
  2439. fffffffp
  2440. fffffffp
  2441. fffffffp
  2442. wwwwww
  2443. wwwwwwwp
  2444. fffffffp
  2445. H@DDDG
  2446. fffffffp
  2447. fffffffp
  2448. H@DDDG
  2449. fffffffp
  2450. fffffffp
  2451. @-Bew
  2452.