home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 July & August / Pcwk78b98.iso / Smart30 / ENGLISH / PRODUCTS / LOTUS018.DSK / FONTUP.SMM < prev    next >
INI File  |  1992-06-11  |  3KB  |  218 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.     PostScript Printer
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     Make text larger
  19.     Lotus WPD Marketing
  20.     Intermediate
  21.     FontChange, GetCurFontInfo
  22.     noautorun
  23.     708314349
  24.     26
  25.     670617369
  26.     388
  27.     1
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     0
  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. [l1]
  54.     0
  55. [pg]
  56.     1
  57.     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
  58. [edoc]
  59. <:#293,9360>Macro by <+!>Charlie Pappas & Mark Osborne<-!>
  60.  
  61. define IsOKToRun(menuname)    GetInfo(217, 24, %1);
  62.  
  63. <:#284,9360>
  64.  
  65. <:#284,9360>function main()
  66.  
  67. result=IsOKToRun(FontChange)
  68.  
  69. <:#284,9360>if result !=1
  70.  
  71. <:#284,9360>    exit function
  72.  
  73. <:#284,9360>endif
  74.  
  75. <:#284,9360>ignorekeyboard(2)
  76.  
  77. <:#284,9360>macfile = GetRunningMacroFile$() ' <:f200,QCourier,0,0,255>get the dos file name
  78.  
  79. <:#284,9360>globtot = GetGlobalVarCount()
  80.  
  81. <:#284,9360>menustat = "OFF"
  82.  
  83. <:#284,9360>if globtot <<<;> 0
  84.  
  85. <:#284,9360>    Dim globnames(globtot)
  86.  
  87. <:#284,9360>    GetGlobalVarNames(&globnames)
  88.  
  89. <:#284,9360>    for i = 1 to globtot ' <:f200,QCourier,0,0,255>find the global var
  90.  
  91. <:#284,9360>        if (globnames(i) = "FontUpStat")
  92.  
  93. <:#284,9360>            menustat = "ON"
  94.  
  95. <:#284,9360>            
  96.  
  97. <:#284,9360>        endif
  98.  
  99. <:#284,9360>    next 
  100.  
  101. <:#284,9360>EndIf
  102.  
  103. <:#284,9360>If menustat = "OFF"
  104.  
  105. <:#284,9360>    AllocGlobalVar("FontUpStat",1) ' <:f200,QCourier,0,0,255>first time played, add menus<:f>
  106.  
  107. <:#284,9360>    DeleteMenuItem(1,"&Text", "Font Up")
  108.  
  109. <:#568,9360>    InsertMenuItem(1,"&Text", 12,"Font Up", "{MacFile}!bigger()", "Increases the 
  110.         font     size by 2 points")
  111.  
  112. <:#284,9360>    
  113.  
  114. <:#284,9360>    SetGlobalVar("FontUpStat","ON")
  115.  
  116. <:#284,9360>Endif
  117.  
  118. <:#284,9360>
  119.  
  120. <:#284,9360>call bigger() ' <:f200,QCourier,0,0,255>make call to make the font bigger
  121.  
  122. <:#284,9360>
  123.  
  124. <:#284,9360>end function
  125.  
  126. <:#284,9360>
  127.  
  128. <:#284,9360>
  129.  
  130. <:#284,9360>function bigger()
  131.  
  132. <:#284,9360>defstr name, color, size, family
  133.  
  134. <:#284,9360>GetCurFontInfo(&name, &color, &size, &family) ' <:f200,QCourier,0,0,255>what is the current font?<:f>
  135.  
  136. <:#284,9360>FontChange(Name, 0, Color, (Size  + 40)) ' <:f200,QCourier,0,0,255>add size to existing size
  137.  
  138. <:#284,9360>end function
  139.  
  140. >
  141.  
  142. [Embedded]
  143. 00002323
  144. >
  145. [macsum] 2
  146. main 0 0 7 3
  147. bigger 559 0 5 35
  148. [macse]
  149. 14 main
  150. 0 1313 217 24 251
  151. 13
  152. 8 1
  153. 6 1
  154. 5 1
  155. 18 1
  156. 11 00000078
  157. 6 0
  158. 15
  159. 9
  160. 0 32 2
  161. 0 802
  162. 13
  163. 8 2
  164. 0 299
  165. 13
  166. 8 3
  167. 7 "OFF"
  168. 8 4
  169. 6 3
  170. 5 0
  171. 18 1
  172. 11 00000343
  173. 6 3
  174. 21 5 [X]
  175. 0 300 &5
  176. 5 1
  177. 8 6
  178. 6 3
  179. 6 6
  180. 18 2
  181. 12 00000271
  182. 10 00000343
  183. 5 1
  184. 6 6
  185. 3 0
  186. 8 6
  187. 10 00000196
  188. 6 6
  189. 22 5
  190. 7 "FontUpStat"
  191. 18 0
  192. 11 00000330
  193. 7 "ON"
  194. 8 4
  195. 10 00000238
  196. 6 4
  197. 7 "OFF"
  198. 18 0
  199. 11 00000536
  200. 0 271 "FontUpStat" 1
  201. 0 520 1 "&Text" "Font Up"
  202. 0 527 1 "&Text" 12 "Font Up" "{2}!bigger()" "Increases the         font     size by 2 points"
  203. 0 264 "FontUpStat" "ON"
  204. 16 bigger
  205. 6 0
  206. 15
  207. 9
  208. 14 bigger
  209. 0 804 &1 &2 &3 &4
  210. 6 3
  211. 5 40
  212. 3 0
  213. 2 251 1 "{1}" 0 "{2}" [X]
  214. 6 0
  215. 15
  216. 9
  217. 00002348
  218.