home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Toolbook (Evaluation Edition) / Multimedia_Toolbook_Asymetrix_1992.iso / integrat.tbk / integrat.tbk (.txt)
Asymetrix ToolBook File  |  1992-10-25  |  145KB  |  2,748 lines

  1. Introduction
  2.  size
  3. Fonts
  4. Design tips
  5. The drawTextDirect property
  6. How to read this book
  7. sectionNumber
  8. startSection
  9. How to read this book
  10. ljsldkfjlaksdjflkjasdsdjflkjasd
  11. IntroductionU
  12. The pages in this book function as shown to the right. Instructions in a green shadowed box tell you what to do next. The buttons at the bottom of the page help you navigate. 
  13. When the cursor turns to                  further explaination is available with a single click.
  14. When the cursor turns to              some action is avaible with a single click.s avaible with a single click.e action is avaible with a single click......
  15. Click the right arrow to begin the next chapter.in the next chapter.ext chapter....
  16. Illustrations and demonstrations
  17. Explanation
  18. Buttons to turn pages and return to the table of contents
  19. Button
  20.      
  21.      
  22. Table of Contents
  23. Table of Contents
  24. Instructions
  25. Example:  Window Controller
  26. link 
  27. "Controller"
  28. fillapps 
  29. enabled 
  30. FALSE
  31. ActivateInstance
  32. terpage
  33. leavepage
  34. enterpage
  35. ActivateInstance
  36. enterpage
  37. Controller
  38. o?ifillapps
  39. Controller
  40. enabled
  41. leavepage
  42. enabled
  43. ActivateInstance
  44. o?ifillapps
  45. Controller
  46. sectionNumber
  47. startSection
  48. Example:  Window controller
  49. Dynamic link librariesn
  50. At right is an example of how the Windows system DLLs can be used to control the size and position of other application windows.
  51. Click the Maximize button and see what happens. Click Restore to restore the window to its normal size. Click Minimize to iconize the window. Drag the handle on the outline box and see what happens.
  52. Click the Maximize button and see what happens. Click Restore to restore the window to its normal size. Click Minimize to iconize the window. Drag the handle on the outline box and see what happens. Choose Exit from the File menu to exit the About Application Integration book........
  53. controller
  54. position
  55. 175,127
  56. 243,3806
  57. Position::::::::
  58. Size:ion::::::::
  59. Window Title:
  60. title
  61. WinMem- 9/20SDK
  62. MinimizeIt
  63. buttonUp
  64. buttonUp
  65. MinimizeIt
  66. Minimize
  67. MaximizeIt
  68. buttonUp
  69. buttonUp
  70. MaximizeIt
  71. Maximize
  72. RestoreIt
  73. buttonUp
  74. buttonUp
  75. RestoreIt
  76. Restore
  77. Screen
  78. Applications:
  79. AppList
  80. ChooseApp 
  81. oselectedtextlines
  82. buttonUp
  83. buttonUp
  84. ChooseApp
  85. WinMem
  86. Program Manager
  87. File Manager
  88. Dr. Watson
  89. Microsoft Mail - Monitor
  90. window
  91. windowbox
  92. item 1 of my objects
  93. resizebox
  94. item 2 of my objects
  95. Window
  96. resize
  97.  to pa
  98. Purpose of this book
  99. sectionNumber
  100. startSection
  101. Purpose of this book
  102. Introductionwing and speeded
  103. This book describes the keys to application integration with ToolBook:  OpenScript's Dynamic Data Exchange (DDE) and dynamic link library (DLL) support. 
  104. Examples of both are given... given.roughout.t.on.ntegration.ok gives examples of both aspects of application integration...of application integration.n integration..cts of application integration. fields more quickly. Since the response of a book
  105. Click the right arrow.
  106. Dynamic Data Exchange (DDE)
  107. Dynamic link libraries (DLLs)
  108. Click the right arrow to continue.t page.hapter.in the next chapter.ext chapter....
  109. Title
  110. E v a l u a t i o n   E d i t i o n
  111. E v a l u a t i o n   E d i t i o n
  112. Table of Contents
  113. --This 
  114. Draw Objects 
  115. asure 
  116. 'other 
  117. running
  118.  toolbook 
  119. M"ttdde.ebk"
  120. "ok" 
  121. strRunToolBookButton()
  122.     --note how commands are concatonated together 
  123. takes slightly longer 
  124. working, but once 
  125. does,
  126. finishes faster than issuing separate 
  127. ,;" & \
  128. ;" & \
  129. ;" & \
  130. 60,50,100;" & \
  131. 315,190 
  132. 840,715;" & \
  133. 510,325 
  134. 525,355;" & \
  135. 630,325 
  136. 645,355;" & \
  137. ~Arc 
  138. 405, 505 
  139. 405, 640 
  140. 570, 640;" & \
  141. 780, 475;" & \
  142. face;
  143. drawDirect 
  144. FALSE;" & \
  145. 0,100,0;" & \
  146. -15,490 
  147. 8675,785;" & \
  148. buttonup
  149. buttonup
  150. this book
  151. ttdde.ebk
  152. strRunToolBookButton
  153. set syslevel to author;
  154. set sysSuspend to false;
  155. select all;send clear to system;set syslevel to reader;
  156. set sysFillColor to 60,50,100;
  157. draw ellipse from 315,190 to 840,715;
  158. draw rectangle from 510,325 to 525,355;
  159. draw rectangle from 630,325 to 645,355;
  160. draw Arc from 405, 505 to 405, 640 to 570, 640;
  161. set items 3 to 4 of vertices of selection to 780, 475;
  162. select all;send group;set name of selection to face;set drawDirect of selection to FALSE;
  163. set sysFillColor to 0,100,0;
  164. draw field from -15,490 to 8675,785;
  165. set name of selection to f;set drawDirect of selection to FALSE;
  166. set layer of selection to 1
  167. ttdde.ebk
  168. toolbook
  169. How to read this book
  170. --This 
  171. Run ToolBook 
  172. 4RunEntireDemo
  173.     --quit 
  174. runtime version
  175. strNoRuntime()
  176. other instances 
  177. toolbook
  178. M"ttdde.ebk"
  179. "OK" 
  180. DDE" 
  181. xTRUE
  182. strAlreadyRunning()
  183. x"85,10"
  184. 85,10
  185.     --force a 
  186. 8, despite their startUpBook
  187. DoesFileExist("TTDDE.EBK")
  188. .exe 
  189. FALSE
  190. DEFAULT
  191. bar, 
  192.     setRemote "
  193. "85,345,561,425" 
  194. "100,345" 
  195. sysChangesDb" 
  196.     --bring us 
  197. bringWindowToTop(
  198. buttonup
  199. buttonup
  200. strNoRuntime
  201. caption of this book
  202. ttdde.ebk
  203. ToolBook to ToolBook DDE
  204. strAlreadyRunning
  205. 85,10
  206. TTDDE.EBK
  207. DoesFileExist
  208. toolbook.exe ttdde.ebk
  209. bounds of mainWindow
  210. 85,345,561,425
  211. ttdde.ebk
  212. hide scrollbar;hide menubar;hide statusBox
  213. ttdde.ebk
  214. position of toolpalette
  215. 100,345
  216. ttdde.ebk
  217. sysSuspend
  218. false
  219. ttdde.ebk
  220. sysChangesDb
  221. false
  222. ttdde.ebk
  223. bringWindowToTop
  224. DEFAULT
  225. toolbook
  226. RunEntireDemo
  227. --This 
  228. Bounce 
  229. asure 
  230. *other 
  231. running
  232. face" 
  233.  toolbook 
  234. M"ttdde.ebk"
  235. "ok" 
  236. c"Denied"
  237. strDrawObjectsButton()
  238. strRunToolBookButton()
  239. default
  240. was made 
  241. recorder, 
  242. Fmodified
  243. , these commands are concatenated 
  244. performance
  245. ;" & \
  246.          "Set 
  247. 225, 1170-800, 750, 1530-800;" & \
  248. 225, 1335-800, 750, 1530-800;" & \
  249. 225, 1455-800, 750, 1530-800;" & \
  250. 225, 1065-800, 750, 1530-800;" & \
  251. 225, 825-800, 750, 1530-800;" & \
  252.         "Move 
  253. 585, -15-800;" & \
  254. 585, -15-800, 1110, 285-800;" & \
  255. 585, -15-800, 1110, 570-800;" & \
  256. 645, 405-800;" & \
  257. 720, 945-800;" & \
  258. 720, 1155-800, 1245, 1530-800;" & \
  259. 720, 990-800, 1245, 1530-800;" & \
  260. 990, 405-800;" & \
  261. 990, 405-800, 1515, 900-800;" & \
  262. 1095, 45-800;" & \
  263. 1140, 645-800;" & \
  264. 1200, 1035-800;" & \
  265. 1350, 450-800;" & \
  266. 1470, 150-800;" & \
  267. 1500, 450-800;" & \
  268. 1545, 885-800;" & \
  269. 1560, 1035-800;" & \
  270. 1785, 405-800;" & \
  271. 1905, 210-800;" & \
  272. 1980, 465-800;" & \
  273. 2040, 870-800;" & \
  274. 2085, 1035-800;" & \
  275. 2280, 495-800;" & \
  276. 2355, 345-800;" & \
  277. 2385, 495-800;" & \
  278. 2430, 915-800;" & \
  279. 2445, 1035-800;" & \
  280. 2550, 630-800;" & \
  281. 2670, 405-800;" & \
  282. 2715, 570-800;" & \
  283. 2790, 990-800;" & \
  284. 2820, 1035-800;" & \
  285. 2955, 600-800;" & \
  286. 3045, 435-800;" & \
  287. 3120, 645-800;" & \
  288. 3165, 975-800;" & \
  289. 3180, 1035-800;" & \
  290. 3315, 675-800;" & \
  291. 3525, 465-800;" & \
  292. 3585, 645-800;" & \
  293. 3675, 960-800;" & \
  294. 3690, 1035-800;" & \
  295. 3990, 600-800;" & \
  296. 4155, 510-800;" & \
  297. 4350, 690-800;" & \
  298. 4485, 1005-800;" & \
  299. 4500, 1035-800;" & \
  300. 4815, 615-800;" & \
  301. 4935, 510-800;" & \
  302. 5100, 780-800;" & \
  303. 5160, 1035-800;" & \
  304. 5280, 750-800;" & \
  305. 5370, 570-800;" & \
  306. 5460, 840-800;" & \
  307. 5520, 1035-800;" & \
  308. 5640, 795-800;" & \
  309. 5655, 750-800;" & \
  310. 5700, 885-800;" & \
  311. 5745, 1035-800;" & \
  312. 5835, 825-800;" & \
  313. 5910, 750-800;" & \
  314. 6015, 900-800;" & \
  315. 6120, 1035-800;" & \
  316. 6345, 870-800;" & \
  317. 6510, 840-800;" & \
  318. 6675, 960-800;" & \
  319. 6750, 1035-800;" & \
  320. 6915, 900-800;" & \
  321. 7095, 975-800;" & \
  322. 7335, 945-800;" & \
  323. 7380, 945-800;" & \
  324. 7575, 990-800;" & \
  325. 7650, 1035-800;" & \
  326. 7845, 960-800;" & \
  327. 7950, 1005-800;" & \
  328. 8070, 1035-800;" & \
  329. 8100, 990-800;" & \
  330. 8025, 945-800;" & \
  331. 7935, 975-800;" & \
  332. 7875, 1035-800;" & \
  333. 7740, 975-800;" 
  334. buttonup
  335. buttonup
  336. group face
  337. ttdde.ebk
  338. Denied
  339. strDrawObjectsButton
  340. strRunToolBookButton
  341. set sysSuspend to false;
  342. Set bounds of group face to 225, 1170-800, 750, 1530-800;
  343. Set bounds of group face to 225, 1335-800, 750, 1530-800;
  344. Set bounds of group face to 225, 1455-800, 750, 1530-800;
  345. Set bounds of group face to 225, 1065-800, 750, 1530-800;
  346. Set bounds of group face to 225, 825-800, 750, 1530-800;
  347. Move group face to 585, -15-800;
  348. Set bounds of group face to 585, -15-800, 1110, 285-800;
  349. Set bounds of group face to 585, -15-800, 1110, 570-800;
  350. Move group face to 645, 405-800;
  351. Move group face to 720, 945-800;
  352. Set bounds of group face to 720, 1155-800, 1245, 1530-800;
  353. Set bounds of group face to 720, 990-800, 1245, 1530-800;
  354. Move group face to 990, 405-800;
  355. Set bounds of group face to 990, 405-800, 1515, 900-800;
  356. Move group face to 1095, 45-800;
  357. Move group face to 1140, 645-800;
  358. Move group face to 1200, 1035-800;
  359. Move group face to 1350, 450-800;
  360. Move group face to 1470, 150-800;
  361. Move group face to 1500, 450-800;
  362. Move group face to 1545, 885-800;
  363. Move group face to 1560, 1035-800;
  364. Move group face to 1785, 405-800;
  365. Move group face to 1905, 210-800;
  366. Move group face to 1980, 465-800;
  367. Move group face to 2040, 870-800;
  368. Move group face to 2085, 1035-800;
  369. Move group face to 2280, 495-800;
  370. Move group face to 2355, 345-800;
  371. Move group face to 2385, 495-800;
  372. Move group face to 2430, 915-800;
  373. Move group face to 2445, 1035-800;
  374. Move group face to 2550, 630-800;
  375. Move group face to 2670, 405-800;
  376. Move group face to 2715, 570-800;
  377. Move group face to 2790, 990-800;
  378. Move group face to 2820, 1035-800;
  379. Move group face to 2955, 600-800;
  380. Move group face to 3045, 435-800;
  381. Move group face to 3120, 645-800;
  382. Move group face to 3165, 975-800;
  383. Move group face to 3180, 1035-800;
  384. Move group face to 3315, 675-800;
  385. Move group face to 3525, 465-800;
  386. Move group face to 3585, 645-800;
  387. Move group face to 3675, 960-800;
  388. Move group face to 3690, 1035-800;
  389. Move group face to 3990, 600-800;
  390. Move group face to 4155, 510-800;
  391. Move group face to 4350, 690-800;
  392. Move group face to 4485, 1005-800;
  393. Move group face to 4500, 1035-800;
  394. Move group face to 4815, 615-800;
  395. Move group face to 4935, 510-800;
  396. Move group face to 5100, 780-800;
  397. Move group face to 5160, 1035-800;
  398. Move group face to 5280, 750-800;
  399. Move group face to 5370, 570-800;
  400. Move group face to 5460, 840-800;
  401. Move group face to 5520, 1035-800;
  402. Move group face to 5640, 795-800;
  403. Move group face to 5655, 750-800;
  404. Move group face to 5700, 885-800;
  405. Move group face to 5745, 1035-800;
  406. Move group face to 5835, 825-800;
  407. Move group face to 5910, 750-800;
  408. Move group face to 6015, 900-800;
  409. Move group face to 6120, 1035-800;
  410. Move group face to 6345, 870-800;
  411. Move group face to 6510, 840-800;
  412. Move group face to 6675, 960-800;
  413. Move group face to 6750, 1035-800;
  414. Move group face to 6915, 900-800;
  415. Move group face to 7095, 975-800;
  416. Move group face to 7335, 945-800;
  417. Move group face to 7380, 945-800;
  418. Move group face to 7575, 990-800;
  419. Move group face to 7650, 1035-800;
  420. Move group face to 7845, 960-800;
  421. Move group face to 7950, 1005-800;
  422. Move group face to 8070, 1035-800;
  423. Move group face to 8100, 990-800;
  424. Move group face to 8025, 945-800;
  425. Move group face to 7935, 975-800;
  426. Move group face to 7875, 1035-800;
  427. Move group face to 7740, 975-800;
  428. ttdde.ebk
  429. default
  430. toolbook
  431. Example:  ToolBook
  432. to ToolBook
  433. 4RunEntireDemo,s_NoUserDLL,hProgMan
  434. FALSE
  435.     linkDLL "user"
  436.         WORD SetActiveWindow(
  437. FindWindow(DWORD,STRING)
  438.         INT
  439. ShowWindow(
  440. BringWindowToTop(
  441. c"Cannot load 
  442. default
  443. strNoDLL("
  444. endDemo
  445. ""ToolBook 
  446. DDE"";
  447.  toolbook
  448.         unlinkDLL "
  449. terpage
  450. endDemo
  451. enterpage
  452. leavePage
  453. enterpage
  454. SetActiveWindow
  455. FindWindow
  456. ShowWindow
  457. BringWindowToTop
  458. Cannot load DLL
  459. strNoDLL
  460. default
  461. RunEntireDemo
  462. s_NoUserDLL
  463. hProgMan
  464. endDemo
  465. if caption of this book is "ToolBook to ToolBook DDE";send exit to system;end
  466. toolbook
  467. RunEntireDemo
  468. leavePage
  469. +endDemo
  470. s_NoUserDLL
  471. h v"*&
  472. sectionNumber
  473. startSection
  474. Example:  ToolBookok to ToolBookk
  475. Dynamic Data Exchange
  476. With DDE, one instance of ToolBook can run and control another instance. Using "multiple instances" you can coordinate ToolBook applications and develop more sophisticated multi-window applications....s.ations..........ped. buttons in order to see DDE at work. Or click the Run Entire Demo button.ce.  Its script was made from a script recording..... how to animate objects in another instance.  Its script was made from a script recording.....stance.
  477. The Bounce button's script shows how to animate objects in another instance.  Its script was made from a script recording...bjects in another instance.
  478. The Bounce button's script shows how to animate objects in another instance.  Its script was made from a script recording.cript shows how to draw and modify objects in another instance.
  479. The Bounce button's script shows how to animate objects in another instance.  Its script was made from a script recording.
  480. Click the buttons to see DDE at work. Or click the Run Entire Demo button. Click the captions to the right of the numbers for more information. Click the right arrow below to continue to the next page.
  481. Explain 4
  482. buttonUp
  483. buttonUp
  484. This button's script shows how to animate objects in another instance.  Its script was made from a script recording.
  485.                   (Click me to dismiss.)miss.))
  486. B"Bounce"
  487. buttonUp
  488. buttonUp
  489. Bounce
  490. Explain 1
  491. buttonUp
  492. buttonUp
  493. This button's script shows how to run other instances of ToolBook. It starts a new untitled book instead of the startup book and gets the window handle of the new instance. 
  494.                  (Click me to dismiss.)
  495. B"Run ToolBook"
  496. buttonUp
  497. buttonUp
  498. Run ToolBook
  499. Explain 2
  500. buttonUp
  501. buttonUp
  502. This button's script shows how to position windows and bring a window to the top. It uses the Microsoft Windows function bringWindowToTop().
  503.                   
  504.                  (Click me to dismiss.)
  505. eshuffle"
  506. buttonup
  507. buttonup
  508. window shuffle
  509. Explain 3
  510. buttonUp
  511. buttonUp
  512. This button's script shows how to draw and modify objects in another instance.
  513.                   (Click me to dismiss.)to dismiss.))
  514. B"Draw Objects"
  515. buttonUp
  516. buttonUp
  517. Draw Objects
  518. Run Toolbook
  519. Window Shuffle
  520. --This 
  521. Window Shuffle 
  522. ZotherWindowHandle
  523. asure 
  524. running
  525.  toolbook 
  526. M"ttdde.ebk"
  527. "ok" 
  528. strRunToolBookButton()
  529. place
  530. x"85,10"
  531. 85,10
  532.     setRemote "
  533. "116,300,516,465" 
  534. "220,300,413,465" 
  535. H0,-50" 
  536. "220,-166,413,-1" 
  537.     --bring 
  538. bringWindowToTop(
  539. H0,100" 
  540. "85,345,561,425" 
  541. buttonup
  542. buttonup
  543. sysWindowHandle
  544. ttdde.ebk
  545. strRunToolBookButton
  546. 85,10
  547. bounds of mainWindow
  548. 116,300,516,465
  549. ttdde.ebk
  550. bounds of mainWindow
  551. 220,300,413,465
  552. ttdde.ebk
  553. move mainWindow by 0,-50
  554. ttdde.ebk
  555. bounds of mainWindow
  556. 220,-166,413,-1
  557. ttdde.ebk
  558. bringWindowToTop
  559. move mainWindow by 0,100
  560. ttdde.ebk
  561. bounds of mainWindow
  562. 85,345,561,425
  563. ttdde.ebk
  564. toolbook
  565. otherWindowHandle
  566. Draw Objects
  567. Bounce
  568. 4RunEntireDemo
  569. buttonList 
  570. ) ToolBook", "Window Shuffle",\
  571.         "Draw Objects", "Bounce"
  572. endDemo
  573. buttonup
  574. buttonup
  575. Run ToolBook
  576. Window Shuffle
  577. Draw Objects
  578. Bounce
  579. buttonUp
  580. +endDemo
  581. buttonList
  582. RunEntireDemo
  583. Run Entire Demo
  584. Bounce
  585. huffle
  586. Palettes dance
  587. Draw objects
  588. Bounce
  589. Bounce
  590. tttttt
  591. "Explain 4" 
  592. buttonUp
  593. buttonUp
  594. Explain 4
  595. Explain 4
  596. Explain 1
  597. Explain 2
  598. Explain 3
  599. Run ToolBook
  600. Window shuffle
  601. Palettes dance
  602. Draw objects
  603. Bounce
  604. tttttt
  605. Run ToolBook
  606. "Explain 1" 
  607. buttonUp
  608. buttonUp
  609. Explain 1
  610. Explain 1
  611. Explain 2
  612. Explain 3
  613. Explain 4
  614. Draw objects
  615. Bounce
  616. es dance
  617. Draw objects
  618. Bounce
  619. Bounce
  620. tttttt
  621. "Explain 3" 
  622. buttonUp
  623. buttonUp
  624. Explain 3
  625. Explain 3
  626. Explain 1
  627. Explain 2
  628. Explain 4
  629. Default
  630. "Explain 5" 
  631. ouseEnter
  632. mouseLeave
  633. mouseEnter
  634. buttonUp
  635. mouseEnter
  636. mouseLeave
  637. Default
  638. buttonUp
  639. Explain 5
  640. Explain 5
  641. Explain 1
  642. Explain 2
  643. Explain 3
  644. Explain 4
  645. Shuffle windowssssssss
  646. Run ToolBook
  647. "Explain 2" 
  648. buttonUp
  649. buttonUp
  650. Explain 2
  651. Explain 2
  652. Explain 1
  653. Explain 3
  654. Explain 4
  655. -- When a chapter 
  656. clicked update the section list.
  657. 4s_DidDoubleClick
  658. updateSectionList
  659. oselectedTextLines
  660. strip(
  661. -- If 
  662. user presses a key that 
  663. reflect 
  664. -- Algorithm:
  665. -- Get 
  666. currently 
  667. . Forward 
  668. keystroke 
  669. ToolBook 
  670. default processing. Check 
  671. -- changed. If so, 
  672.  message 
  673. sections.
  674. causes 
  675. respond 
  676. -- Update 
  677. 4s_currentSection
  678.     -- Set 
  679. "Chapter 
  680. 3Name" 
  681. "Sections" 
  682. commandLine 
  683. sectionList 
  684. " && "
  685.     -- Clear 
  686. buttonDoubleClick
  687. buttonUp
  688. keyDown
  689. updateSectionList
  690. buttonUp
  691. updateSectionList
  692. s_DidDoubleClick
  693. buttonDoubleClick
  694. strip
  695. s_DidDoubleClick
  696. keyDown
  697. updateSectionList
  698. updateSectionList
  699. Chapter Name
  700. strip
  701. set sectionList to
  702. Sections
  703. of this page
  704. Sections
  705. Sections
  706. sectionList
  707. commandLine
  708. s_currentSection
  709. Welcome
  710. uy ToolBook
  711. Application Integration
  712. Application Integration
  713. 4s_NoDlgDLL,s_NoUserDLL
  714. FALSE
  715.     linkDLL "tbkdlg.dll"
  716. dialog(
  717. setValue(
  718. getValue(
  719. c"Cannot load 
  720. default
  721. strNoDLL("
  722. user"
  723.         WORD SetActiveWindow(
  724. FindWindow(STRING,DWORD)
  725.         INT
  726. ShowWindow(
  727. BringWindowToTop(
  728. FindProgMan
  729.         unlinkDLL "
  730. ShowProgman
  731. 4hProgMan
  732. "Yield"
  733. ShowToolBook
  734. setactivewindow(syswindowHandle)
  735. [,s_NoProgMan,
  736. DoesFileExist("PROGMAN.EXE",strNoProgMan())
  737. showWindow(
  738. activateInstance
  739. enterpage
  740. ShowProgman
  741. ShowToolBook
  742. leavepage
  743. FindProgMan
  744. activateInstance
  745. enterpage
  746. tbkdlg.dll
  747. dialog
  748. setValue
  749. getValue
  750. Cannot load DLL
  751. tbkdlg.dll
  752. strNoDLL
  753. SetActiveWindow
  754. FindWindow
  755. ShowWindow
  756. BringWindowToTop
  757. Cannot load DLL
  758. strNoDLL
  759. FindProgMan
  760. default
  761. s_NoDlgDLL
  762. s_NoUserDLL
  763. leavepage
  764. tbkdlg.dll
  765. s_NoDlgDLL
  766. s_NoUserDLL
  767. ShowProgman
  768. BringWindowToTop
  769. Yield
  770. hProgMan
  771. ShowToolBook
  772. setactivewindow
  773. FindProgMan
  774. ProgMan
  775. FindWindow
  776. PROGMAN.EXE
  777. strNoProgMan
  778. DoesFileExist
  779. PROGMAN.EXE
  780. setactivewindow
  781. showWindow
  782. showWindow
  783. setactivewindow
  784. hProgMan
  785. s_NoProgMan
  786. s_NoUserDLL
  787. activateInstance
  788. FindProgMan
  789. Dynamic Data Exchange
  790. Example:  ToolBook
  791. Example: Program Manager
  792. Example:  Program Manager
  793. What is a DLL?
  794. utines
  795. sectionNumber
  796. startSection
  797. What is a DLL?
  798. Dynamic link librariesn
  799. A dynamic link library (DLL) is a set of routines or functions written in a programming language (often C or Pascal).
  800. ToolBook is fully extensible, providing a completely open architecture for linking to any DLL. You gain full connectivity and access to an ever-growing set of libraries..f libraries......... open architecture for linking to any DLL. You gain full connectivity and access to an ever-growing set of libraries.g set of libraries.es.raries.es.
  801. int FAR PASCAL LibMain (hModule, wDataSeg, wHeapSize, lpCmdLine)
  802.     HANDLE    hModule ;
  803.     WORD        wDataSeg, wHeapSize ;
  804.     LPSTR        lpCmdLine ;
  805.     return(TRUE) ;
  806. int FAR PASCAL WEP(int bSystemExit)
  807.     return(TRUE) ;
  808. return(TRUE) ;
  809. bout      );
  810.     FreeProcInstance(lpfnSaveAsDlgProc);
  811.     FreeProcInstance(lpProModifyList  );
  812.    DeleteObject(hBM_Logo);
  813.    DeleteObject(hBM_ColorLogo);
  814.     return(TRUE) ;
  815. ce(lpProModifyList  );
  816.    DeleteObject(hBM_Logo);
  817.    DeleteObject(hBM_ColorLogo);
  818.     return(TRUE) ;
  819. SCAL WEP(int bSystemExit)
  820.     FreeProcInstance(lpProcAbout      );
  821.     FreeProcInstance(lpfnSaveAsDlgProc);
  822.     FreeProcInstance(lpProModifyList  );
  823.    DeleteObject(hBM_Logo);
  824.    DeleteObject(hBM_ColorLogo);
  825.     return(TRUE) ;
  826. :PHYSSIZE
  827. Dynamic 
  828. link library=
  829. Click the right arrow to continue.t page.hapter.in the next chapter.ext chapter....
  830. Example:  Program Manager
  831. sectionNumber
  832. startSection
  833. Example:  Program Manager
  834. Dynamic Data Exchange
  835. The Windows Program Manager is an example of an appplication that supports DDE. 
  836. Click the buttons to the right to use DDE to add an item to a Program Manager group, or create, show, or delete a group.+
  837. Click the buttons to the right to use DDE to add an item to a Program Manager group, or create, show, or delete a group.
  838. Click the captions to the right of the numbers for more information.
  839. Click the right arrow to continue.
  840. Explain 4
  841. buttonUp
  842. buttonUp
  843. This button's script shows how to send an executeRemote command to display a Program Manager group in a variety of ways.
  844.                   (Click me to dismiss.)    (Click me to dismiss.)ismiss.)
  845. B"Show Group"
  846. buttonUp
  847. buttonUp
  848. Show Group
  849. Explain 3
  850. buttonUp
  851. buttonUp
  852. This button's script shows how to send an executeRemote command to delete a Program Manager group.
  853.                   (Click me to dismiss.)    (Click me to dismiss.))to dismiss.)ick me to dismiss.)
  854. B"Delete Group"
  855. buttonUp
  856. buttonUp
  857. Delete Group
  858. Explain 2
  859. buttonUp
  860. buttonUp
  861. This button's script shows how to send an executeRemote command to create a new Program Manager group.
  862.                   (Click me to dismiss.)    (Click me to dismiss.)to dismiss.)smiss.))))
  863. B"Create Group"
  864. buttonUp
  865. buttonUp
  866. Create Group
  867. Explain 1
  868. buttonUp
  869. buttonUp
  870. This button's script shows how to link TBKDLG.DLL, call the dialog function, and send an executeRemote command to add an item to a Program Manager group.  
  871.                   (Click me to dismiss.)
  872. B"Add Item"
  873. buttonUp
  874. buttonUp
  875. Add Item
  876. Delete Group
  877. "Explain 4" 
  878. buttonUp
  879. buttonUp
  880. Explain 4
  881. Explain 4
  882. Explain 1
  883. Explain 2
  884. Explain 3
  885. Create Group
  886. "Explain 1" 
  887. buttonUp
  888. buttonUp
  889. Explain 1
  890. Explain 1
  891. Explain 4
  892. Explain 2
  893. Explain 3
  894. Show Group
  895. Bounce
  896. es dance
  897. Draw objects
  898. Bounce
  899. Bounce
  900. tttttt
  901. "Explain 3" 
  902. buttonUp
  903. buttonUp
  904. Explain 3
  905. Explain 3
  906. Explain 1
  907. Explain 2
  908. Explain 4
  909. Default
  910. "Explain 5" 
  911. ouseEnter
  912. mouseLeave
  913. mouseEnter
  914. buttonUp
  915. mouseEnter
  916. mouseLeave
  917. Default
  918. buttonUp
  919. Explain 5
  920. Explain 5
  921. Explain 1
  922. Explain 2
  923. Explain 3
  924. Explain 4
  925. Add Item
  926. "Explain 2" 
  927. buttonUp
  928. buttonUp
  929. Explain 2
  930. Explain 2
  931. Explain 1
  932. Explain 4
  933. Explain 3
  934. Create Group
  935. 4s_NoDlgDLL,s_NoProgMan
  936. strNoProgMan()
  937. strNoDLL("tbkdlg.dll")
  938. retValue 
  939. dialog(
  940. odlgBox,
  941. odlginit)
  942. GroupName 
  943. getValue(
  944.  function
  945. GroupFile 
  946. strMustHaveGroupInfo()
  947. showProgMan
  948. "[CreateGroup("&
  949. &","&
  950. &")]" 
  951.  "PROGMAN" 
  952. showToolBook
  953. buttonUp
  954. buttonUp
  955. strNoProgMan
  956. tbkdlg.dll
  957. strNoDLL
  958. dlgBox
  959. dlginit
  960. dialog
  961. edit GroupName
  962. getValue
  963. edit GroupFile
  964. getValue
  965. strMustHaveGroupInfo
  966. showProgMan
  967. [CreateGroup(
  968. PROGMAN
  969. PROGMAN
  970. <:showToolBook
  971. GroupFile
  972. GroupName
  973. retValue
  974. s_NoDlgDLL
  975. s_NoProgMan
  976. dlgInit
  977. ,s5,Group Name:
  978. edit GroupName,e7,
  979. button OK,b9,TRUE
  980. button Cancel,b10,FALSE
  981. ,s23,Group File:
  982. edit GroupFile,e24,
  983. dlgBox
  984. 524480,6,30,20,180,82,,,Create Group,8,Helv,,0.00,10.71,54.13,11.45,5,1342177282,130,Group Name:,0,GroupName,55.96,10.71,115.77,13.17,7,1350631424,129,,0,,0.00,26.79,54.13,11.45,23,1342177282,130,Group File:,0,GroupFile,55.96,26.79,115.77,13.17,24,1350631424,129,,0,OK,41.07,50.30,50.86,12.31,9,1342242817,128,OK,0,Cancel,95.20,50.30,50.90,12.31,10,1342242816,128,Cancel,0
  985. ctrlID
  986. Add Item
  987. 4s_NoDlgDLL,s_NoProgMan
  988. strNoProgMan()
  989. strNoDLL("tbkdlg.dll")
  990. retValue 
  991. dialog(
  992. odlgBox,
  993. odlginit)
  994. ItemName 
  995. getValue(
  996.  function
  997. CmdLine
  998. CommandLine")
  999. strMustHaveCmdLine()
  1000. showProgMan
  1001. "[AddItem("&
  1002. n&","&
  1003. &")]" 
  1004.  "PROGMAN" 
  1005. showToolBook
  1006. buttonUp
  1007. buttonUp
  1008. strNoProgMan
  1009. tbkdlg.dll
  1010. strNoDLL
  1011. dlgBox
  1012. dlginit
  1013. dialog
  1014. edit ItemName
  1015. getValue
  1016. edit CommandLine
  1017. getValue
  1018. strMustHaveCmdLine
  1019. showProgMan
  1020. [AddItem(
  1021. PROGMAN
  1022. PROGMAN
  1023. <:showToolBook
  1024. CmdLine
  1025. ItemName
  1026. retValue
  1027. s_NoDlgDLL
  1028. s_NoProgMan
  1029. "T!dlgBox
  1030. 524480,6,30,20,180,74,,,Add Item,8,Helv,,5.45,9.39,56.00,11.45,5,1342177282,130,Item Name:,0,,5.45,26.87,56.00,11.45,6,1342177282,130,Command Line:,0,ItemName,63.28,9.39,110.13,13.17,7,1350631424,129,,0,CommandLine,63.28,25.48,110.13,13.17,8,1350631424,129,,0,OK,39.05,47.59,50.86,12.31,9,1342242817,128,OK,0,Cancel,93.14,47.59,50.90,12.31,10,1342242816,128,Cancel,0
  1031. "dlgInit
  1032. ,s5,Item Name:
  1033. ,s6,Command Line:
  1034. edit ItemName,e7,
  1035. edit CommandLine,e8,
  1036. button OK,b9,TRUE
  1037. button Cancel,b10,FALSE
  1038. b#ctrlID
  1039. Show Group
  1040. 4s_NoDlgDLL,s_NoProgMan
  1041. strNoProgMan()
  1042. strNoDLL("tbkdlg.dll")
  1043. retValue 
  1044. dialog(
  1045. odlgBox,
  1046. odlginit)
  1047. GroupName 
  1048. getValue(
  1049.  function
  1050. ShowCommand 
  1051. strMustHaveGroupName()
  1052. showProgMan
  1053. "[ShowGroup("&
  1054. 2&","&
  1055. &")]" 
  1056.  "PROGMAN" 
  1057. showToolBook
  1058. buttonUp
  1059. buttonUp
  1060. strNoProgMan
  1061. tbkdlg.dll
  1062. strNoDLL
  1063. dlgBox
  1064. dlginit
  1065. dialog
  1066. edit GroupName
  1067. getValue
  1068. button 1
  1069. getValue
  1070. button 2
  1071. getValue
  1072. button 3
  1073. getValue
  1074. button 4
  1075. getValue
  1076. button 5
  1077. getValue
  1078. button 6
  1079. getValue
  1080. button 7
  1081. getValue
  1082. button 8
  1083. getValue
  1084. strMustHaveGroupName
  1085. showProgMan
  1086. [ShowGroup(
  1087. PROGMAN
  1088. PROGMAN
  1089. <:showToolBook
  1090. ShowCommand
  1091. GroupName
  1092. retValue
  1093. s_NoDlgDLL
  1094. s_NoProgMan
  1095. (dlgBox
  1096. 524480,12,30,20,180,110,,,Show Group,8,Helv,,0.00,10.67,54.13,11.45,5,1342177282,130,Group Name:,0,GroupName,55.96,10.67,115.77,13.17,7,1350631424,129,,0,1,13.07,32.78,65.33,10.46,12,1342177289,128,Restore (Active),0,2,13.07,42.83,67.20,10.46,13,1342177289,128,Iconic (Active),0,5,13.07,52.88,65.33,10.46,16,1342177289,128,Current (Active),0,3,13.07,62.93,50.86,10.46,14,1342177289,128,Maximize,0,4,95.20,32.78,78.40,10.46,15,1342177289,128,Restore (Not Active),0,7,95.20,42.83,74.67,10.46,18,1342177289,128,Iconic (Not Active),0,8,95.20,52.88,76.53,10.46,19,1342177289,128,Current (Not Active),0,6,95.20,62.93,50.86,10.46,17,1342177289,128,Minimize,0,OK,41.07,81.03,50.86,12.31,9,1342242817,128,OK,0,Cancel,95.20,81.03,50.90,12.31,10,1342242816,128,Cancel,0
  1097. +dlgInit
  1098. ,s5,Group Name:
  1099. edit GroupName,e7,
  1100. button 1,b12,TRUE
  1101. button 2,b13,FALSE
  1102. button 5,b16,FALSE
  1103. button 3,b14,FALSE
  1104. button 4,b15,FALSE
  1105. button 7,b18,FALSE
  1106. button 8,b19,FALSE
  1107. button 6,b17,FALSE
  1108. button OK,b9,TRUE
  1109. button Cancel,b10,FALSE
  1110. ,ctrlID
  1111. Delete Group
  1112. 4s_NoDlgDLL,s_NoProgMan
  1113. strNoProgMan()
  1114. strNoDLL("tbkdlg.dll")
  1115. retValue 
  1116. dialog(
  1117. odlgBox,
  1118. odlginit)
  1119. GroupName 
  1120. getValue(
  1121.  function
  1122. strMustHaveGroupName()
  1123. showProgMan
  1124. "[DeleteGroup("&
  1125. z&")]" 
  1126.  "PROGMAN" 
  1127. showToolBook
  1128. buttonUp
  1129. buttonUp
  1130. strNoProgMan
  1131. tbkdlg.dll
  1132. strNoDLL
  1133. dlgBox
  1134. dlginit
  1135. dialog
  1136. edit GroupName
  1137. getValue
  1138. strMustHaveGroupName
  1139. showProgMan
  1140. [DeleteGroup(
  1141. PROGMAN
  1142. PROGMAN
  1143. <:showToolBook
  1144. GroupName
  1145. retValue
  1146. s_NoDlgDLL
  1147. s_NoProgMan
  1148. 040dlgInit
  1149. ,s5,Group Name:
  1150. edit GroupName,e7,
  1151. button OK,b9,TRUE
  1152. button Cancel,b10,FALSE
  1153. 0dlgBox
  1154. 524480,4,30,20,180,63,,,Delete Group,8,Helv,,0.00,10.75,54.13,11.45,5,1342177282,130,Group Name:,0,GroupName,55.96,10.75,115.77,13.17,7,1350631424,129,,0,OK,41.07,33.11,50.86,12.31,9,1342242817,128,OK,0,Cancel,95.20,33.11,50.90,12.31,10,1342242816,128,Cancel,0
  1155. 1ctrlID
  1156. Why this book exists
  1157. Table of Contents
  1158. Window's DLL Routines
  1159. Purpose of this book
  1160. What is a DLL?
  1161. Book Editor
  1162. Windows DLL Routines
  1163. Welcome
  1164. Table of Contents
  1165. -- If 
  1166. moved, 
  1167. a user-defined property, home, 
  1168. -- the 
  1169. graphic covering 
  1170. "Arrow" 
  1171. -- When 
  1172. Fmouse 
  1173. pressed, 
  1174. B"pushButton" 
  1175. released, 
  1176. w. Finally, 
  1177. -- Move 
  1178. -- depending on 
  1179. parameter, x, which can be 
  1180. H15,15
  1181. buttonDown
  1182. moved
  1183. buttonUp
  1184. press
  1185. moved
  1186. Arrow
  1187. buttonDown
  1188. pushButton
  1189. press
  1190. buttonUp
  1191. press
  1192. press
  1193. Arrow
  1194. pushButton
  1195. 2291,4043
  1196. pushButton
  1197.      
  1198. Arrow
  1199. Table of Contents
  1200. Table of Contents
  1201. Chapters
  1202. Sections
  1203. -- Turn the 
  1204. selected section 
  1205. clicked.
  1206. turnToSection
  1207. pressed.
  1208.         -- 
  1209. pkey 
  1210. default processing
  1211. -- Algorithm:
  1212. -- Get 
  1213. currently 
  1214. . If 
  1215. named 
  1216. strip(
  1217. oselectedTextLines 
  1218. Click
  1219. buttonDoubleClick
  1220. keyChar
  1221. turnToSection
  1222. buttonDoubleClick
  1223. qturnToSection
  1224. keyChar
  1225. qturnToSection
  1226. turnToSection
  1227. strip
  1228. Chapter Name
  1229. Title
  1230. pushButton
  1231.      
  1232. Arrow
  1233. Application Integration
  1234. June,
  1235. (c) Asymetrix Corporation
  1236. gives you permission 
  1237. e, revise 
  1238. reuse the individual 
  1239. scripts 
  1240. your own applications.
  1241. --You may 
  1242. x, however, 
  1243. Sentire 
  1244. a substantial part 
  1245. redistribution 
  1246. jproduct.
  1247. retains 
  1248. copyright on 
  1249. original elements 
  1250.  . Include 
  1251. notice "Portions 
  1252.  are 
  1253. they contain 
  1254. copied 
  1255. -- When entering 
  1256. 8, switch 
  1257. Reader level, 
  1258. -- environment, 
  1259. cbar 
  1260. status box.
  1261. -- System 
  1262. --    s_changesDB        -    The setting 
  1263. nproperty.
  1264. 8was opened.
  1265. --    s_currentSection-    Chapter 
  1266. section 
  1267. --    s_Chapters        -    Text 
  1268. chapters 
  1269. table 
  1270. contents.
  1271. --    s_didDoubleClick-    Flag used 
  1272. indicate whether
  1273. has been 
  1274. }-clicked.
  1275. --    s_Speed            -    Used 
  1276. speed 
  1277. some animations.
  1278. --    s_Author        -    Set 
  1279. handler. 
  1280. goes 
  1281. confirmation 
  1282. accessed.
  1283. 4s_DidDoubleClick
  1284. 4s_NewToTOC
  1285. restoreEnvironment
  1286.     linkDLL "User"
  1287.         DWORD GetCurrentTime()
  1288. "Table 
  1289. Contents"
  1290. selectedTextLines 
  1291. setupmenu
  1292. 4sFromAppSampler
  1293. 8"appsamp.tbk"
  1294. leaving 
  1295. ,fromMain
  1296. -- Restore 
  1297. _saving 
  1298. . Also, 
  1299. asure that ToolBook confirms 
  1300. -- user exits 
  1301. 8without 
  1302. oldChangesDB 
  1303. oldFromAppSampler 
  1304. beginning 
  1305. . If 
  1306. marks 
  1307. list.
  1308. -- This 
  1309.  also unlocks 
  1310. screen, forcing 
  1311. image, 
  1312. mouse cursor 
  1313. hourglass 
  1314. default shape.
  1315. ocomplements 
  1316. , which 
  1317. effective 
  1318. notify 
  1319. flipping 
  1320. complete.
  1321. 4s_sectionStarted
  1322. sectionNumber 
  1323. startSection 
  1324. markSection 
  1325. record 
  1326. 4s_lastTestTime
  1327. intentional.
  1328. -- Each 
  1329. Ifollowing 
  1330. , going 
  1331.  will cause
  1332. -- a 
  1333. display asking 
  1334. verification.
  1335.         Request "Even minor 
  1336.  could 
  1337. " &&\
  1338. work incorrectly. Go 
  1339.  anyway?" 
  1340. f"Cancel" 
  1341. "Yes"
  1342. -- Go 
  1343. -- Use 
  1344. function 
  1345. asterisk, 
  1346. strip x
  1347. SPACE & TAB & "*" & CR & LF
  1348. -- Moves 
  1349. (s) listed 
  1350.  param 
  1351. startPos 
  1352. endPos. 
  1353. moved 1/division 
  1354. distance between 
  1355.     larger 
  1356. slower 
  1357.  moves. If interrupt
  1358. moveImage 
  1359. endPosX
  1360. endPosY
  1361. div_1 
  1362. showObjects obj, xOffset, yOffset
  1363. objList 
  1364. startTime
  1365. 4s_testTime
  1366. showElapsedTime
  1367. thisTestTime 
  1368. M) / 1000
  1369. %"#.0"
  1370. prompt 
  1371. u took" && 
  1372. H&& "
  1373.  <> 0 
  1374. deltaTime 
  1375. )) * 100
  1376. %"#.0"
  1377. 2<> 0
  1378. relation 
  1379. "faster"
  1380. %"#.0"
  1381. " It was" && 
  1382. & "%" && 
  1383. "than 
  1384. strNODLL dllName
  1385. rtStr 
  1386. "Cannot find 
  1387. "& "."
  1388. 2& ":" && 
  1389. G & "."
  1390. strRunToolBookButton
  1391. "Please press 
  1392. strDrawObjectsButton
  1393. strMustHaveCmdLine
  1394.  a 'Command 
  1395. strMustHaveGroupInfo
  1396.  either a '
  1397. , File' 
  1398. create a 
  1399. strMustHaveGroupName
  1400. strAlreadyRunning
  1401. already running."
  1402. strOtherInstance
  1403. close 
  1404. other instances 
  1405. 4pressing 
  1406. 8- 1)
  1407. 8- 1)
  1408. setupMenu
  1409. saveSLS 
  1410. sysLockscreen 
  1411. FALSE
  1412. c"Help" 
  1413. e"&How To 
  1414. RemoveMenuItemsByPosition 0,"4,3"
  1415. 1,"8,7,6,5,4,3,2,1,0"
  1416. -2,"7,6,5,4,3,2,1,0"
  1417. G3,"7,6"
  1418. unlink
  1419. ("Show Hotwords" 
  1420. hotwords" 
  1421. SystemMenu
  1422. ,INT)
  1423. SubMenu
  1424. EnableMenuItem (
  1425.     unlinkDLL "
  1426. MenuPos,MenuItemPosList
  1427. cdesired. -1 
  1428. submenu 
  1429. hMenu 
  1430. GetSystemMenu(syswindowHandle,0)
  1431. hMainMenu 
  1432. GetMenu(
  1433. GetSubMenu(
  1434. (menuitemPosList)
  1435. EnaRet 
  1436. ,1024)
  1437. RemRet 
  1438. ,1024)
  1439. HowToReadThisBook
  1440. DoesFileExist fileName,strSpecialMessage
  1441. TBKFile.dll"
  1442.         INT FileExists (STRING)
  1443. LinkDLL
  1444. ("TBKFILE.
  1445. ) <> 1
  1446. strCantFind(
  1447. M strFileName
  1448. &CRLF& \
  1449.  directory."
  1450. strNoProgMan
  1451. ""PROGMAN.EXE"". 
  1452. demonstration "&
  1453. xavailable 
  1454. Program Manager "
  1455. restoreEnvironment
  1456. moveImage
  1457. showObjects
  1458. startTime
  1459. showElapsedTime
  1460. enterPage
  1461. enterBook
  1462. setupMenu
  1463. leavePage
  1464. showhotwords
  1465. leaveBook
  1466. unlink
  1467. RemoveMenuItemsByPosition
  1468. author
  1469. HowToReadThisBook
  1470. jectsButton
  1471. strip
  1472. strMustHaveCmdLine
  1473. strRunToolBookButton
  1474. strMustHaveGroupInfo
  1475. strMustHaveGroupName
  1476. strAlreadyRunning
  1477. strOtherInstance
  1478. strNODLL
  1479. DoesFileExist
  1480. strDrawObjectsButton
  1481. strCantFind
  1482. strNoProgMan
  1483. enterBook
  1484. reader
  1485. eRrestoreEnvironment
  1486. GetCurrentTime
  1487. Table of Contents
  1488. Chapters
  1489. Chapters
  1490. setupmenu
  1491. sizeToPage
  1492. s_NewToTOC
  1493. s_Author
  1494. s_Speed
  1495. s_DidDoubleClick
  1496. s_Chapters
  1497. s_currentSection
  1498. s_changesDB
  1499. appsamp.tbk
  1500. sFromAppSampler
  1501. leaveBook
  1502. eRrestoreEnvironment
  1503. s_changesDB
  1504. fromMain
  1505. restoreEnvironment
  1506. oldFromAppSampler
  1507. oldChangesDB
  1508. s_changesDB
  1509. sFromAppSampler
  1510. enterPage
  1511. sectionNumber
  1512. startSection
  1513. sectionNumber
  1514. markSection
  1515. Table of Contents
  1516. default
  1517. s_sectionStarted
  1518. leavePage
  1519. sectionNumber
  1520. s_lastTestTime
  1521. s_currentSection
  1522. author
  1523. Even minor changes at Author level could cause this
  1524. book to work incorrectly. Go to Author level anyway?
  1525. Cancel
  1526. s_Author
  1527. Table of contents
  1528. strip
  1529. moveImage
  1530. div_1
  1531. endPosY
  1532. endPosX
  1533. division
  1534. endPos
  1535. startPos
  1536. image
  1537. showObjects
  1538. group
  1539. objList
  1540. yOffset
  1541. xOffset
  1542. startTime
  1543. GetCurrentTime
  1544. s_testTime
  1545. showElapsedTime
  1546. GetCurrentTime
  1547. This test took
  1548. seconds.
  1549. faster
  1550. slower
  1551.  It was
  1552. than the previous test.
  1553. relation
  1554. deltaTime
  1555. prompt
  1556. thisTestTime
  1557. s_testTime
  1558. s_lastTestTime
  1559. strNODLL
  1560. Cannot find DLL
  1561. rtStr
  1562. dllName
  1563. strRunToolBookButton
  1564. Please press the 'Run ToolBook' button first.
  1565. strDrawObjectsButton
  1566. Please press the 'Draw objects' button first.
  1567. strMustHaveCmdLine
  1568. You must enter a 'Command Line' to add an item.
  1569. strMustHaveGroupInfo
  1570. You must enter either a 'Group Name' or a 'Group File' to create a group.
  1571. strMustHaveGroupName
  1572. You must enter a 'Group Name' to execute this command.
  1573. strAlreadyRunning
  1574. An application of ToolBook is already running.
  1575. strOtherInstance
  1576. Please close all other instances of ToolBook before pressing this button.
  1577. setupMenu
  1578. &Help
  1579. &How To Read This Book
  1580. RemoveMenuItemsByPosition
  1581. RemoveMenuItemsByPosition
  1582. 8,7,6,5,4,3,2,1,0
  1583. RemoveMenuItemsByPosition
  1584. 7,6,5,4,3,2,1,0
  1585. RemoveMenuItemsByPosition
  1586. unlink
  1587. saveSLS
  1588. showhotwords
  1589. Show Hotwords
  1590. checked
  1591. show hotwords
  1592. show hotwords
  1593. GetSystemMenu
  1594. GetMenu
  1595. GetSubMenu
  1596. EnableMenuItem
  1597. RemoveMenu
  1598. unlink
  1599. RemoveMenuItemsByPosition
  1600. GetSystemMenu
  1601. GetMenu
  1602. GetSubMenu
  1603. menuitemPosList
  1604. EnableMenuItem
  1605. RemoveMenu
  1606. RemRet
  1607. EnaRet
  1608. MenuItemPos
  1609. hMainMenu
  1610. hMenu
  1611. MenuItemPosList
  1612. MenuPos
  1613. HowToReadThisBook
  1614. How To Read This Book
  1615. DoesFileExist
  1616. TBKFile.dll
  1617. FileExists
  1618. TBKFILE.DLL
  1619. strNODLL
  1620. FileExists
  1621. strCantFind
  1622. TBKFile.dll
  1623. TBKFile.dll
  1624. strSpecialMessage
  1625. fileName
  1626. strCantFind
  1627. Cannot find the file:
  1628. Please check that it is in the current directory.
  1629. strFileName
  1630. strNoProgMan
  1631. Cannot find "PROGMAN.EXE". This demonstration 
  1632. is not available without the Program Manager 
  1633. application. Please continue to the next page.
  1634. getData
  1635. dataPath 
  1636. "PathToData"
  1637. currentSpot 
  1638. ?)/2)
  1639.  1" + 1) 
  1640. ktextlineCount(
  1641. FALSE
  1642. ChartData
  1643. "PathToChart"
  1644. currentValue 
  1645.  1" + 1
  1646. value 
  1647. DocumentData
  1648. "PathToDocs"
  1649. spinTape
  1650. "MainFrame"
  1651. flashLights 
  1652. artData
  1653. getData
  1654. DocumentData
  1655. ChartData
  1656. getData
  1657. PathToData
  1658. Data 1
  1659. Data 1
  1660. Data 1
  1661. Data 2
  1662. Data 1
  1663. Data 3
  1664. Data 1
  1665. currentSpot:to
  1666. currentSpot
  1667. dataPath
  1668. ChartData
  1669. PathToChart
  1670. Chart
  1671. Data 1
  1672. Chart 1
  1673. value
  1674. Data 1
  1675. Chart 2
  1676. value
  1677. Data 2
  1678. Chart 3
  1679. value
  1680. Data 3
  1681. currentValue
  1682. currentSpot:to
  1683. currentSpot
  1684. dataPath
  1685. DocumentData
  1686. PathToDocs
  1687. Data 1
  1688. Doc 1
  1689. Doc 2
  1690. Doc 3
  1691. currentValue
  1692. currentSpot:to
  1693. currentSpot
  1694. dataPath
  1695. o(qspinTape
  1696. MainFrame
  1697. flashLights
  1698. MainFrame
  1699. Table of Contents
  1700. Sections3
  1701.     What is a DLL?
  1702.     Windows DLL routines
  1703.     Example:  Window controller
  1704. Sections2
  1705.     What is DDE?
  1706.     DDE & application integration
  1707.     Example:  ToolBook
  1708.     Example:  Program Manager
  1709. Sections1
  1710.     Purpose of this book
  1711.     How to read this book
  1712.     Purpose of this book
  1713.     How to read this bookple:  Window controller    Example:  Program Manageragerollererase
  1714.     ToolBook as a database front end
  1715.     Application Integrationructed record fields
  1716. *    Obstructed fields and scrolling
  1717. *    The drawTextDirect property
  1718. *    Metafiles
  1719. *    User interface conventions
  1720. *    General page tips
  1721. Introduction librariesn
  1722. Application Integration of Contentss
  1723.     Introduction
  1724.     Dynamic Data Exchange
  1725.     Dynamic link librariessssne ToolBook Differenceiggie at home
  1726.     Designing for speed
  1727.     Design examplesspeed
  1728.     background and direct draw
  1729.     Design examples
  1730. -- Hide 
  1731. help information 
  1732. clicked.
  1733. default
  1734. buttonDoubleClick
  1735. buttonDoubleClick
  1736. default
  1737. Instructions:
  1738. Click a chapter name on the left to see the chapter's sections on the right.
  1739. Double-click a chapter name to go to the beginning of the chapter.
  1740. Double-click a section name on the right to go directly to the section.
  1741. 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.
  1742. Click this text to make it disappear.r..e it disappear..
  1743. Table of Contents
  1744. Application Integration Book
  1745.  1991 Asymetrix Corporation 
  1746. All rights reserved.
  1747. Asymetrix Application Integration Book team:
  1748. Laurel McComber                   Harriet Landrum
  1749. Tom Arnold                             Nanette Wright
  1750. Carol Buchmiller                     Brad Gaub
  1751. Jeff Day
  1752. Special thanks to:
  1753. Bob Galluppp
  1754. Table of Contents
  1755. -- Go 
  1756. the Table 
  1757. Contents 
  1758. buttonUp
  1759. buttonUp
  1760. What is DDE?
  1761. Exchange
  1762. 4systemSpot,ShowExample
  1763. xTRUE
  1764. "Data"
  1765. a + 1) 
  1766. m"Path")/2)
  1767. currentSpot 
  1768. "Receive 2" 
  1769. "Send 1"
  1770. "2" + 1) 
  1771.  + 1) 
  1772. 0.15 
  1773. Receive 2
  1774. Send 1
  1775. Send 2
  1776. Send 2
  1777. Send 2
  1778. Send 2
  1779. Receive 1
  1780. Send 2
  1781. Send 1
  1782. Send 1
  1783. Send 1
  1784. Send 1
  1785. 333333
  1786. currentSpot
  1787. systemSpot
  1788. ShowExample
  1789. sectionNumber
  1790. startSection
  1791. What is DDE?
  1792. Dynamic Data Exchange
  1793. Windows Dynamic Data Exchange (DDE) is a communication protocol that defines how two Windows applications interoperate.
  1794. DDE provides Windows applications--including ToolBook--with a mechanism to get data from and give data to other applications and to execute commands...lications to execute commands.her applications to execute commands.
  1795. The power of DDE is that it can be used as a means to integrate Windows applications.  Windows applications can use features in other Windows applications by communicating with those applications.  DDE is used to communicate between two or more instances of ToolBook, providing a method to link several ToolBook instances together into a single integrated application.
  1796. Click the right arrow.
  1797.     :PHYSSIZE
  1798. :PHYSSIZE
  1799. Receive:
  1800. Receive 2
  1801. Apples
  1802. Oranges
  1803. Pears
  1804. Grapes
  1805. Peaches
  1806. Send:ve:
  1807. Send 2
  1808. Horses
  1809. Birds
  1810. Receive:
  1811. Receive 1
  1812. Horses
  1813. Birds
  1814. Send:ve:
  1815. Send 1
  1816. Apples
  1817. Oranges
  1818. Pears
  1819. Grapes
  1820. Peaches
  1821. ToolBook Application
  1822. Windows Application
  1823. Click Show DDE Example to see example.
  1824. Or click the right arrow to continueeeeeee.
  1825. 4ShowExample
  1826.  DDE 
  1827. "Stop 
  1828. FALSE
  1829. buttonUp
  1830. buttonUp
  1831. Show DDE Example
  1832. Stop DDE Example
  1833. Show DDE Example
  1834. ShowExample
  1835. Show DDE Example
  1836. Chapter Head
  1837. -- If 
  1838. moved, 
  1839. a user-defined property, home, 
  1840. -- the 
  1841. graphic covering 
  1842. "Arrow" 
  1843. -- When 
  1844. Fmouse 
  1845. pressed, 
  1846. B"pushButton" 
  1847. released, 
  1848. w. Finally, 
  1849. -- Move 
  1850. -- depending on 
  1851. parameter, x, which can be 
  1852. H15,15
  1853. buttonDown
  1854. moved
  1855. buttonUp
  1856. press
  1857. moved
  1858. Arrow
  1859. buttonDown
  1860. pushButton
  1861. press
  1862. buttonUp
  1863. press
  1864. press
  1865. Arrow
  1866. pushButton
  1867. 2291,4043
  1868. pushButton
  1869.      
  1870. Arrow
  1871. Title
  1872. Table of Contents
  1873. -- Go 
  1874. the Table 
  1875. Contents 
  1876. buttonUp
  1877. buttonUp
  1878. Table of Contents
  1879. Click the right arrow to continue.rrrrrrrrr
  1880. previous
  1881. -- If 
  1882. moved, 
  1883. a user-defined property, home, 
  1884. -- the 
  1885. graphic covering 
  1886. "Arrow" 
  1887. -- When 
  1888. Fmouse 
  1889. pressed, 
  1890. B"pushButton" 
  1891. released, 
  1892. w. Finally, 
  1893. Previous
  1894. -- Move 
  1895. -- depending on 
  1896. parameter, x, which can be 
  1897. H15,15
  1898. buttonDown
  1899. moved
  1900. buttonUp
  1901. press
  1902. moved
  1903. Arrow
  1904. buttonDown
  1905. pushButton
  1906. press
  1907. buttonUp
  1908. press
  1909. Previous
  1910. press
  1911. Arrow
  1912. pushButton
  1913. 1917,4043
  1914. pushButton
  1915.      
  1916. Arrow
  1917. Topic
  1918. 4s_Chapters
  1919. sectionNumber 
  1920. 3 Name" 
  1921.             strip(
  1922. enterPage
  1923. enterPage
  1924. sectionNumber
  1925. Chapter Name
  1926. strip
  1927. s_Chapters
  1928. Chapter Name
  1929. Title
  1930. getLine loc
  1931. getLine
  1932. getLine
  1933. textFromPoint
  1934. -- If 
  1935. moved, 
  1936. a user-defined property, home, 
  1937. -- the 
  1938. graphic covering 
  1939. "Arrow" 
  1940. -- When 
  1941. Fmouse 
  1942. pressed, 
  1943. oenabled 
  1944. B"pushButton" 
  1945. released, 
  1946. w. Finally, 
  1947. -- Move 
  1948. -- depending on 
  1949. parameter, x, which can be 
  1950. H15,15
  1951. logVal
  1952. excludeTab 
  1953. 0,50,0
  1954. buttonDown
  1955. moved
  1956. buttonUp
  1957. enabled
  1958. press
  1959. enabled
  1960. moved
  1961. Arrow
  1962. buttonDown
  1963. enabled
  1964. pushButton
  1965. press
  1966. buttonUp
  1967. enabled
  1968. press
  1969. press
  1970. Arrow
  1971. pushButton
  1972. enabled
  1973. pushButton
  1974. pushButton
  1975. Arrow
  1976. 0,0,0
  1977. Arrow
  1978. logVal
  1979. enabled
  1980. pushButton
  1981.     home
  1982. 2291,4043
  1983. pushButton
  1984.      
  1985. Arrow
  1986. Table of Contents
  1987. -- Go 
  1988. the Table 
  1989. Contents 
  1990. buttonUp
  1991. buttonUp
  1992. Table of Contents
  1993. previous
  1994. -- If 
  1995. moved, 
  1996. a user-defined property, home, 
  1997. -- the 
  1998. graphic covering 
  1999. "Arrow" 
  2000. -- When 
  2001. Fmouse 
  2002. pressed, 
  2003. B"pushButton" 
  2004. released, 
  2005. w. Finally, 
  2006. Previous
  2007. -- Move 
  2008. -- depending on 
  2009. parameter, x, which can be 
  2010. H15,15
  2011. buttonDown
  2012. moved
  2013. buttonUp
  2014. press
  2015. moved
  2016. Arrow
  2017. buttonDown
  2018. pushButton
  2019. press
  2020. buttonUp
  2021. press
  2022. Previous
  2023. press
  2024. Arrow
  2025. pushButton
  2026. 1917,4043
  2027. pushButton
  2028.      
  2029. Arrow
  2030. Dynamic Data Exchange
  2031. startSection
  2032. sectionNumber
  2033. Title
  2034. Dynamic Data Exchange
  2035. Topic
  2036. arning ToolBook
  2037. enScript Exercises
  2038. s Rmn
  2039. 3^D|D|
  2040. -- a 
  2041. renumbering a 
  2042. n > 0 
  2043. enterBook
  2044. renumber
  2045. enterBook
  2046. sizeToPage
  2047. renumber
  2048. :REPORTDATA
  2049. :CONDITIONDATA
  2050. Text of RecordField "Instructions" is "null" As Text
  2051. Text of RecordField "Instructions" is null
  2052. defaultSize
  2053. 9315,5745
  2054. plication Integration
  2055. System
  2056. y`D|D|
  2057. `D|D|
  2058. gD|D|E
  2059. gD|D|
  2060. ]D|D|
  2061. `D|D|
  2062. fD|D|E
  2063. fD|D|E
  2064. fD|D|E
  2065. `D|D|
  2066. rminal
  2067. `D|D|
  2068. `D|D|
  2069. `D|D|
  2070. fault
  2071. 9_D|D|
  2072. pageNumber is 103 or pageNumber is 104
  2073. pageNumber is 103 or pageNumber is 104
  2074. pageNumber is 103 or pageNumber is 104
  2075. pageobjs
  2076. ]D|D|
  2077. :PRINTLAYOUT
  2078. `D|D|
  2079. u`D|D|
  2080. `D|D|
  2081. aB|B|
  2082. Title
  2083. q\D|D|
  2084. \D|D|
  2085. gD|D|E
  2086. gD|D|
  2087. gD|D|
  2088. About Application Integration
  2089. fD|D|%
  2090. fD|D|%
  2091. QuikTour.v
  2092. ~pUnable to return to the Quick Tour.
  2093. launchedFrom
  2094. s_launchedFrom
  2095. DDE & Application Integration
  2096. sectionNumber
  2097. startSection
  2098. DDE and application integration
  2099. Dynamic Data Exchange
  2100. With DDE and ToolBook, you can fully integrate Windows applications that also support DDE.  
  2101. ToolBook can be used to  execute commands in other Windows applications, including menu commands and macros that allow for the passage of data between applications..
  2102. Click the right arrow.
  2103. :PHYSSIZE
  2104. data 1
  2105. data 2
  2106. data 3
  2107. Data Retrievalonn
  2108. GetData
  2109. buttonUp
  2110. buttonUp
  2111. *GetData
  2112. Get Data
  2113. ChartData
  2114. buttonUp
  2115. buttonUp
  2116. ChartData
  2117. Chart
  2118. DocumentData
  2119. buttonUp
  2120. buttonUp
  2121. DocumentData
  2122. Document
  2123. MainFrame
  2124. spinTape
  2125. "Tapes" 
  2126. flashLights
  2127. spinTape
  2128. flashLights
  2129. spinTape
  2130. Tapes
  2131. Tapes
  2132. Tapes
  2133. Tapes
  2134. Tapes
  2135. Tapes
  2136. flashLights
  2137. Lights
  2138. Lights
  2139. Lights
  2140. Lights
  2141. Lights
  2142. Lights
  2143. Lights
  2144. Lights
  2145. tapes
  2146. lights
  2147. PathToData
  2148. PathToDocs
  2149. PathToChart
  2150. Click these buttons to see example of DDE in use.
  2151. Click the right arrow to continue.
  2152. Click the right arrow to continue.t page.hapter.in the next chapter.ext chapter....
  2153. chart
  2154. :PHYSSIZE
  2155. chart
  2156. Chart
  2157. chart 1
  2158. value 
  2159.     -- Original 
  2160. =2715,2460,5430,2565
  2161. =+ 2715/600*
  2162. value
  2163. value
  2164. chart 2
  2165. value 
  2166.     -- Original 
  2167. =2715,2460,5430,2565
  2168. =+ 2715/600*
  2169. value
  2170. value
  2171. chart 3
  2172. value 
  2173.     -- Original 
  2174. =2715,2460,5430,2565
  2175. =+ 2715/600*
  2176. value
  2177. value
  2178. Chartingplication
  2179. :PHYSSIZE
  2180. Sales for November were the following:
  2181.        East            Central          Westtt
  2182. Documentation Application
  2183. doc 1
  2184. doc 2
  2185. doc 3
  2186. Dynamic Link Libraries
  2187. DLLs & Application Integration
  2188. DDE & Application Integration
  2189. theBounds 
  2190. syslockScreen 
  2191. x1,y1,x2,y2
  2192. x2-100,y2-100,x2,y2
  2193. FALSE
  2194. {location
  2195. "resize"
  2196. ostate 
  2197. resizebox 
  2198. windowbox 
  2199. (x - 
  2200. odx),(y - 
  2201. (x - 
  2202. odx),(y - 
  2203. (x - 
  2204. odx),(y - 
  2205. SizeWinFromTBGroup
  2206. (x - 
  2207. odx),(y - 
  2208. MoveWinFromTBGroup
  2209. uttonDown
  2210. buttonStillDown
  2211. buttonDown
  2212. buttonUp
  2213. theBounds
  2214. theBounds
  2215. buttonDown
  2216. resize
  2217. state
  2218. resize
  2219. window
  2220. state
  2221. location
  2222. buttonStillDown
  2223. state
  2224. resize
  2225. state
  2226. windowbox
  2227. resizebox
  2228. location
  2229. buttonUp
  2230. state
  2231. resize
  2232. 2YSizeWinFromTBGroup
  2233. state
  2234. BUMoveWinFromTBGroup
  2235. state
  2236. windowbox
  2237. resizebox
  2238. location
  2239. -- Table 
  2240. Contents - 
  2241. -- The 
  2242. may be entered 
  2243. 8. That 
  2244. 's section 
  2245. saved 
  2246. -- s_currentSection 
  2247. handler. 
  2248. used 
  2249. displayed.
  2250. -- There 
  2251. also a 
  2252. -- marks a completed 
  2253. chapter 
  2254. Hplacing 
  2255. -- asterisk beside its 
  2256. -- When entering 
  2257. (entry 
  2258. -- corresponding 
  2259. recorded 
  2260. 4s_didDoubleClick
  2261.     -- Clear 
  2262. }click flag
  2263.     -- Switch 
  2264. Reader level
  2265.     -- Highlight 
  2266. selectedTextLines 
  2267. J"Chapters" 
  2268. J"Sections" 
  2269. -- Place 
  2270. front 
  2271. identified 
  2272. x. If 
  2273. sections 
  2274. , place 
  2275. markSection x
  2276. chapterNum 
  2277. sectionNum 
  2278.         -- Get 
  2279. list 
  2280.         -- 
  2281. propertyName 
  2282. commandLine 
  2283. " && 
  2284. 5&& "
  2285.         -- 
  2286. fore 
  2287. " && 
  2288.         -- If 
  2289. chapterDone 
  2290. chapters 
  2291. x"*" 
  2292. -- Remove All asterisks
  2293. ClearAllSections
  2294. ChapterNum 
  2295. " && 
  2296. SectionList 
  2297. SectionNum 
  2298. " && 
  2299. terPage
  2300. markSection
  2301. enterPage
  2302. ClearAllSections
  2303. enterPage
  2304. reader
  2305. Chapters
  2306. buttonUp
  2307. Chapters
  2308. Sections
  2309. Sections
  2310. currentSection
  2311. s_didDoubleClick
  2312. s_currentSection
  2313. markSection
  2314. Sections
  2315. of page "Table of Contents"
  2316. of page "Table of Contents" to it
  2317. Chapters
  2318. Table of Contents
  2319. chapters
  2320. chapterDone
  2321. commandLine
  2322. propertyName
  2323. sectionNum
  2324. chapterNum
  2325. ClearAllSections
  2326. Chapters
  2327. Table of Contents
  2328. Chapters
  2329. Table of Contents
  2330. Chapters
  2331. Table of Contents
  2332. Sections
  2333. of page "Table of Contents"
  2334. sectionNum
  2335. of page "Table of Contents" to SectionList
  2336. SectionNum:to1
  2337. SectionNum
  2338. SectionList
  2339. commandLine
  2340. propertyName
  2341. ChapterNum:to
  2342. ChapterNum
  2343. Chapter Head
  2344. Introduction
  2345. Introduction
  2346. startSection
  2347. sectionNumber
  2348.     linkDLL "user"
  2349.         INT
  2350. GetWindowText(WORD,STRING,
  2351. ShowWindow(
  2352. GetWindowRect(
  2353. DPOINTER)
  2354. MoveWindow(
  2355. SetWindowPos(
  2356. IsIconic(
  2357. IsZoomed(
  2358. IsWindowVisible(
  2359. SetActiveWindow(
  2360. GetSystemMetrics(
  2361. kernel"
  2362. GlobalAlloc(
  2363. DWORD)
  2364.  GlobalLock(
  2365. GlobalUnlock(
  2366. GlobalFree(
  2367. IsValidAppWindow hWnd
  2368. -- This will 
  2369. modify 
  2370. behavior simply change 
  2371. ^returnSelf 
  2372. FALSE
  2373. GW_OWNER 
  2374. Owner 
  2375. AND \
  2376.             (WindowTitle(
  2377. NextWindow 
  2378. GW_HWNDFIRST 
  2379. GW_HWNDNEXT 
  2380. "First"
  2381. "No More Windows" 
  2382. returnString 
  2383. returnVal 
  2384. T,45)
  2385. SetWindowPosition 
  2386. WinSize 
  2387. WindowSize(
  2388. ,x,y,xS,yS,1)
  2389. SetWindowSize 
  2390. WinPosition 
  2391. ,xP,yP,x,y,1)
  2392. returnValue 
  2393. hRect
  2394. 0,10)
  2395. lpRect 
  2396. pointerINT(0,
  2397. GlobalUnLock(
  2398. x&","&y
  2399. 0,10)
  2400. (x2-x1)&","&(y2-y1)
  2401. ShowInfo
  2402. 4CurrentApp
  2403. "title"
  2404. currentApp)
  2405.  Direction
  2406. direction 
  2407. y - 10
  2408. "Down"
  2409. y + 10
  2410. "Left"
  2411. x - 10
  2412. "Right"
  2413. x + 10
  2414. ,x,y)
  2415. Resize 
  2416. y - 10
  2417. y + 10
  2418. x - 10
  2419. x + 10
  2420. ,x,y)
  2421. DrawWindowImage 
  2422. WndPos
  2423. TBFromWin(
  2424. WndSize 
  2425. "Screen")
  2426. k+ x1
  2427. WndIsIconic 
  2428. WndIsZoomed 
  2429. x0 ) 
  2430. theBounds 
  2431. x1&","&y1&","&x2&","&y2
  2432. ScreenDX
  2433. SM_CXSCREEN 
  2434. ScreenDY
  2435. SM_CYSCREEN 
  2436.  coordinates
  2437. Winx 
  2438. Winy 
  2439. WinDx 
  2440. WinDy 
  2441. RatioX 
  2442. RatioY 
  2443. &","&
  2444. WinFromTB 
  2445. &","&
  2446. MinimizeIt
  2447. showInfo
  2448. MaximizeIt
  2449. syswindowHandle)
  2450. RestoreIt
  2451. WindowMoved
  2452. fillScreenBox
  2453. WindowSized
  2454. fillApps
  2455. 4windowHandles,
  2456. currentWindow 
  2457. "AppList" 
  2458. "No Applications"
  2459. firstApp 
  2460. x"No 
  2461. CRLF&
  2462. selectedtextlines 
  2463. ChooseApp AppNumber
  2464. ,WindowHandles
  2465. SizeWinFromTBGroup
  2466. ^" - 
  2467. WinCoor 
  2468. n(TBx&","&TBy)
  2469. MoveWinFromTBGroup
  2470. nimizeIt
  2471. MaximizeIt
  2472. Resize
  2473. RestoreIt
  2474. ShowInfo
  2475. WindowMoved
  2476. WindowSized
  2477. DrawWindowImage
  2478. fillApps
  2479. ChooseApp
  2480. SizeWinFromTBGroup
  2481. MinimizeIt
  2482. MoveWinFromTBGroup
  2483. alidAppWindow
  2484. SetWindowPosition
  2485. SetWindowSize
  2486. WindowPosition
  2487. NextWindow
  2488. WindowSize
  2489. ScreenDX
  2490. WindowTitle
  2491. ScreenDY
  2492. TBFromWin
  2493. IsValidAppWindow
  2494. WinFromTB
  2495. GetWindowText
  2496. GetWindow
  2497. ShowWindow
  2498. GetWindowRect
  2499. MoveWindow
  2500. SetWindowPos
  2501. IsIconic
  2502. IsZoomed
  2503. IsWindowVisible
  2504. SetActiveWindow
  2505. GetSystemMetrics
  2506. kernel
  2507. GlobalAlloc
  2508. GlobalLock
  2509. GlobalUnlock
  2510. GlobalFree
  2511. IsValidAppWindow
  2512. GetWindow
  2513. WindowTitle
  2514. IsWindowVisible
  2515. Owner
  2516. GW_OWNER
  2517. returnSelf
  2518. NextWindow
  2519. First
  2520. GetWindow
  2521. IsValidAppWindow
  2522. GetWindow
  2523. No More Windows
  2524. IsValidAppWindow
  2525. GetWindow
  2526. No More Windows
  2527. IsValidAppWindow
  2528. GW_HWNDNEXT
  2529. GW_HWNDFIRST
  2530. WindowTitle
  2531.                                              
  2532. No More Windows
  2533. GetWindowText
  2534. returnVal
  2535. returnString
  2536. SetWindowPosition
  2537. WindowSize
  2538. MoveWindow
  2539. WinSize
  2540. SetWindowSize
  2541. WindowPosition
  2542. MoveWindow
  2543. WinPosition
  2544. WindowPosition
  2545. GlobalAlloc
  2546. GlobalLock
  2547. GetWindowRect
  2548. GlobalUnLock
  2549. GlobalFree
  2550. lpRect
  2551. hRect
  2552. returnValue
  2553. WindowSize
  2554. GlobalAlloc
  2555. GlobalLock
  2556. GetWindowRect
  2557. GlobalUnLock
  2558. GlobalFree
  2559. lpRect
  2560. hRect
  2561. returnValue
  2562. ShowInfo
  2563. title
  2564. currentApp
  2565. WindowTitle
  2566. position
  2567. currentApp
  2568. WindowPosition
  2569. currentApp
  2570. WindowSize
  2571. CurrentApp
  2572. Position
  2573. Position
  2574. direction
  2575. direction
  2576. direction
  2577. direction
  2578. Right
  2579. SetWindowPosition
  2580. uxShowInfo
  2581. CurrentApp
  2582. Direction
  2583. Resize
  2584. direction
  2585. direction
  2586. direction
  2587. direction
  2588. Right
  2589. SetWindowSize
  2590. uxShowInfo
  2591. CurrentApp
  2592. Direction
  2593. DrawWindowImage
  2594. Window
  2595. Window
  2596. WindowPosition
  2597. TBFromWin
  2598. WindowSize
  2599. TBFromWin
  2600. Screen
  2601. Screen
  2602. IsIconic
  2603. IsZoomed
  2604. Window
  2605. Window
  2606. window
  2607. theBounds
  2608. WndIsZoomed
  2609. WndIsIconic
  2610. WndSize
  2611. WndPos
  2612. ScreenDX
  2613. GetSystemMetrics
  2614. SM_CXSCREEN
  2615. ScreenDY
  2616. GetSystemMetrics
  2617. SM_CYSCREEN
  2618. TBFromWin
  2619. ScreenDX
  2620. ScreenDY
  2621. Screen
  2622. Screen
  2623. Screen
  2624. Screen
  2625. RatioY
  2626. RatioX
  2627. WinDy
  2628. WinDx
  2629. coordinates
  2630. WinFromTB
  2631. ScreenDX
  2632. ScreenDY
  2633. Screen
  2634. Screen
  2635. Screen
  2636. Screen
  2637. RatioY
  2638. RatioX
  2639. WinDy
  2640. WinDx
  2641. coordinates
  2642. MinimizeIt
  2643. ShowWindow
  2644. DrawWindowImage
  2645. currentApp
  2646. uxshowInfo
  2647. CurrentApp
  2648. MaximizeIt
  2649. ShowWindow
  2650. DrawWindowImage
  2651. currentApp
  2652. uxshowInfo
  2653. SetActiveWindow
  2654. CurrentApp
  2655. RestoreIt
  2656. ShowWindow
  2657. ShowWindow
  2658. DrawWindowImage
  2659. currentApp
  2660. uxshowInfo
  2661. SetActiveWindow
  2662. SetActiveWindow
  2663. CurrentApp
  2664. WindowMoved
  2665. fHfillScreenBox
  2666. WindowSized
  2667. fHfillScreenBox
  2668. fillApps
  2669. First
  2670. NextWindow
  2671. No More Windows
  2672. AppList
  2673. No Applications
  2674. DrawWindowImage
  2675. DrawWindowImage
  2676. WindowTitle
  2677. AppList
  2678. NextWindow
  2679. No More Windows
  2680. WindowTitle
  2681. AppList
  2682. NextWindow
  2683. No More Windows
  2684. AppList
  2685. uxShowInfo
  2686. firstApp
  2687. currentWindow
  2688. windowHandles
  2689. currentApp
  2690. ChooseApp
  2691. DrawWindowImage
  2692. uxShowInfo
  2693. currentApp
  2694. WindowHandles
  2695. AppNumber
  2696. SizeWinFromTBGroup
  2697. Window
  2698. Window
  2699. Window
  2700. Window
  2701. WinFromTB
  2702. SetWindowSize
  2703. uxShowInfo
  2704. WinCoor
  2705. CurrentApp
  2706. MoveWinFromTBGroup
  2707. Window
  2708. Screen
  2709. Window
  2710. Screen
  2711. WinFromTB
  2712. SetWindowPosition
  2713. IsIconic
  2714. ShowWindow
  2715. ShowWindow
  2716. uxShowInfo
  2717. WinCoor
  2718. CurrentApp
  2719. Windows DLL Routines
  2720. sectionNumber
  2721. startSection
  2722. Windows DLL routiness
  2723. Dynamic link librariesn
  2724. You can link to the Windows system DLLs to gain powerful memory and window management functions.  For example, the Shuffle Windows demonstrated on the Example:  ToolBook page uses both DDE and a Windows DLL.
  2725. For more information on Windows DLLs and other DLLs, see the Prototyping application. You can display it from the Application Sampler book..functions. For more information on Window's DLLs and DLLs in general, see the Prototyping application.
  2726. Memory management
  2727. GlobalAlloc
  2728. GlobalLock
  2729. GlobalUnlock
  2730. GlobalFree...
  2731. Window management
  2732. BringWindowToTop
  2733. MoveWindow
  2734. ShowWindow..........
  2735. Click the right arrow to continue.t page.hapter.in the next chapter.ext chapter....
  2736. What is DDE?
  2737. Dynamic Link Libraries
  2738. startSection
  2739. Dynamic link libraries
  2740. sectionNumber
  2741. Example:Window Controller
  2742. Example:  Window Controller
  2743. integrat.ico
  2744. wwwwpwwwww
  2745. wwwwpwwwww
  2746. DDDDp
  2747. DDDDp
  2748.