home *** CD-ROM | disk | FTP | other *** search
INI File | 1992-06-11 | 3.1 KB | 219 lines |
- [ver]
- 4
- [sty]
- _macro.sty
- [files]
- [charset]
- 82
- ANSI (Windows, IBM CP 1252)
- [revisions]
- 0
- [prn]
- PostScript Printer
- [port]
- LPT1:
- [lang]
- 1
- [desc]
- Make text smaller
- Lotus WPD Marketing
- Intermediate
- FontChange, GetCurFontInfo
- noautorun
- 708314330
- 26
- 670617369
- 394
- 1
- 0
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- [fopts]
- 0
- 1
- 0
- 0
- [lnopts]
- 2
- Body Text
- 1
- [docopts]
- 5
- 2
- [GramStyle]
-
- [ParaNum]
- 1
- [l1]
- 0
- [pg]
- 1
- 40 0 12 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
- [edoc]
- <:#293,9360>Macro by <+!>Charlie Pappas & Mark Osborne<-!>
-
- define IsOKToRun(menuname) GetInfo(217, 24, %1);
-
-
- @Function@function main()
-
- result=IsOKToRun(FontChange)
-
- if result !=1
-
- exit function
-
- endif
-
- ignorekeyboard(2)
-
- <:#284,9360>macfile = GetRunningMacroFile$() ' <:f200,QCourier,0,0,255>dos file name and path
-
- <:#284,9360>globtot = GetGlobalVarCount() ' <:f240,QCourier,0,0,255>how many global variables<:f>
-
- <:#284,9360>menustat = "OFF"
-
- <:#284,9360>if globtot <<<;> 0
-
- <:#284,9360> Dim globnames(globtot)
-
- <:#284,9360> GetGlobalVarNames(&globnames)
-
- <:#284,9360> for i = 1 to globtot ' <:f200,QCourier,0,0,255>run<:f200,QCourier,0,0,255> through globals looking for our var
-
- <:#284,9360> if (globnames(i) = "FontDnStat")
-
- <:#284,9360> menustat = "ON"
-
- <:#284,9360> endif
-
- <:#284,9360> next
-
- <:#284,9360>endif
-
- <:#284,9360>
-
- <:#284,9360>If menustat = "OFF"
-
- <:#284,9360> AllocGlobalVar("FontDnStat",1) ' <:f200,QCourier,0,0,255>fir<:f200,QCourier,0,0,255>st time played so add menus
-
- <:#284,9360> DeleteMenuItem(1,"&Text", "FontDown")
-
- <:#284,9360>
-
- <:#568,9360> InsertMenuItem(1,"&Text",12,"Font Down", "{MacFile}!smaller()", "Decreases the
- font size by 2 points")
-
- <:#284,9360> SetGlobalVar("FontDnStat","ON")
-
- <:#284,9360>Endif
-
- <:#284,9360>
-
- <:#284,9360>call smaller() ' <:f200,QCourier,0,0,255>make the font smaller
-
- <:#284,9360>
-
- <:#284,9360>end function
-
- <:#284,9360>
-
- <:#284,9360>
-
- <:#284,9360>function smaller() ' <:f200,QCourier,0,0,255>function<:f200,QCourier,0,0,255> to make the font smaller
-
- <:#284,9360>defstr name, color, size, family
-
- <:#284,9360>GetCurFontInfo(&name, &color, &size, &family) ' <:f200,QCourier,0,0,255>w<:f200,QCourier,0,0,255>hat size is it?
-
- <:#284,9360>FontChange(Name, 0, Color, (Size - 40)) ' <:f200,QCourier,0,0,255>make it smaller
-
- <:#284,9360>end function
-
- >
-
- [Embedded]
- 00002472
- >
- [macsum] 2
- main 0 0 7 3
- smaller 564 0 5 35
- [macse]
- 14 main
- 0 1313 217 24 251
- 13
- 8 1
- 6 1
- 5 1
- 18 1
- 11 00000078
- 6 0
- 15
- 9
- 0 32 2
- 0 802
- 13
- 8 2
- 0 299
- 13
- 8 3
- 7 "OFF"
- 8 4
- 6 3
- 5 0
- 18 1
- 11 00000343
- 6 3
- 21 5 [X]
- 0 300 &5
- 5 1
- 8 6
- 6 3
- 6 6
- 18 2
- 12 00000271
- 10 00000343
- 5 1
- 6 6
- 3 0
- 8 6
- 10 00000196
- 6 6
- 22 5
- 7 "FontDnStat"
- 18 0
- 11 00000330
- 7 "ON"
- 8 4
- 10 00000238
- 6 4
- 7 "OFF"
- 18 0
- 11 00000540
- 0 271 "FontDnStat" 1
- 0 520 1 "&Text" "FontDown"
- 0 527 1 "&Text" 12 "Font Down" "{2}!smaller()" "Decreases the font size by 2 points"
- 0 264 "FontDnStat" "ON"
- 16 smaller
- 6 0
- 15
- 9
- 14 smaller
- 0 804 &1 &2 &3 &4
- 6 3
- 5 40
- 3 1
- 2 251 1 "{1}" 0 "{2}" [X]
- 6 0
- 15
- 9
- 00002497
-