home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / pm / ipf / ipf.ipf < prev    next >
Text File  |  1999-05-11  |  12KB  |  444 lines

  1. .**********************************************************
  2. .*
  3. .* IPF Tagging Sample
  4. .*
  5. .**********************************************************
  6. .*
  7. :userdoc.
  8. :docprof toc=12 ctrlarea=none.
  9. :title.IPF Tagging Sample
  10. .*
  11. .**********************************************************
  12. .*
  13. :h1.Introduction
  14. :p.
  15. This file contains sample tagging to show the various tagging
  16. techniques available in IPF.  It has intentionally been kept
  17. very simple, with very little text in each panel, to make it
  18. easier to focus on the tagging and the results of the tagging.
  19. To learn more about IPF and tagging, see the online
  20. "IPF Programming Guide and Reference."
  21. .*
  22. .**********************************************************
  23. .*
  24. .* DEFAULT WINDOW EXAMPLE
  25. .*
  26. .**********************************************************
  27. .*
  28. :h1.Default Window Example
  29. :p.
  30. Default Window Example.
  31. :p.
  32. Select the "My First Window" heading from the Contents window
  33. to see the effect of the sample tagging.
  34. .*
  35. :h2 res=001.My First Window
  36. :p.
  37. Here is the text for the first window.
  38. This is a
  39. :link reftype=hd res=002.hypertext link:elink.
  40. to the second window.
  41. .*
  42. :h2 res=002.My Second Window
  43. :p.
  44. Here is the text for the second window.
  45. This is a
  46. :link reftype=hd res=001.hypertext link:elink.
  47. to the first window.
  48. .*
  49. .**********************************************************
  50. .*
  51. .* HEADING LEVELS EXAMPLE
  52. .*
  53. .**********************************************************
  54. .*
  55. :h1.Heading Levels Example
  56. :p.
  57. Heading Levels Example.
  58. :p.
  59. Select the "Second-Level Heading" heading from the Contents window
  60. to see the effect of the sample tagging.
  61. .*
  62. :h2 res=026.Second-Level Heading
  63. :p.
  64. This window is defined by an :hp2.h2.:ehp2. tag.
  65. .*
  66. :h2 res=027.Another Second-Level Heading
  67. :p.
  68. This window is defined by an :hp2.h2.:ehp2. tag.
  69. :p.
  70. .*
  71. :h3 res=028.Third-Level Heading
  72. :p.
  73. Because the docprof tag at the beginning of the file specifies
  74. that only heading levels 1 and 2 may have contents window
  75. entries (toc=12), the preceding "Third-Level Heading" title
  76. of an :hp2.h3:ehp2. tag and this text following it become part
  77. of the window defined by the preceding :hp2.h2:ehp2. tag.
  78. .*
  79. :h2 res=029 toc=123.Yet Another Second-Level Heading
  80. :p.
  81. The :hp2.h2.:ehp2. tag for this window contains
  82. a :hp2.toc=123:ehp2. specification.
  83. .*
  84. :h3 res=030.Third-Level Heading
  85. :p.
  86. Because the toc=123 in the preceding :hp2.h2:ehp2. tag
  87. overrides the toc=12 in the docprof tag, this :hp2.h3.:ehp2.
  88. tag defines a new window and creates a contents entry.
  89. .*
  90. .**********************************************************
  91. .*
  92. .* ORIGIN AND SIZE WINDOW EXAMPLE
  93. .*
  94. .**********************************************************
  95. .*
  96. :h1.Origin and Size Window Example
  97. :p.
  98. Origin and Size Window Example.
  99. :p.
  100. Select the "Primary Window" heading from the Contents window
  101. to see the effects of the sample tagging.
  102. .*
  103. :h2 res=003
  104.     x=left y=bottom width=50% height=100%.
  105. Primary Window
  106. :p.
  107. Here is the text for the primary window.  This is a
  108. :link reftype=hd res=004.hypertext link:elink.
  109. to the secondary window.
  110. .*
  111. :h2 res=004
  112.     x=right y=bottom width=50% height=100%.
  113. Secondary Window
  114. :p.
  115. Here is the text for the secondary window.  This is a
  116. :link reftype=hd res=003.hypertext link:elink.
  117. to the primary window.
  118. .*
  119. .**********************************************************
  120. .*
  121. .* WINDOW GROUP NUMBER EXAMPLE
  122. .*
  123. .**********************************************************
  124. .*
  125. :h1.Window Group Number Example
  126. :p.
  127. Window Group Number Example.
  128. :p.
  129. Select the "My First Window" heading from the Contents window
  130. to see the effects of the sample tagging.
  131. .*
  132. :h2 res=005
  133.     x=left y=bottom width=50% height=100%
  134.     group=1.
  135. My First Window
  136. :p.
  137. Here is the text for the first window.
  138. This is a
  139. :link reftype=hd res=006.hypertext link:elink.
  140. to the second window.
  141. :p.
  142. This is a
  143. :link reftype=hd res=007.hypertext link:elink.
  144. to the third window.
  145. .*
  146. :h2 res=006
  147.     x=right y=top width=50% height=100%
  148.     group=2.
  149. My Second Window
  150. :p.
  151. Here is the text for the second window.
  152. This is a
  153. :link reftype=hd res=005.hypertext link:elink.
  154. to the first window.
  155. :p.
  156. This is a
  157. :link reftype=hd res=007.hypertext link:elink.
  158. to the third window.
  159. .*
  160. :h2 res=007
  161.     x=right y=top width=50% height=100%
  162.     group=2.
  163. My Third Window
  164. :p.
  165. Here is the text for the third window.
  166. This is a
  167. :link reftype=hd res=005.hypertext link:elink.
  168. to the first window.
  169. :p.
  170. This is a
  171. :link reftype=hd res=006.hypertext link:elink.
  172. to the second window.
  173. .*
  174. .**********************************************************
  175. .*
  176. .* AUTOMATIC WINDOWS EXAMPLE
  177. .*
  178. .**********************************************************
  179. .*
  180. :h1.Automatic Windows Example
  181. :p.
  182. Automatic Windows Example.
  183. :p.
  184. Select the "Example 1" heading from the Contents window
  185. to see the effects of the sample tagging.
  186. .*
  187. .* AUTOMATIC WINDOWS EXAMPLE ONE
  188. .*
  189. :h2 res=008
  190.     x=left y=top width=25% height=100%
  191.     scroll=none group=1 clear.
  192. Example 1
  193. :p.
  194. This is Window 1.
  195. :p.
  196. This window has three automatic links to
  197. Windows 2, 3, and 4.
  198. :link reftype=hd res=009
  199.       vpx=25% vpy=top vpcx=25% vpcy=100%
  200.       group=2 auto dependent.
  201. :link reftype=hd res=010
  202.       vpx=50% vpy=top vpcx=25% vpcy=100%
  203.       group=3 auto dependent.
  204. :link reftype=hd res=011
  205.       vpx=75% vpy=top vpcx=25% vpcy=100%
  206.       group=4 auto dependent.
  207. .*
  208. :h2 res=009
  209.     x=25% y=top width=25% height=100%
  210.     scroll=none hide.
  211. Window 2
  212. :p.
  213. This is  Window 2.
  214. .*
  215. :h2 res=010
  216.     x=50% y=top width=25% height=100%
  217.     scroll=none hide.
  218. Window 3
  219. :p.
  220. This is Window 3.
  221. .*
  222. :h2 res=011
  223.     x=75% y=top width=25% height=100%
  224.     scroll=none hide.
  225. Window 4
  226. :p.
  227. This is Window 4.
  228. .*
  229. .* AUTOMATIC WINDOWS EXAMPLE TWO
  230. .*
  231. :h2 res=012
  232.     x=left y=top width=25% height=100%
  233.     scroll=none group=1 clear.
  234. Example 2
  235. :p.
  236. This is Window 1.
  237. :p.
  238. This window has an automatic link to
  239. Window 2.
  240. :link reftype=hd res=013
  241.       vpx=25% vpy=top vpcx=25% vpcy=100%
  242.       group=2 auto dependent.
  243. .*
  244. :h1 res=013
  245.     x=25% y=top width=25% height=100%
  246.     scroll=none hide.
  247. Window 2
  248. :p.
  249. This is Window 2.
  250. :p.
  251. This window has an automatic link to
  252. Window 3.
  253. :link reftype=hd res=014
  254.       vpx=50% vpy=top vpcx=25% vpcy=100%
  255.       group=3 auto dependent.
  256. .*
  257. :h1 res=014
  258.     x=50% y=top width=25% height=100%
  259.     scroll=none hide.
  260. Window 3
  261. :p.
  262. This is Window 3.
  263. :p.
  264. This paragraph contains a
  265. :link reftype=hd res=015
  266.       vpx=75% vpy=top vpcx=25% vpcy=100%
  267.       group=4 dependent.hypertext link:elink.
  268. to Window 4.
  269. .*
  270. :h1 res=015
  271.     x=75% y=top width=25% height=100%
  272.     scroll=none hide.
  273. Window 4
  274. :p.
  275. This is Window 4.
  276. .*
  277. .**********************************************************
  278. .*
  279. .* SPLIT WINDOWS EXAMPLE
  280. .*
  281. .**********************************************************
  282. .*
  283. :h1.Split Windows Example
  284. :p.
  285. Split Windows Example.
  286. :p.
  287. Select the "Primary Window A" heading from the Contents window
  288. to see the effects of the sample tagging.
  289. .*
  290. .* Parent window "A" and two child windows
  291. .*
  292. :h2 res=016 scroll=none clear.
  293. Primary Window A
  294. .*
  295. :link reftype=hd res=017 auto split group=10
  296.       vpx=left vpy=top vpcx=50% vpcy=100%
  297.       rules=border scroll=none titlebar=none.
  298. :link reftype=hd res=018 auto split group=11
  299.       vpx=right vpy=top vpcx=50% vpcy=100%
  300.       rules=border scroll=none titlebar=none.
  301. .*
  302. :h2 res=017 hide nosearch noprint.Dummy
  303. :p.
  304. This secondary window contains hypertext links
  305. to the adjacent secondary window.
  306. :p.
  307. Select one:
  308. :sl compact.
  309. :li.:link reftype=hd res=018 split group=11
  310.           vpx=right vpy=top vpcx=50% vpcy=100%
  311.           rules=border scroll=none titlebar=none.
  312. Ducks:elink.
  313. :li.:link reftype=hd res=019 split group=11
  314.           vpx=right vpy=top vpcx=50% vpcy=100%
  315.           rules=border scroll=none titlebar=none.
  316. World:elink.
  317. :esl.
  318. .*
  319. :h2 res=018 hide nosearch noprint.Dummy
  320. :artwork name='ducks.bmp' fit.
  321. .*
  322. :h2 res=019 hide nosearch noprint.Dummy
  323. :artwork name='world.bmp' fit.
  324. .*
  325. .* Parent window "B" and three child windows
  326. .*
  327. :h2 res=022 scroll=none titlebar=none rules=none clear.
  328. Primary Window B
  329. :link reftype=hd res=023 auto split group=10
  330.       vpx=left vpy=top vpcx=40% vpcy=100%
  331.       scroll=none titlebar=none rules=none.
  332. :link reftype=hd res=024 auto split group=11
  333.       vpx=right vpy=top vpcx=60% vpcy=20%
  334.       scroll=none titlebar=none rules=none.
  335. :link reftype=hd res=025 auto split group=12
  336.       vpx=right vpy=bottom vpcx=60% vpcy=80%
  337.       scroll=none titlebar=none rules=none.
  338. .*
  339. :h2 res=023 hide nosearch noprint.Dummy
  340. :lm margin=5.
  341. :rm margin=2.
  342. :p.
  343. :font facename='Tms Rmn' size=24x12.
  344. :color bc=green.:hp2.TREES LOVE IPF:ehp2.
  345. :color bc=cyan.:hp3.TREES LOVE IPF:ehp3.
  346. :color bc=green.:hp4.TREES LOVE IPF:ehp4.
  347. :color bc=cyan.:hp5.TREES LOVE IPF:ehp5.
  348. :color bc=green.:hp6.TREES LOVE IPF:ehp6.
  349. :color bc=cyan.:hp7.TREES LOVE IPF:ehp7.
  350. :color bc=green.:hp8.TREES LOVE IPF:ehp8.
  351. :color bc=cyan.:hp9.TREES LOVE IPF:ehp9.
  352. :color bc=green.:hp2.TREES LOVE IPF:ehp2.
  353. .*
  354. :h2 res=024 hide nosearch noprint.Dummy
  355. :p.&rbl.
  356. .*
  357. :h2 res=025 hide rules=none nosearch noprint.Dummy
  358. :rm margin=3.
  359. :font facename='Helv' size=18x9.
  360. :p.
  361. The Information Presentation Facility (IPF) is a set of tools
  362. that supports the design and development of an online help
  363. facility that is accessed by users of your application.
  364. :p.
  365. IPF also supports the design and development of online
  366. information that may be viewed independently of an application.
  367. These files are compiled with the /INF parameter of the IPF
  368. compiler, and they are viewed by entering the name of the
  369. compiled file as a parameter of the VIEW program.
  370. .*
  371. .**********************************************************
  372. .*
  373. .* HYPERGRAPHIC LINK EXAMPLE
  374. .*
  375. .**********************************************************
  376. .*
  377. :h1.Hypergraphic Link Example
  378. :p.
  379. Hypergraphic Link Example.
  380. :p.
  381. Select the "Hypergraphic Link" heading from the Contents window
  382. to see the effects of the sample tagging.
  383. .*
  384. :h2.Hypergraphic Link
  385. :p.
  386. This is an example of a hypergraphic link.  Select the
  387. "shuttle" bit map graphic and get ready for a
  388. walk on the moon.
  389. :artwork name='shuttle.bmp' align=center.
  390. :artlink.
  391. :link reftype=hd res=1153 dependent.
  392. :eartlink.
  393. .*
  394. :h2 res=1153 clear hide.The Moonwalk Bit Map
  395. :artwork name='moonwalk.bmp'.
  396. :p.
  397. To return to Earth, press the Esc key.
  398. .*
  399. .**********************************************************
  400. .*
  401. .* ACVIEWPORT TAG EXAMPLE
  402. .*
  403. .**********************************************************
  404. .*
  405. :h1.Application-Controlled Window Example
  406. :p.
  407. Application-Controlled Window Example.
  408. :p.
  409. Select the "IPF-Controlled Window" heading from the Contents window
  410. to see the effects of the sample tagging.
  411. .*
  412. :h2 x=left y=top width=45% height=100%
  413.     scroll=none titlebar=both clear group=1.
  414. IPF-Controlled Window
  415. :link reftype=hd res=1173
  416.       vpx=45% vpy=bottom vpcx=55% vpcy=100%
  417.       scroll=none auto dependent group=2.
  418. :p.
  419. Notice that as the text that follows describes the use of a
  420. mouse, the panel on the right contains an &colon.acviewport
  421. tag, which enables IPF.DLL to graphically demonstrate the
  422. use of a mouse.
  423. :p.
  424. You move the pointer (usually an arrow) so that it points at
  425. the objects and actions you want to select.
  426. :p.
  427. If you run out of room to slide the mouse, lift it up, put it
  428. back down, and slide it again.
  429. :p.
  430. The left&hyphen.hand mouse button (or mouse button 1) is
  431. usually used to select objects on the screen.
  432. :p.
  433. The right&hyphen.hand mouse button (or mouse button 2) is
  434. usually used to :hp1.drag:ehp1. or move objects around the
  435. screen.
  436. .*
  437. :h2 res=1173.Application-Controlled Window
  438. .*
  439. :acviewport dll='ipf' objectname='IPFMain' objectid=1
  440. vpx=right vpy=top vpcx=55% vpcy=100%.
  441. :euserdoc.
  442. .*
  443. .**********************************************************
  444.