home *** CD-ROM | disk | FTP | other *** search
/ Manókaland / manokaland.iso / manoka / printwnd.sbk (.txt) < prev    next >
Asymetrix ToolBook File  |  1996-10-13  |  68KB  |  1,623 lines

  1. System
  2. Arial
  3. Arial
  4. Print Window
  5. Dialog
  6. Page 1
  7. Print Window
  8. prnXRes
  9. prnYRes
  10. scrnXRes
  11. scrnYRes
  12. BREAKS
  13. C&File
  14. &Open...    Ctrl+O
  15. &Save    Ctrl+S
  16. Save &As...
  17. saveas
  18. &Import...
  19. import
  20. &Export...
  21. export
  22. Print Set&up...
  23. printsetup
  24. &Print Pages...    Ctrl+P
  25. printpages
  26. Prin&t Report...
  27. printreport
  28. Send &Mail...
  29. sendmail
  30. &Run...
  31. E&xit    Alt+F4
  32. &Edit
  33. &Undo    Ctrl+Z
  34. Cu&t    Ctrl+X
  35. &Copy    Ctrl+C
  36. &Paste    Ctrl+V
  37. paste
  38. C&lear    Del
  39. clear
  40. Select &All    Shift+F9
  41. selectall
  42. Select Pa&ge    Shift+F12
  43. selectpage
  44. &Size to Page    F11
  45. sizetopage
  46. F&ind...    F5
  47. search
  48. Re&place...
  49. replace
  50. Aut&hor    F3
  51. author
  52. &Text
  53. &Character...    F6
  54. character
  55. &Paragraph...    F7
  56. paragraph
  57. &Regular    Ctrl+Space
  58. regular
  59. &Bold    Ctrl+B
  60. &Italic    Ctrl+I
  61. italic
  62. &Underline    Ctrl+U
  63. underline
  64. Stri&keout    Ctrl+K
  65. strikeout
  66. Superscrip&t/Subscript
  67. super/subscript
  68. &Normal Script
  69. normalscript
  70. Su&bscript    Ctrl+L
  71. subscript
  72. Su&perscript    Ctrl+Shift+L
  73. superscript
  74. &Show Hotwords    F9
  75. showhotwords
  76. &Page
  77. &Next    Alt+Right
  78. &Previous    Alt+Left
  79. previous
  80. &First    Alt+Up
  81. first
  82. &Last    Alt+Down
  83. &Back    Shift+F2
  84. &History...    Ctrl+F2
  85. history
  86. N&ew Page    Ctrl+N
  87. newpage
  88. &Help
  89. &Contents    F1
  90. contents
  91. Status &Bar    F12
  92. statusbar
  93.  1993,1994. Asymetrix Corporation. All Rights Reserved.            *
  94. 9gives you permission 
  95. e, revise, 
  96. reuse the        *
  97. --*    individual 
  98. scripts 
  99. your own        *
  100. --*    applications.
  101. You may 
  102. P entire 
  103. --*    substantial part 
  104. redistribution 
  105. i product.        *
  106. retains 
  107.  copyright on 
  108.  original elements 
  109.  . Include 
  110.  notice:
  111. --* "Portions 
  112.  1993, 1994. 
  113. they contain 
  114. copied 
  115. --*    Original Author: Ned Baker
  116. --*    Updated By: Michael Florence
  117. linksysbook
  118. linkDlls
  119. initMenus
  120. printWindow 
  121.     LOCAL STACK winList, nameList, 
  122. , handleList
  123. status
  124.     whatWin = 
  125. "dialog" 
  126.     LOGPIXELSX = 88
  127.     LOGPIXELSY = 90
  128. device metrics
  129.     driverInfo = getWinIniVar("windows", "
  130. *NULL
  131. "There 
  132. no printer attached."
  133.     deviceName = 
  134.     deviceFile = 
  135.     devicePort = 
  136.     hDC = createIC(
  137.     prnXRes 
  138. getDeviceCaps(
  139.     prnYRes 
  140. deleteDC(
  141. h"DISPLAY",
  142.     scrnXRes 
  143.     scrnYRes 
  144.  = sysopenwindows
  145. windowhandle 
  146.  = getViewerName(
  147. media 
  148. running multimedia toolbook
  149. sysOpenMedia <> "
  150.         mediaList = 
  151. whatClip = 
  152. mmDeviceHandle 
  153.     dropdownitems 
  154. combobox "openWindows" 
  155. currentpage 
  156. listtotextline(
  157. parentwindow 
  158. %modal
  159. isOpen 
  160. prnWindow = 
  161. hWnd = windowHandle 
  162.             printArea = 
  163. area"
  164.             printMode = 
  165. mode"
  166.             X = 
  167.             Y = 
  168.             toTop = 
  169.             update = 
  170.             statusB = 
  171. B"statusBar"
  172.         close 
  173.         oldSys = sysSuspendMessages
  174.  = TRUE
  175. oldStatus = 
  176. statusbar
  177.         -- 
  178. pallettes
  179. NOT sysRuntime
  180. lineEndsPalette 
  181. toolbar 
  182. bringWindowToTop(
  183. hWnd1 = 
  184. InvalidateRect(
  185. ",0,0)
  186. updateWindow(
  187. yield()
  188.  = doPrintWindow(
  189. , X, Y)
  190.  <> 0
  191.         Request "An error occurred during printing:"&CRLF&DIBError(
  192. -- * 
  193. -- * Description:
  194. -- * This function prints the specified 
  195. default
  196. -- * 
  197. -- * Parameters:
  198. -- * WORD 
  199. - Specifies 
  200. emust
  201. xbe iconic 
  202.  be topmost on 
  203. display.
  204. -- * 
  205. `fPrintArea - 
  206. Must be
  207. :        1 (corresponds 
  208. PW_ALL)
  209. PW_CLIENT)
  210. -- * 
  211. fPrintOpt
  212. z options.
  213. PW_BESTFIT)
  214. PW_STRETCHTOPAGE)
  215. PW_SCALE)
  216. -- * 
  217. wXScale, wYScale - X 
  218. Y scaling factors 
  219.  parameter.
  220. If 1 
  221.  are 
  222. these two parameters (
  223. ) should be 0 (zero).
  224. -- * STRING szJobName - 
  225. that 
  226. would like 
  227. job (
  228. pshows up 
  229.  Manager 
  230. %well 
  231. "Now Printing..." 
  232.  box). (Still working on implementing 
  233. version does 
  234. xhave 
  235. -- * Return Value: 0 
  236. successful, a 
  237. z> 0 corresponding 
  238. -- *            
  239. , wPrintArea, wPrintOpt, 
  240. ErrNo
  241. _ < 1 
  242. h > 2
  243.  < 1 
  244. hDib 
  245. CopyWindowToDIB (
  246. != 0 
  247. wReturn 
  248. PrintDIB (
  249. DestroyDIB (
  250. -- * 
  251. -- * 
  252. -- * 
  253. - specifies 
  254. -- * 
  255. independent bitmap
  256. -- * 
  257. -- * 
  258. - identifies 
  259. -- * 
  260. -- * 
  261. copies 
  262. -- * 
  263. hRectWnd 
  264. GlobalAlloc (66, 8)
  265. lpRectWnd 
  266. GlobalLock (
  267. GetWindowRect (
  268. CopyScreenToDIB (
  269. = 2        -- 
  270. client 
  271. GetClientRect (
  272. .(0, 
  273. .(2, 
  274. .(4, 
  275. .(6, 
  276. clientRect 
  277. ScreenFromClient (
  278. , x1 & "," & y1 & "," & x2 & "," & y2)
  279. .(0, 
  280. .(2, 
  281. .(4, 
  282. .(6, 
  283. GlobalUnlock (
  284. GlobalFree (
  285. CopyWindowToDib
  286. -- * 
  287. -- * 
  288. -- * POINTER 
  289. -- * 
  290. -- * 
  291. -- * 
  292. -- * 
  293. -- * 
  294. hBitmap 
  295. CopyScreenToBitmap (
  296. #= 0 
  297. hPalette 
  298. GetSystemPalette ()
  299. BitmapToDIB (
  300. DeleteObject (
  301. -- * 
  302. -- * 
  303. -- * None
  304. -- * 
  305. -- * 
  306. 4palette
  307. -- * 
  308. -- * 
  309. returns a 
  310. . which represents 
  311. -- * 
  312. 4RGB values 
  313. logical 
  314. -- * 
  315. GetSystemPaletteEntries 
  316.     -- Find out how many 
  317.  entries we want.
  318. GetDC (0)
  319. nColors 
  320. PalEntriesOnDevice (hDC)
  321.     -- Allocate memory 
  322.     -- sizeof(LOGPALETTE) = 64
  323. PALETTEENTRY) = 32
  324. hLogPal 
  325. 64 + (
  326. * 32))
  327.     -- If we didn't 
  328. ?= 0 
  329. ReleaseDC (0, 
  330.     -- Get a 
  331. lpLogPal 
  332.     -- Fill 
  333. palVersion 
  334. palNumEntries fields 
  335.  structure.
  336. x300 (dec = 768) 
  337.  3.0 
  338. later.
  339. 2(0, 
  340. , 768)
  341. 2(2, 
  342. palPalEntry 
  343. tempPointer 
  344. lpPalPalEntry 
  345. (hDC, 0, 
  346.     -- Create 
  347. Once 
  348. done we 
  349. 't need 
  350.     -- so free 
  351. CreatePalette (
  352.     -- Do 
  353. clean up.
  354. -- * 
  355. -- * 
  356. -- * 
  357. context
  358. -- * 
  359. -- * INT
  360. -- * 
  361. -- * 
  362. gets 
  363.     -- SIZEPALETTE = 104
  364. GetDeviceCaps (
  365.     -- For non-
  366.  devices, we will 
  367.  no. 
  368.     -- colors 
  369.         -- NUMCOLORS = 24
  370. -- * 
  371. -- * 
  372. -- * 
  373. -- * 
  374. -- * 
  375. -- * 
  376. -- * 
  377. -- * 
  378. IsRectEmpty (
  379. ) <> 0
  380. hScrDC 
  381. CreateDC ("
  382.  0, 0, 0)
  383. hMemDC 
  384. CreateCompatibleDC (
  385. .(0, 
  386. .(2, 
  387. .(4, 
  388. .(6, 
  389. screen resolution.
  390. xScrn 
  391. , 8)        -- HORZRES
  392. yScrn 
  393. , 10)        -- VERTRES
  394.     -- Make sure 
  395. nX < 0
  396. nY < 0
  397. nWidth 
  398. nHeight 
  399.  compatible 
  400. CreateCompatibleBitmap (
  401.     -- Select 
  402. hOldBitmap 
  403. SelectObject (
  404.     -- Bitblt 
  405. ]SRCCOPY 
  406.  0x00CC0020L = 13369376
  407. BitBlt (
  408. , 0, 0, 
  409. , nX, nY, 13369376)
  410.     -- Do 
  411. DeleteDC (
  412. -- * 
  413. -- * Purpose:
  414. Frees 
  415. associated 
  416. fa DIB
  417. -- * Returns:
  418. Nothing
  419. -- * 
  420. -- * 
  421. -- * 
  422. routine 
  423. actual 
  424. -- * 
  425. PrintBand() 
  426. 7(see below), 
  427. procedure drives the
  428. -- * 
  429.  operation.
  430. () has 
  431. code 
  432. ;banding
  433. -- * 
  434.  printers.
  435. can be distinguished 
  436. -- * 
  437. () API (
  438. -- * 
  439.  repeatedly call 
  440. NEXTBAND escape 
  441. -- * 
  442. supports 
  443. BANDINFO 
  444. -- * 
  445. used 
  446. determine whether 
  447.  "wants" 
  448. -- * graphics (
  449. ignore 
  450. -- * 
  451. -- * 
  452. -- * 
  453. be printed
  454. -- * 
  455. - tells 
  456. , OR 
  457. -- * 
  458. (integers) 
  459. p output 
  460. -- * 
  461. -- * 
  462. errors.h 
  463. description)
  464. -- * One 
  465. : ERR_INVALIDHANDLE
  466. ERR_LOCK
  467. ERR_SETABORTPROC
  468. ERR_STARTDOC
  469. ERR_NEWFRAME
  470. ERR_ENDDOC
  471. ERR_GETDC
  472. ERR_STRETCHDIBITS
  473. wErrorCode
  474.  validation.
  475. lpDIBHdr 
  476. bits.
  477. lpBits 
  478. FindDIBBits (
  479. hPrnDC 
  480. GetPrinterDC ()
  481. <> 0 
  482.         -- COLORONCOLOR = 3
  483. SetStretchBltMode (
  484. X, 3)
  485.         -- Determine 
  486.         -- 
  487. . fill 
  488.         -- 
  489. CalculatePrintRect)
  490. hPrintRect 
  491. lpPrintRect 
  492. .(0, 
  493.  * 100)
  494. .(2, 
  495. * 100)
  496. biWidth 
  497. /(4, 
  498. biHeight 
  499. /(8, 
  500.         -- Call Escape() 
  501.  (10) 
  502. strlenszJobName 
  503. StringEscape (
  504. , 10, 
  505. 0, 0)
  506.             -- Something went wrong. Do 
  507.         -- 
  508. BANDINFOSTRUCT.
  509. hBandInfo 
  510. lpBandInfo 
  511.         -- 
  512. initial 
  513. AStructure 
  514.         -- 
  515. "% we 
  516.         -- also 
  517. ! we 
  518. .(0, 
  519. , 1) 
  520. -- bGraphics
  521. .(2, 
  522. -- bText
  523. .(4, 
  524. .(0, 
  525. ))        -- bRectLeft
  526. .(6, 
  527. .(2, 
  528. ))        -- bRectTop
  529. .(8, 
  530. .(4, 
  531. ))        -- bRectRight
  532. .(10, 
  533. .(6, 
  534. ))    -- bRectBottom
  535.         -- 
  536. a rect 
  537.         -- 
  538. funtion 
  539.         -- Check 
  540. If we 
  541. z, loop through
  542.         -- each 
  543. , calling 
  544.         -- (
  545. supported) 
  546. Else,
  547.         -- 
  548. )clipping
  549.         -- 
  550.         -- 
  551.         -- QUERYESCSUPPORT = 8
  552.         -- 
  553. ) = 2
  554. hNEXTBAND 
  555. lpNEXTBAND 
  556. .(0, 
  557. PointerEscape (
  558. , 8, 2, 
  559. ?, 0)
  560. --            -- 
  561. --            -- 
  562.     = 24
  563. --            
  564. .(0, 
  565. , 24)
  566. --            
  567. bBandInfoDevice 
  568. , 8, 2, 
  569.         -- 
  570.         -- 
  571.     = 24
  572. .(0, 
  573. , 24)
  574. , 8, 2, 
  575. <> 0        
  576.             -- Do 
  577. (3), 
  578.             -- 
  579.  returned 
  580. Y% where we 
  581.             -- 
  582. exits 
  583. empty.
  584. c(DwordPointerEscape (
  585. , 3, 0, 0, 
  586. ) > 0) 
  587. ) = 0)
  588. -- Do 
  589. needed.
  590. PointerPointerEscape (
  591. , 24, 12, 
  592. -- Pass 
  593. -info flags 
  594. -- data 
  595. Note 
  596. pass 
  597. U" bandinfo
  598. -- stuff 
  599. above (i.e. 
  600. .(0, 
  601. .(2, 
  602.             -- 
  603. #whole 
  604. .(0, 
  605. .(0, 
  606. ))        -- 
  607. .(2, 
  608. .(2, 
  609. ))        -- 
  610. .(4, 
  611. .(4, 
  612. ))        -- 
  613. .(6, 
  614. .(6, 
  615. ))        -- 
  616. , 1, 1, 
  617.             -- Non-
  618.  (1).
  619. DwordEscape (
  620. , 1, 0, 0, 0)
  621.         -- End 
  622. Only 
  623.  (11) 
  624.         -- we did 
  625. xabort 
  626. , 11, 0, 0, 0)
  627.             -- We errored 
  628. , but don't 
  629. ,- we still
  630.             -- 
  631. z- box, 
  632.  instances, etc.
  633.         -- 
  634. -- * 
  635. -- * 
  636. U#a DC 
  637. ¤tly selected 
  638. -- * 
  639. . on 
  640. -- * History:
  641. GetWinIniVar ("
  642. printDevice 
  643. printDriver 
  644. printPort 
  645. hdcPrint 
  646. CreatePrinterDC (
  647. 7, 0)
  648. += 0 
  649. -- * 
  650. -- * Given 
  651. (DIB, 
  652. k, on the
  653. -- * 
  654. *(image 
  655. /coordinates).
  656. -- * 
  657. -- * 
  658. 1WORDs 
  659. specify 
  660. -- * Y directions, respectively.
  661. ', cxDIB, cyDIB
  662. information 
  663. cxPage 
  664. 8)    -- 
  665. pixels (
  666. cyPage 
  667. 10)    -- 
  668. cxInch 
  669. 88)    -- 
  670. N/inch - X (
  671. cyInch 
  672. 90)    -- 
  673.     --    * Best Fit 
  674. =1 a 
  675. preserves
  676.     --    * 
  677. *DIB's aspect 
  678. fills 
  679. horizontally.
  680.     --    *
  681.     --    * 
  682. )formula 
  683. S*"->
  684.  calculates 
  685.     --    * 
  686. $, based on 
  687. *ize 
  688.     --    * 
  689. *width 
  690. *relative 
  691.     --    * a 
  692. ) = 1    -- 
  693. myTop 
  694. myLeft 
  695. myBottom 
  696. ) / (
  697. myRight 
  698. .(0, 
  699. .(2, 
  700. .(4, 
  701. .(6, 
  702. --    * Scaling 
  703. * -- 
  704.     --    * multipliers 
  705. multiply 
  706. height/
  707. * = 3    -- 
  708. cxMult 
  709. .(0, 
  710. cyMult 
  711. .(2, 
  712. .(0, 
  713. .(2, 
  714. .(4, 
  715. i/ 100))
  716. .(6, 
  717. s/ 100)) 
  718. --            
  719. .(4, 
  720. / 100))
  721. --            
  722. .(6, 
  723. / 100)) 
  724.             -- 
  725. + = 2     -- 
  726. .(0, 
  727. .(2, 
  728. .(4, 
  729. .(6, 
  730. -- * 
  731. -- * 
  732. *ALL 
  733. called 
  734. -- * 
  735. -- * 
  736. lpRectClip 
  737. .rectangular
  738. -- * 
  739. x2 we 
  740. (i.e. we 
  741. -- * 
  742. fDoText 
  743. fDoGraphics 
  744. -- * appropriately (
  745. -- * 
  746. Normally 
  747. -- * 
  748. !lpRectOut, 
  749. , lpDIBBits
  750. rectOutLeft 
  751. .(0, 
  752. rectOutTop 
  753. .(2, 
  754. rectOutRight 
  755. .(4, 
  756. rectOutBottom 
  757. .(6, 
  758. /(4, 
  759. /(8, 
  760. dblXScaling 
  761. dblYScaling 
  762. M-we 
  763. up a 
  764. holds 
  765. >0paper 
  766. WILL be 
  767. intersect 
  768. |0lpClipRect 
  769. 8 we NEED 
  770. Then, we 
  771. IntersectRect (
  772. *) = 0
  773. rectLeft 
  774. .(0, 
  775. rectTop 
  776. .(2, 
  777. rectRight 
  778. .(4, 
  779. rectBottom 
  780. .(6, 
  781. rectInLeft 
  782. + 0.5)
  783. rectInTop 
  784. + 0.5)
  785. rectInRight 
  786. + 0.5)
  787. rectInBottom 
  788. + 0.5)
  789. StretchDIBits (
  790. , 0, 13369376)
  791. -- DestDC
  792. -- DestX
  793.                      --        
  794. -- DestY
  795.                      --        
  796. -- DestWidth
  797.                      --        
  798. -- DestHeight
  799. -- SrcX
  800. - (rectInBottm - 
  801. )        -- ScrY
  802. -- SrcWidth
  803. -- SrcHeight
  804. -- lpBitInfo
  805. 0            -- DIB_RGB_COLORS
  806. -- wUsage
  807. 13369376)    -- 
  808. -- dwROP
  809. -- * 
  810. -- * 
  811. -- * 
  812. packed-
  813. ])block
  814. -- * 
  815. -- * 
  816. -- * 
  817. -- * 
  818. 5address 
  819. -- * 
  820. ) + PaletteSize (
  821. -- * 
  822. -- * 
  823. -- * 
  824. -- * 
  825. -- * 
  826. -- * 
  827. -- * 
  828. required 
  829. store 
  830. -- * multiplying 
  831. RGBQUAD (
  832. -- * 
  833. :< 3.0-style 
  834. RGBTRIPLE (
  835. OS/2-
  836. -- * 
  837. DIBNumColors (
  838. ) * 4        -- 
  839. -- * 
  840. -- * 
  841. -- * 
  842. -- * 
  843. -- * 
  844. ,( table
  845. -- * 
  846. -- * 
  847. -- * 
  848. Hfinding 
  849. !Win3.0 
  850. OS/2-
  851. -- * DIB). If 
  852. (=2, 
  853. (=16, 
  854. (=256,
  855. -- * 
  856. 24, no 
  857.     -- If 
  858. 9biClrUsed 
  859. BITMAPINFOHEADER 
  860.     -- otherwise 
  861.     -- on 
  862. dwClrUsed 
  863. ,(32, 
  864. wBitCount 
  865. 2(14, 
  866. -- * 
  867. -- * 
  868. -- * 
  869. convert
  870. -- * 
  871. -- * 
  872. -- * 
  873. -- * 
  874. -- * 
  875. :creates a 
  876. 1= 0 
  877. hBitmapStruct 
  878. lpBitmapStruct 
  879.     -- 2nd 
  880.  = 14
  881. GetObject (
  882. x, 14, 
  883.     -- If no 
  884. e2 = 0 
  885. GetStockObject (15)
  886.     -- DEFAULT_PALETTE
  887. bmPlanes 
  888. )(8, 
  889. bmBitsPixel 
  890. )(9, 
  891. biBits 
  892. -<= 1
  893. @> 1 
  894. H<= 4
  895. [> 4 
  896. c<= 8
  897. v> 8 
  898. ~<= 24
  899. hBitmapInfo 
  900. lpBitmapInfo 
  901. =BITMAPINFOSTRUCTURE
  902. ,(0, 
  903. ;, 40)
  904. /(4, 
  905. .(2, 
  906. /(8, 
  907. .(4, 
  908. 2(12, 
  909. 2(14, 
  910. ,(16, 
  911. , 0)     -- 3rd 
  912. BI_RGB
  913. ,(20, 
  914. /(24, 
  915. /(28, 
  916. ,(32, 
  917. ,(36, 
  918. biSize 
  919. ,(0, 
  920. /(4, 
  921. /(8, 
  922. biPlanes 
  923. 2(12, 
  924. biBitCount 
  925. 2(14, 
  926. biCompression 
  927. ,(16, 
  928. biSizeImage 
  929. ,(20, 
  930. biXPelsPerMeter 
  931. /(24, 
  932. biYPelsPerMeter 
  933. /(28, 
  934. ,(32, 
  935. biClrImportant 
  936. ,(36, 
  937. dwLen 
  938. 40 + 
  939. realize 
  940. SelectPalette (
  941. Q6, 0)
  942. RealizePalette (
  943.  = 0 
  944. 6, 1)
  945. lpbi 
  946.     -- Use 
  947. ,(0, 
  948. /(4, 
  949. /(8, 
  950. 2(12, 
  951. 2(14, 
  952. ,(16, 
  953. ,(20, 
  954. /(24, 
  955. /(28, 
  956. ,(32, 
  957. ,(36, 
  958. I&GetDIBits 
  959. )@, so 
  960. q7= 0.
  961. FirstGetDIBits (
  962. 8, 0, 
  963. &, 0, 
  964.     -- If 
  965. ,(20, 
  966. ) = 0
  967. ,(20, 
  968.     -- Realloc 
  969. Bbuffer big enough 
  970.     -- Setting 
  971. ,(0, 
  972. ,(20, 
  973. GlobalReAlloc (
  974. h = 0 
  975. fa NON-
  976. actually 
  977. SecondGetDIBits (
  978. `;, 0, 
  979. /(8, 
  980.         -- Clean up 
  981. ;, 1)
  982. $<, 1)
  983. wB < 0) 
  984. B >= 28))
  985.         -- 
  986. tequivalent 
  987. MB_OK | MB_ICONSTOP 
  988. MessageBox(0, "Undefined 
  989. F!", "", 16)
  990. C = 0
  991. C = 1
  992. ErrString 
  993. "Not a 
  994. uBfile!"
  995. GC = 2
  996. "Couldn't allocate 
  997. sC = 3
  998. G reading 
  999. C = 4
  1000. G locking 
  1001. C = 5
  1002. G opening 
  1003. C = 6
  1004. H creating 
  1005. D = 7
  1006. -H getting a DC!"
  1007. -D = 8
  1008. 6<Dependent 
  1009. ZD = 9
  1010. -() failed!"
  1011. ~D = 10
  1012. D = 11
  1013. "SetDIBitsToDevice() 
  1014. D = 12
  1015. |.: StartDoc 
  1016. D = 13
  1017. E: GetModuleHandle() couldn't 
  1018.  GDI!"
  1019. 1E = 14
  1020. .: SetAbortProc 
  1021. \E = 15
  1022. /: StartPage 
  1023. E = 16
  1024. E = 17
  1025. Z/: EndPage 
  1026. E = 18
  1027. /: EndDoc 
  1028. E = 19
  1029. F = 20
  1030. Found!"
  1031. <F = 21
  1032. [F = 22
  1033. "General 
  1034. J on 
  1035. F = 23
  1036. F = 24
  1037. F = 25
  1038. qRDC!"
  1039. G = 26
  1040. :G = 27
  1041. #Option!"
  1042. , "", 16) 
  1043.     linkDLL "kernel"
  1044. .K, DWORD)
  1045.         INT     
  1046. g    getModuleHandle    (
  1047. g    LoadLibrary        (
  1048. b        Yield            ()
  1049. user"
  1050. BringWindowToTop(
  1051. @            (
  1052. >@        (
  1053. L, INT)
  1054. SetDlgItemText     (
  1055. (        SendMessage        (
  1056. O        UpdateWindow    (
  1057. M, INT, 
  1058. IntEscape = 
  1059. -e = 
  1060.         INT        
  1061. tb40win.dll"
  1062. tb40dlg.
  1063. NlistToTextline (
  1064. 7NtextlineToList (
  1065. V whatViewer
  1066. "&"E&
  1067. initmenus
  1068. = FALSE
  1069. menuItemEnabled(
  1070. ,) = 
  1071. Y..." alias 
  1072. buttonclick
  1073.     printmode 
  1074.     lockScreen 
  1075. e= TRUE
  1076. printMode 
  1077.             enabled 
  1078. B"X" = FALSE
  1079. B"Y" = 
  1080. "X" = 
  1081. "Y" = 
  1082. "X" = LIGHTGRAY
  1083. "Y" = 
  1084. "X" = "0"
  1085. "Y" = "0"
  1086. B"X" = 
  1087. B"Y" = 
  1088. "X" = 
  1089. "Y" = 
  1090. "X" = WHITE
  1091. "Y" = 
  1092. "X" = "1.0"
  1093. "Y" = "1.0"
  1094. = 3            
  1095. B"X" = 
  1096. B"Y" = 
  1097. "X" = 
  1098. "Y" = 
  1099. "X" = 
  1100. "Y" = 
  1101. "X" = prnXRes 
  1102. "dialog"/scrnXRes 
  1103. "Y" = prnYRes 
  1104. print dialog
  1105. print dialog
  1106. 15,15
  1107. lastUnits
  1108. inside
  1109. outside
  1110. frameupdate
  1111. notifybefore frameupdate
  1112.     x = 
  1113. syspageunitsperpixel
  1114.     y = 
  1115. "inside" 
  1116. "outside" 
  1117. H(2*x)
  1118. H(2*y)
  1119. outside
  1120. inside
  1121. Print &Mode
  1122. print mode
  1123. printmode
  1124. Actual Size
  1125. Fit to Page
  1126. Stretch to Page
  1127. Custom Scale
  1128. frame
  1129. openWindows
  1130. frameUpdate
  1131. notifyBefore frameUpdate
  1132.     b = 
  1133. combobox "openWindows"
  1134.     x = 
  1135. syspageunitsperpixel
  1136.     y = 
  1137. b)-x,(
  1138. b)-y, (
  1139. b)+x, (
  1140. acceptDrop
  1141. draggable
  1142. This field shows the keyword to search for.
  1143. helpInfo
  1144. Available Viewers
  1145. inside
  1146. outside
  1147. frameupdate
  1148. notifybefore frameupdate
  1149.     x = 
  1150. syspageunitsperpixel
  1151.     y = 
  1152. "inside" 
  1153. "outside" 
  1154. H(2*x)
  1155. H(2*y)
  1156. outside
  1157. inside
  1158. openWindows
  1159. Viewer id 0 of Book "D:\JXWORK\TODO.TBK"9
  1160. Viewer id 0log"
  1161. Viewer id 0ttons"
  1162. Viewer id 0r id 0 of Book "D:\JXWORK\TODO.TBK"WND.SBK"BK.TBK"
  1163. Viewer id 0 of Book "D:\JXWORK\SCRAPBK\SCRAPBK.TBK"
  1164. &X Scale
  1165. 6.255
  1166. 6.255
  1167. &Y Scale
  1168. inside
  1169. outside
  1170. frameupdate
  1171. notifybefore frameupdate
  1172.     x = 
  1173. syspageunitsperpixel
  1174.     y = 
  1175. "inside" 
  1176. "outside" 
  1177. H(2*x)
  1178. H(2*y)
  1179. outside
  1180. inside
  1181. print area
  1182. printarea
  1183. buttonclick
  1184. buttonclick
  1185.     printarea 
  1186. printarea
  1187. Entire Window
  1188. Client Area
  1189. Print &Area
  1190. toTop
  1191. Bring Window to Top
  1192. update
  1193. Update All Windows
  1194. statusBar
  1195. Include Status Bar
  1196. buttonclick
  1197. buttonclick
  1198. &Print
  1199. buttonclick
  1200. buttonclick
  1201.     close 
  1202. &Cancel
  1203. frameUpdate
  1204. lastUnits
  1205. frameUpdate
  1206. lastUnits
  1207. enterpage
  1208. frameUpdate
  1209. sysPageUnitsPerPixel <> lastUnits 
  1210. '= TRUE
  1211. frameUpdate 
  1212. '= FALSE
  1213. enterpage
  1214. notifyBefore 
  1215. buttonClick 
  1216. enterpage
  1217. *ClassTbl*
  1218. *ClassEntry*
  1219. *PTABLE*
  1220. *WINDOWSEG*
  1221. Viewer
  1222. *ICONRESTAB*
  1223. *ICONRESSEG*
  1224. *ICONRES*
  1225. Background
  1226. *OBJTABLE*
  1227. *IDTABLE*
  1228. *NAMETAB*
  1229. Rectangle
  1230. Ellipse
  1231. RoundedRectangle
  1232. Polygon
  1233. IrregularPolygon
  1234. AngledLine
  1235. Curve
  1236. Field
  1237. RecordField
  1238. ComboBox
  1239. Button
  1240. PaintObject
  1241. Picture
  1242. Hotword
  1243. *RHOTWORD*
  1244. Group
  1245. Stage
  1246. *TbxBase*
  1247. *V"V"V
  1248. gm>wj'E^K.P
  1249. initMenus
  1250. wjlinkDlls
  1251. linksysbook
  1252. initMenus
  1253. enterBook
  1254. ,&H.&
  1255. ,&H.&
  1256. ,&H.&
  1257. w,    #>
  1258. fd    device
  1259. An error occurred during printing:
  1260. colorTray
  1261. lineEndsPalette
  1262. DISPLAY
  1263. deviceFile
  1264. printArea
  1265. scrnYRes
  1266. printMode
  1267. kInvalidateRect
  1268. YprnXRes
  1269. openwindows
  1270. deviceName
  1271. statusBar
  1272. driverInfo
  1273. patternPalette
  1274. kScreateIC
  1275. toolPalette
  1276. mediaList
  1277. NdeleteDC
  1278. yield
  1279. prnWindow
  1280. LOGPIXELSY
  1281. printArea
  1282. ^KgetViewerName
  1283. bringWindowToTop
  1284. update
  1285. whatClip
  1286. printMode
  1287. sysOpenMedia
  1288. LOGPIXELSX
  1289. print mode
  1290. .updateWindow
  1291. linePalette
  1292. windows
  1293. statusbar
  1294. toolbar
  1295. toTop
  1296. listtotextline
  1297. ZprnYRes
  1298. jdoPrintWindow
  1299. dialog
  1300. hWnd1
  1301. polygonPalette
  1302. openWindows
  1303. 4getDeviceCaps
  1304. devicePort
  1305. whatWin
  1306. scrnXRes
  1307. print area
  1308. gDIBError
  1309. *getWinIniVar
  1310. There is no printer attached.
  1311. printWindow
  1312. .'+    +F
  1313. .'+    +F
  1314. .'+    +F
  1315. wReturn
  1316. DestroyDIB
  1317. OjPrintDIB
  1318. CopyWindowToDIB
  1319. gDIBError
  1320. doPrintWindow
  1321. 1,#"m
  1322. 1,#"m
  1323. 1,#"m
  1324. 1,#"m
  1325. GlobalUnlock
  1326. GlobalAlloc
  1327. ScreenFromClient
  1328. EGetClientRect
  1329. GlobalFree
  1330. GlobalLock
  1331. lpRectWnd
  1332. y[GetWindowRect
  1333. CopyScreenToDIB
  1334. hRectWnd
  1335. clientRect
  1336. CopyWindowToDIB
  1337. GetSystemPalette
  1338. DeleteObject
  1339. hPalette
  1340. H:CopyScreenToBitmap
  1341. hBitmap
  1342. BitmapToDIB
  1343. CopyScreenToDIB
  1344. ,"J Y
  1345. ;&PalEntriesOnDevice
  1346. GlobalAlloc
  1347. lpPalPalEntry
  1348. }ReleaseDC
  1349. W2GetSystemPaletteEntries
  1350. GlobalFree
  1351. nColors
  1352. GlobalLock
  1353. GetDC
  1354. GlobalUnlock
  1355. lpLogPal
  1356. tempPointer
  1357. 4>CreatePalette
  1358. hLogPal
  1359. GetSystemPalette
  1360. 4GetDeviceCaps
  1361. nColors
  1362. ErrNo
  1363. gDIBError
  1364. PalEntriesOnDevice
  1365. SelectObject
  1366. DISPLAY
  1367. NDeleteDC
  1368. yScrn
  1369. hOldBitmap
  1370. nHeight
  1371. hScrDC
  1372. 4GetDeviceCaps
  1373. CreateCompatibleBitmap
  1374. xScrn
  1375. nWidth
  1376. hMemDC
  1377. BitBlt
  1378. hBitmap
  1379. jOCreateDC
  1380. 4    IsRectEmpty
  1381. CreateCompatibleDC
  1382. CopyScreenToBitmap
  1383. GlobalFree
  1384. DestroyDIB
  1385. ,"JdY
  1386. ,"JdY
  1387. _2DwordPointerEscape
  1388. bBandInfoDevice
  1389. lpBits
  1390. GlobalAlloc
  1391. biWidth
  1392. GlobalUnlock
  1393. bGraphics
  1394. SetStretchBltMode
  1395. lpDIBHdr
  1396. lpPrintRect
  1397. GlobalLock
  1398. z GetPrinterDC
  1399. StringEscape
  1400. PointerPointerEscape
  1401. PrintBand
  1402. biHeight
  1403. 6+CalculatePrintRect
  1404. GlobalFree
  1405. hPrintRect
  1406. hNEXTBAND
  1407.     JPointerEscape
  1408. NDeleteDC
  1409. lpBandInfo
  1410. ErrNo
  1411. FindDIBBits
  1412. bText
  1413. lpNEXTBAND
  1414. hRect
  1415. strlenszJobName
  1416. DwordEscape
  1417. 4    IsRectEmpty
  1418. lpRect
  1419. hPrnDC
  1420. hBandInfo
  1421. gDIBError
  1422. PrintDIB
  1423. device
  1424. printPort
  1425. hdcPrint
  1426. ErrNo
  1427. windows
  1428. printDevice
  1429. printDriver
  1430. CreatePrinterDC
  1431. *GetWinIniVar
  1432. gDIBError
  1433. GetPrinterDC
  1434. cyPage
  1435. cyInch
  1436. 4GetDeviceCaps
  1437. cxPage
  1438. cxInch
  1439. CalculatePrintRect
  1440. wReturn
  1441. GlobalUnlock
  1442. GlobalAlloc
  1443. RStretchDIBits
  1444. GlobalLock
  1445. rectInLeft
  1446. rectLeft
  1447. GlobalFree
  1448. ErrNo
  1449. TUIntersectRect
  1450. lpRect
  1451. hRect
  1452. 4    IsRectEmpty
  1453. rectTop
  1454. gDIBError
  1455. PrintBand
  1456. lpBits
  1457. PaletteSize
  1458. FindDIBBits
  1459. T%DIBNumColors
  1460. PaletteSize
  1461. dwClrUsed
  1462. wBitCount
  1463. DIBNumColors
  1464. GlobalUnlock
  1465. lpBits
  1466. GlobalAlloc
  1467. lpBitmapStruct
  1468. GSelectPalette
  1469. }ReleaseDC
  1470. biHeight
  1471. lpBitmapInfo
  1472. hBitmapStruct
  1473. FirstGetDIBits
  1474. GlobalLock
  1475. GetDC
  1476. SecondGetDIBits
  1477. GetObject
  1478. PaletteSize
  1479. /GlobalReAlloc
  1480. hBitmapInfo
  1481. ruGetStockObject
  1482. GlobalFree
  1483. dwLen
  1484.  vRealizePalette
  1485. BitmapToDIB
  1486. Error getting a DC!
  1487. Error creating printer DC!
  1488. Printer: StartPage failed!
  1489. MessageBox
  1490. Error creating DIB from specified window.
  1491. Printer: SetAbortProc failed!
  1492. Error opening file!
  1493. Undefined Error!
  1494. Printer: StartDoc failed!
  1495. Printing: GetModuleHandle() couldn't find GDI!
  1496. StretchBlt() failed!
  1497. Error: Invalid Print Option!
  1498. StretchDIBits() failed!
  1499. Printer: NEWFRAME failed!
  1500. Error reading file!
  1501. File Not Found!
  1502. Not a Windows DIB file!
  1503. ErrString
  1504. Invalid Handle
  1505. Error locking memory!
  1506. SetDIBits() failed!
  1507. Error creating palette!
  1508. SetDIBitsToDevice() failed!
  1509. General Error on call to DIB function
  1510. Couldn't allocate memory!
  1511. Printer: EndPage failed!
  1512. Error: Invalid Print Area!
  1513. Error getting number of colors, check the device you are using.
  1514. Error creating Device Dependent Bitmap
  1515. Printer: EndDoc failed!
  1516. DIBError
  1517. tb40win.dll
  1518. tb40dlg.dll
  1519. BringWindowToTop
  1520. GetClientRect
  1521. GetDC
  1522. GetWindowRect
  1523. IntersectRect
  1524. IsRectEmpty
  1525. MessageBox
  1526. ,$Taile-#
  1527. RealizePalette
  1528. ReleaseDC
  1529. SelectPalette
  1530. SetDlgItemText
  1531. SendMessage
  1532. UpdateWindow
  1533. InvalidateRect
  1534. ScreenFromClient
  1535. ,    Uaileg    
  1536. GetWinIniVar
  1537. BitBlt
  1538. CreateCompatibleBitmap
  1539. CreateCompatibleDC
  1540. CreateDC
  1541. CreateDC
  1542. CreatePrinterDC
  1543. CreatePalette
  1544. DeleteDC
  1545. DeleteObject
  1546. Escape
  1547. PointerEscape
  1548. ,'T fin-#
  1549. Escape
  1550. DwordEscape
  1551. Escape
  1552. IntEscape
  1553. Escape
  1554. StringEscape
  1555. Escape
  1556. DwordPointerEscape
  1557. Escape
  1558. PointerPointerEscape
  1559. GetDeviceCaps
  1560. GetDIBits
  1561. FirstGetDIBits
  1562. GetDIBits
  1563. SecondGetDIBits
  1564. ,$Tter:-#
  1565. GetObject
  1566. GetStockObject
  1567. GetSystemPaletteEntries
  1568. ,CT~4
  1569. SelectObject
  1570. SetStretchBltMode
  1571. StretchDIBits
  1572. createIC
  1573. getDeviceCaps
  1574. listToTextline
  1575. textlineToList
  1576. GlobalAlloc
  1577. GlobalLock
  1578. GlobalUnlock
  1579. GlobalFree
  1580. GlobalReAlloc
  1581. getModuleHandle
  1582. LoadLibrary
  1583. ,    Tiled-$
  1584. Yield
  1585. kernel
  1586. linkDlls
  1587. viewer
  1588. getViewerName
  1589. printWindow
  1590. Print Window...
  1591. initmenus
  1592. printMode
  1593. ZprnYRes
  1594. printmode
  1595. scrnXRes
  1596. YprnXRes
  1597. scrnYRes
  1598. dialog
  1599. printMode
  1600. buttonclick
  1601. false
  1602. goPage
  1603. qkinitializePage
  1604. Zselected
  1605. pageID
  1606. buttondown
  1607. [darkBlue
  1608. selected
  1609. checkref
  1610. false
  1611. Cvisited
  1612. subPages
  1613. curID
  1614. pageID
  1615. pageID
  1616. OBmypages
  1617. value
  1618. updateChecks
  1619. pageID
  1620. pageID
  1621. label
  1622. updateLabels
  1623.