home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / AMWP-2.ZIP / MACROS.ZIP / FRAME.SMM < prev    next >
Encoding:
INI File  |  1990-05-01  |  6.2 KB  |  589 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [prn]
  7.     PCL / HP LaserJet
  8. [lang]
  9.     1
  10. [desc]
  11.     User entered values are calculated to place frames of any size at exact locations on a page.
  12.     
  13.     
  14.     
  15.     
  16.     641611039
  17.     6
  18.     641174036
  19. [fopts]
  20.     0
  21.     1
  22.     0
  23.     0
  24. [lnopts]
  25.     2
  26.     Body Text
  27. [docopts]
  28.     5
  29.     0
  30. [tag]
  31.     Body Text
  32.     2
  33.     [fnt]
  34.         Tms Rmn
  35.         160
  36.         0
  37.         49152
  38.     [algn]
  39.         225
  40.         1
  41.         0
  42.         0
  43.         0
  44.     [spc]
  45.         17
  46.         273
  47.         1
  48.         0
  49.         0
  50.         1
  51.         100
  52.     [brk]
  53.         4
  54.     [line]
  55.         8
  56.         0
  57.         1
  58.         0
  59.         1
  60.         2
  61.         2
  62.         20
  63.         20
  64.         1
  65.     [spec]
  66.         0
  67.         0
  68.         
  69.         0
  70.         1
  71.         0
  72.         0
  73.         1
  74.         0
  75.         0
  76.     [nfmt]
  77.         280
  78.         1
  79.         3
  80.         .
  81.         ,
  82.         $
  83. [tag]
  84.     footer
  85.     3
  86.     [fnt]
  87.         Tms Rmn
  88.         200
  89.         0
  90.         49152
  91.     [algn]
  92.         225
  93.         1
  94.         0
  95.         0
  96.         0
  97.     [spc]
  98.         17
  99.         273
  100.         1
  101.         0
  102.         0
  103.         1
  104.         100
  105.     [brk]
  106.         4
  107.     [line]
  108.         8
  109.         0
  110.         1
  111.         0
  112.         1
  113.         2
  114.         2
  115.         20
  116.         20
  117.         1
  118.     [spec]
  119.         0
  120.         0
  121.         
  122.         0
  123.         1
  124.         0
  125.         0
  126.         1
  127.         0
  128.         0
  129.     [nfmt]
  130.         280
  131.         1
  132.         3
  133.         .
  134.         ,
  135.         $
  136. [lay]
  137.     Standard
  138.     513
  139.     [rght]
  140.         15840
  141.         12240
  142.         1
  143.         1080
  144.         360
  145.         1
  146.         1080
  147.         720
  148.         4
  149.         1
  150.         0
  151.         1
  152.         8
  153.         4
  154.         1
  155.         1080
  156.         11520
  157.         14
  158.         1
  159.         359
  160.         1
  161.         721
  162.         1
  163.         1084
  164.         1
  165.         1446
  166.         1
  167.         1792
  168.         1
  169.         2155
  170.         1
  171.         2517
  172.         1
  173.         2880
  174.         1
  175.         3242
  176.         1
  177.         3605
  178.         1
  179.         3967
  180.         1
  181.         4323
  182.         1
  183.         4683
  184.         1
  185.         5043
  186.     [hrght]
  187.     [lyfrm]
  188.         1
  189.         11200
  190.         0
  191.         0
  192.         12240
  193.         1080
  194.         1
  195.         1
  196.         3
  197.         1
  198.         5
  199.         0
  200.         0
  201.     [frmlay]
  202.         1080
  203.         12240
  204.         1
  205.         360
  206.         0
  207.         1
  208.         0
  209.         0
  210.         2
  211.         1
  212.         0
  213.         1
  214.         1
  215.         0
  216.         1
  217.         360
  218.         12240
  219.         3
  220.         1
  221.         365
  222.         2
  223.         6120
  224.         3
  225.         11162
  226.     [txt]
  227. <+B>
  228.  
  229. <+B>
  230.  
  231. <+B>    <:da<*!><* >>        Date Created:  <:da<*$><* >>
  232.  
  233. <+B>    By Charlie Pappas    Page - <:P11,1,>    Date Last revised:  <:da<*%><* >>
  234.  
  235. <+B>    
  236.  
  237. >
  238.     [frght]
  239.     [lyfrm]
  240.         1
  241.         13248
  242.         0
  243.         15480
  244.         12240
  245.         15840
  246.         1
  247.         1
  248.         3
  249.         1
  250.         5
  251.         0
  252.         0
  253.     [frmlay]
  254.         15840
  255.         12240
  256.         1
  257.         720
  258.         0
  259.         1
  260.         15480
  261.         720
  262.         2
  263.         1
  264.         0
  265.         1
  266.         1
  267.         0
  268.         1
  269.         720
  270.         11520
  271.         0
  272.     [txt]
  273. @footer@
  274. >
  275. [elay]
  276. [l1]
  277.     0
  278. [pg]
  279.     0
  280. [edoc]
  281. @Body Single@The macro frame.smm brings up a dialog box
  282.  
  283. @Body Single@to make a frame.
  284.  
  285. @Body Single@
  286. @Body Single@Simply enter the frame dimensions and distance
  287.  
  288. @Body Single@down and to the right of the upper left hand
  289.  
  290. @Body Single@corner of the document.  The default is 0 for
  291.  
  292. @Body Single@the position.  The values are in inches.
  293.  
  294. @Body Single@You may enter in decimal points.
  295.  
  296. @Body Single@
  297. @Body Single@Check the box Modify before clicking on OK and
  298.  
  299. @Body Single@the Modify Frame Layout box will appear after
  300.  
  301. @Body Single@the frame is created.
  302.  
  303. @Body Single@
  304. @Body Single@This macro calls the dialog box file frame.ext.
  305.  
  306. @Body Single@Copy the file into the Amipro or Windows subdirectory.
  307.  
  308. @Body Single@
  309. @Body Single@function frame()
  310.  
  311. @Body Single@ignorekeyboard(1)
  312.  
  313. @Body Single@declare twips(x)
  314.  
  315. @Body Single@macpath = getmacpath$()
  316.  
  317. @Body Single@again:
  318.  
  319. @Body Single@filledit(8011 1)
  320.  
  321. @Body Single@box = dialogbox("{macpath}frame.ext" "addaframe")
  322.  
  323. @Body Single@if box = -1 then
  324.  
  325. @Body Single@    message("Can't Find Dialog Box File FRAME.EXT  Check DOS Path And 
  326. Try Again")
  327.  
  328. @Body Single@    exit function
  329.  
  330. @Body Single@endif
  331.  
  332. @Body Single@if box <<>> 1 then
  333.  
  334. @Body Single@    exit function
  335.  
  336. @Body Single@endif
  337.  
  338. @Body Single@width = getdialogfield$(8007) ' width of box
  339.  
  340. @Body Single@if width <<= 0 then
  341.  
  342. @Body Single@    message ("Invalid value for Width")
  343.  
  344. @Body Single@    goto again
  345.  
  346. @Body Single@endif
  347.  
  348. @Body Single@x2 = twips(width)
  349.  
  350. @Body Single@height = getdialogfield$(8008) ' height of box
  351.  
  352. @Body Single@if height <<= 0 then
  353.  
  354. @Body Single@    message ("Invalid value for Height")
  355.  
  356. @Body Single@    goto again
  357.  
  358. @Body Single@endif
  359.  
  360. @Body Single@xheight = height * -1
  361.  
  362. @Body Single@y2 = twips(xheight)
  363.  
  364. @Body Single@inleft = getdialogfield$(8009) ' in from left
  365.  
  366. @Body Single@if inleft = "" then
  367.  
  368. @Body Single@    inleft = 0
  369.  
  370. @Body Single@endif
  371.  
  372. @Body Single@x1 = twips(inleft)
  373.  
  374. @Body Single@downtop = getdialogfield$(8010) ' down from top
  375.  
  376. @Body Single@if downtop = "" then
  377.  
  378. @Body Single@    downtop = 0
  379.  
  380. @Body Single@endif
  381.  
  382. @Body Single@down = downtop * -1
  383.  
  384. @Body Single@y1 = twips(down)
  385.  
  386. @Body Single@x2 = x2 + x1
  387.  
  388. @Body Single@y2 = y2 + y1
  389.  
  390. @Body Single@num = getdialogfield$(8011)
  391.  
  392. @Body Single@go = isnumeric(num)
  393.  
  394. @Body Single@if go <<>> 1 then
  395.  
  396. @Body Single@    message("Number Field Must Be Numeric")
  397.  
  398. @Body Single@    goto again
  399.  
  400. @Body Single@endif
  401.  
  402. @Body Single@'drop = getdialogfield$(116)
  403.  
  404. @Body Single@mod = getdialogfield$(112)
  405.  
  406. @Body Single@layoutmode()
  407.  
  408. @Body Single@for i = 1 to num
  409.  
  410. @Body Single@    addframe(x1 y1 x2 y2)
  411.  
  412. @Body Single@    if mod = 1 then
  413.  
  414. @Body Single@        framelayout()
  415.  
  416. @Body Single@    endif
  417.  
  418. @Body Single@next
  419.  
  420. @Body Single@filledit(8007 width)
  421.  
  422. @Body Single@filledit(8008 height)
  423.  
  424. @Body Single@filledit(8009 inleft)
  425.  
  426. @Body Single@filledit(8010 downtop)
  427.  
  428. @Body Single@filledit(8011 1)
  429.  
  430. @Body Single@end function
  431.  
  432. @Body Single@
  433. @Body Single@function twips(x)
  434.  
  435. @Body Single@twips = x * 1440
  436.  
  437. @Body Single@return twips
  438.  
  439. @Body Single@end function
  440.  
  441. >
  442. [macsum] 2
  443. frame 0 0 17 16
  444. twips 1166 1 1 78
  445. [macse]
  446. 14 frame
  447. 0 32 1
  448. 0 295
  449. 13
  450. 8 1
  451. 0 31 8011 1
  452. 0 26 "{1}frame.ext" "addaframe"
  453. 13
  454. 8 2
  455. 6 2
  456. 5 -1
  457. 18 0
  458. 11 00000205
  459. 0 3 "Can't Find Dialog Box File FRAME.EXT  Check DOS Path And Try Again"
  460. 6 0
  461. 15
  462. 9
  463. 6 2
  464. 5 1
  465. 18 1
  466. 11 00000246
  467. 6 0
  468. 15
  469. 9
  470. 0 27 8007
  471. 13
  472. 8 3
  473. 6 3
  474. 5 0
  475. 18 4
  476. 11 00000339
  477. 0 3 "Invalid value for Width"
  478. 10 00000034
  479. 16 twips "{3}"
  480. 13
  481. 8 4
  482. 0 27 8008
  483. 13
  484. 8 5
  485. 6 5
  486. 5 0
  487. 18 4
  488. 11 00000458
  489. 0 3 "Invalid value for Height"
  490. 10 00000034
  491. 6 5
  492. 5 -1
  493. 4 0
  494. 8 6
  495. 16 twips "{6}"
  496. 13
  497. 8 7
  498. 0 27 8009
  499. 13
  500. 8 8
  501. 6 8
  502. 7 ""
  503. 18 0
  504. 11 00000564
  505. 5 0
  506. 8 8
  507. 16 twips "{8}"
  508. 13
  509. 8 9
  510. 0 27 8010
  511. 13
  512. 8 10
  513. 6 10
  514. 7 ""
  515. 18 0
  516. 11 00000652
  517. 5 0
  518. 8 10
  519. 6 10
  520. 5 -1
  521. 4 0
  522. 8 11
  523. 16 twips "{11}"
  524. 13
  525. 8 12
  526. 6 4
  527. 6 9
  528. 3 0
  529. 8 4
  530. 6 7
  531. 6 12
  532. 3 0
  533. 8 7
  534. 0 27 8011
  535. 13
  536. 8 13
  537. 0 277 "{13}"
  538. 13
  539. 8 14
  540. 6 14
  541. 5 1
  542. 18 1
  543. 11 00000867
  544. 0 3 "Number Field Must Be Numeric"
  545. 10 00000034
  546. 0 27 112
  547. 13
  548. 8 15
  549. 2 210 1
  550. 5 1
  551. 8 16
  552. 6 13
  553. 6 16
  554. 18 2
  555. 12 00000986
  556. 10 00001072
  557. 5 1
  558. 6 16
  559. 3 0
  560. 8 16
  561. 10 00000907
  562. 2 413 1 "{9}" "{12}" "{4}" "{7}"
  563. 6 15
  564. 5 1
  565. 18 0
  566. 11 00001059
  567. 2 402 0
  568. 10 00000951
  569. 0 31 8007 "{3}"
  570. 0 31 8008 "{5}"
  571. 0 31 8009 "{8}"
  572. 0 31 8010 "{10}"
  573. 0 31 8011 1
  574. 6 0
  575. 15
  576. 9
  577. 14 twips
  578. 6 0
  579. 5 1440
  580. 4 0
  581. 8 1
  582. 6 1
  583. 15
  584. 9
  585. 6 1
  586. 15
  587. 9
  588. 00005070
  589.