home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / a / amiga_vision_professional / amigavisionprofessiv2.04e.dms / in.adf / ClickLineWordChar.doc < prev    next >
Encoding:
Text File  |  1992-12-01  |  2.1 KB  |  46 lines

  1. NAME
  2.     ClickLineWordChar.AVf
  3.  
  4.  
  5. DESCRIPTION
  6.     ClickLineWordChar.AVf demonstrates how AmigaVision Professional can
  7.     return the specific line, word and even character that is clicked on
  8.     within a Text Window.
  9.  
  10.     This example flow presents the user with a text window and four hit
  11.     boxes: "Line Up", "Line Down", "Page Up", and "Page Down". Clicking on
  12.     these hit boxes controls the text within the Text Window.
  13.  
  14.     Clicking in the Text Window will trigger AmigaVision Professional to
  15.     display the line, word and character that was clicked on in the
  16.     three display fields at the bottom of the screen. Pressing the ESC
  17.     key exits the example.
  18.  
  19.     AmigaVision Professional Text Windows are not restricted to the TEXT
  20.     Icon. In this example flow, the Text Window is displayed using a GFX
  21.     Icon. When the Text Window is displayed in an icon other than the TEXT
  22.     Icon the following rules must be followed:
  23.        1) In order for the Page Up, Page Down, Line Up, Line Down and
  24.        Quit hit boxes to affect the Text Window, the Text Window
  25.        and associated hit boxes must be sub-objects within the same
  26.        super object.
  27.  
  28.        2) In order to use ObjGet to retrieve the line, word or character
  29.        clicked on, the Text Window must have a response string.
  30.  
  31.     The "Calculate ClickLine" VARIABLE Icon uses the ObjGet function to
  32.     return the value of the ClickLine attribute of the "TWindow" Text
  33.     Window object. "Calculate ClickWord" and "Calculate ClickChar" VARIABLE
  34.     Icons work in the same way.
  35.  
  36.     If this flow is moved, AmigaVision will not move the text file in the
  37.     Text Window object if the GFX Icon. To make sure that this text file
  38.     gets copied during an Install/Relocate, it is placed in a dummy
  39.     RESOURCE Icon. This RESOURCE Icon is never executed, but because it is
  40.     in the flow, AV will copy its contents (i.e. the text file).
  41.  
  42.     To make sure that the pathname which specifies the text file is
  43.     currect, the variable OnlyPath is used. Using the self() function in
  44.     the Get Pathname VARIABLES Icon, AmigaVision can determine where the
  45.     flow has been placed and where the text file is.
  46.