home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / DISK1 / MACROS.CMZ / FIT2SCRN.SMM < prev    next >
INI File  |  1993-03-14  |  5KB  |  384 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     _macro.sty
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     Apple LaserWriter Plus
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     Ustawienie podgl</y>du roboczego na szeroko</\><\f> </s>amu strony.
  19.     Lotus WPD
  20.     Advanced
  21.     API Calls
  22.     autorun
  23.     723275682
  24.     10
  25.     704844403
  26.     180
  27.     1
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     1
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [ParaNum]
  54.     1
  55. [lay]
  56.     Standard
  57.     516
  58.     [rght]
  59.         16833
  60.         11908
  61.         1
  62.         1440
  63.         1440
  64.         1
  65.         1440
  66.         1440
  67.         0
  68.         1
  69.         0
  70.         1
  71.         0
  72.         2
  73.         1
  74.         1440
  75.         10465
  76.         12
  77.         1
  78.         720
  79.         1
  80.         1440
  81.         1
  82.         2160
  83.         1
  84.         2880
  85.         1
  86.         3600
  87.         1
  88.         4320
  89.         1
  90.         5040
  91.         1
  92.         5760
  93.         1
  94.         6480
  95.         1
  96.         7200
  97.         1
  98.         7920
  99.         1
  100.         8640
  101.     [hrght]
  102.     [lyfrm]
  103.         1
  104.         11200
  105.         0
  106.         0
  107.         11908
  108.         1440
  109.         0
  110.         1
  111.         3
  112.         1 0 0 0 0 0 0
  113.         0
  114.         0
  115.         1
  116.     [frmlay]
  117.         1440
  118.         11908
  119.         1
  120.         1440
  121.         72
  122.         1
  123.         792
  124.         1440
  125.         0
  126.         1
  127.         0
  128.         1
  129.         1
  130.         0
  131.         1
  132.         1440
  133.         10465
  134.         1
  135.         3
  136.         9360
  137.     [txt]
  138. Modified by Marek G. B</y>czek from UNICORN Poland
  139.  
  140. >
  141.     [frght]
  142.     [lyfrm]
  143.         1
  144.         13256
  145.         0
  146.         15393
  147.         11908
  148.         16833
  149.         0
  150.         1
  151.         3
  152.         1 0 0 0 0 0 0
  153.         0
  154.         0
  155.         2
  156.     [frmlay]
  157.         16833
  158.         11908
  159.         1
  160.         1440
  161.         792
  162.         1
  163.         15465
  164.         1440
  165.         0
  166.         1
  167.         0
  168.         1
  169.         1
  170.         0
  171.         1
  172.         1440
  173.         10465
  174.         2
  175.         2
  176.         4680
  177.         3
  178.         9360
  179.     [txt]
  180. >
  181. [elay]
  182. [l1]
  183.     0
  184. [pg]
  185.     1
  186.     47 0 13 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  187. [edoc]
  188. <:#278,9025>Macro by <+!>Charlie Pappas, Peyton McManus and David Zoller<-!>
  189.  
  190. <:#278,9025>
  191.  
  192. <:#278,9025>define GetClientRect(hWnd, lpRect) dllcall("user,GetClientRect,HHN", %1, %2)
  193.  
  194. <:#278,9025>define Getfocus() DllCall("user,GetFocus,H")
  195.  
  196. <:#278,9025>define IsOKToRun(menuname)    GetInfo(217, 24, %1);
  197.  
  198. <:#278,9025>
  199.  
  200. <:#278,9025>Declare GetLayout()
  201.  
  202. <:#278,9025>
  203.  
  204. @Function@<:#278,9025>Function BestView()
  205.  
  206. <:#278,9025>result=IsOKToRun(CustomView)
  207.  
  208. <:#278,9025>if result != 1
  209.  
  210. <:#278,9025>    exit function
  211.  
  212. <:#278,9025>endif
  213.  
  214. <:#278,9025>ignorekeyboard(2)
  215.  
  216. <:#278,9025>CheckMenuItem(1, "Po&dgl</y>d", "&Szeroko</\><\f> </c>amu", 1)
  217.  
  218. <:#278,9025>if not CheckMenuItem(1, "Po&dgl</y>d", "&Szeroko</\><\f> </c>amu", 1)
  219.  
  220. <:#556,9025>    insertmenuitem(1, "Po&dgl</y>d", 1, "&Szeroko</\><\f> </c>amu", getrunningmacrofile$(), "Ustawia podgl</y>d roboczy na szeroko</\><\f> 
  221. </s>amu strony.")
  222.  
  223. <:#278,9025>    return 1
  224.  
  225. <:#278,9025>endif
  226.  
  227. <:#278,9025>CheckMenuItem(1, "Po&dgl</y>d", "&Szeroko</\><\f> </c>amu", 0)
  228.  
  229. <:#278,9025>dim rect(4)
  230.  
  231. <:#278,9025>Size = GetLayout()
  232.  
  233. <:#278,9025>getclientrect(getfocus(), &rect)
  234.  
  235. <:#278,9025>newview = round(((rect(3) / 623) * (9144 / size) * 100))
  236.  
  237. <:#278,9025>
  238.  
  239. <:#278,9025>If NewView <;> 10 and NewView << 401
  240.  
  241. <:#278,9025>    disp=GetProfileString$("AmiPro","Display","AMIPRO.INI")
  242.  
  243. <:#278,9025>    if disp = ""
  244.  
  245. <:#278,9025>        disp = 19590
  246.  
  247. <:#278,9025>    endif
  248.  
  249. <:#278,9025>    ViewPreferences(Disp,NewView)
  250.  
  251. <:#278,9025>Endif
  252.  
  253. <:#278,9025>customview()
  254.  
  255. <:#278,9025>End Function
  256.  
  257. <:#278,9025>
  258.  
  259. <:#278,9025>
  260.  
  261. @Function@<:#278,9025>FUNCTION GetLayout()
  262.  
  263. <:#278,9025>ignorekeyboard(2)
  264.  
  265. <:#278,9025>DefStr pm, WidthTwips, cp, dz;
  266.  
  267. <:#278,9025>Cnt = GetLayoutParmCnt(ModLayoutRightPage) ' Get number of parameters 
  268.  
  269. <:#278,9025>DIM Stuff(Cnt)'Dimension an array for that amount
  270.  
  271. <:#278,9025>GetLayoutParameters(ModLayoutRightPage, &Stuff) ' Get the parameters and 
  272.  
  273. <:#278,9025>GetLayoutPageSize(&pm, &WidthTwips, &cp, &dz)
  274.  
  275. <:#278,9025>LeftMargin=Stuff(1)
  276.  
  277. <:#278,9025>RightMargin=Stuff(3)
  278.  
  279. <:#278,9025>getlayout = WidthTwips-LeftMargin-RightMargin
  280.  
  281. <:#278,9025>END FUNCTION 
  282.  
  283. >
  284.  
  285. [Embedded]
  286. 00003679
  287. >
  288. [macsum] 2
  289. BestView 0 0 6 8
  290. GetLayout 782 0 9 36
  291. [macse]
  292. 14 BestView
  293. 0 1313 217 24 202
  294. 13
  295. 8 1
  296. 6 1
  297. 5 1
  298. 18 1
  299. 11 00000082
  300. 6 0
  301. 15
  302. 9
  303. 0 32 2
  304. 0 518 1 "Po&dgl</y>d" "&Szeroko</\><\f> </c>amu" 1
  305. 0 518 1 "Po&dgl</y>d" "&Szeroko</\><\f> </c>amu" 1
  306. 13
  307. 1 3
  308. 11 00000359
  309. 0 802
  310. 13
  311. 0 527 1 "Po&dgl</y>d" 1 "&Szeroko</\><\f> </c>amu" [X] "Ustawia podgl</y>d roboczy na szeroko</\><\f> </s>amu strony."
  312. 5 1
  313. 15
  314. 9
  315. 0 518 1 "Po&dgl</y>d" "&Szeroko</\><\f> </c>amu" 0
  316. 5 4
  317. 21 2 [X]
  318. 16 GetLayout
  319. 13
  320. 8 3
  321. 0 284 "user,GetFocus,H"
  322. 13
  323. 0 284 "user,GetClientRect,HHN" [X] &2
  324. 5 3
  325. 22 2
  326. 5 623
  327. 4 1
  328. 5 9144
  329. 6 3
  330. 4 1
  331. 4 0
  332. 5 100
  333. 4 0
  334. 0 786 [X]
  335. 13
  336. 8 4
  337. 6 4
  338. 5 10
  339. 18 3
  340. 6 4
  341. 5 401
  342. 18 5
  343. 1 1
  344. 11 00000761
  345. 0 286 "AmiPro" "Display" "AMIPRO.INI"
  346. 13
  347. 8 5
  348. 6 5
  349. 7 ""
  350. 18 0
  351. 11 00000740
  352. 5 19590
  353. 8 5
  354. 2 206 1 "{5}" "{4}"
  355. 2 202 1
  356. 6 0
  357. 15
  358. 9
  359. 14 GetLayout
  360. 0 32 2
  361. 0 1285 363
  362. 13
  363. 8 5
  364. 6 5
  365. 21 6 [X]
  366. 0 1286 363 &6
  367. 0 1282 &1 &2 &3 &4
  368. 5 1
  369. 22 6
  370. 8 7
  371. 5 3
  372. 22 6
  373. 8 8
  374. 6 2
  375. 6 7
  376. 3 1
  377. 6 8
  378. 3 1
  379. 8 0
  380. 6 0
  381. 15
  382. 9
  383. 00003704
  384.