CompuServe Thread

Print Record Magnitudes

1 messages in this thread
#41110From: John JeppsonMar 5, 1991 10:52 PM
Somehow PrintMgr generates the following rectangles after various "magnitudes" are entered into PrStlDialog. I have tried every combination of integer and floating point arithemetic I can think of, but I don't get these integral values. Every formula I have tried has rounding errors greater than one pixel in at least some of the values. For example, using: ( 552.0 / (magnitude * 0.01) ) Magnitude 91% gives 606.59 for prInfo.rPage.bottom The toolbox produces 608. Does anyone know how PrintMgr does this? I tried tracing into the ROM but got hopelessly lost, as usual. I'm really not planning to sell anything that uses this; it's strictly for an "in-house" application. Magnitude prInfo.rPage rPaper 100 0 0 552 730 -30 -31 582 761 99 0 0 558 738 -30 -31 588 769 98 0 0 564 746 -30 -31 594 777 97 0 0 570 752 -30 -32 600 784 96 0 0 575 761 -31 -32 606 793 95 0 0 582 769 -31 -32 613 801 94 0 0 589 776 -31 -33 620 809 93 0 0 594 785 -32 -33 626 818 92 0 0 601 794 -32 -33 633 827 91 0 0 608 802 -32 -34 640 836 90 0 0 614 812 -33 -34 647 846 89 0 0 621 819 -33 -35 654 854 88 0 0 627 830 -34 -35 661 865 87 0 0 635 840 -34 -35 669 875 86 0 0 643 848 -34 -36 677 884 85 0 0 650 859 -35 -36 685 895 84 0 0 658 868 -35 -37 693 905 83 0 0 665 880 -36 -37 701 917 82 0 0 674 889 -36 -38 710 927 81 0 0 681 901 -37 -38 718 939 Read action !m Mac Developers Forum Read Menu Read 1 [NEW] messages 2 Message NUMBER 3 WAITING messages for you (0) Search [new] messages 4 FROM (Sender) 5 SUBJECT 6 TO (Recipient) Enter choice !