home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global whDate, whyear, theArticle
- set theList to item whyear of whDate & "L"
- if the doubleClick and (the mouseLine <> -1) then
- dontPassEvent()
- exit
- end if
- set lastIndexLine to -1
- set mLine to the mouseLine
- if (mLine = -1) or (mLine > the number of lines in field 971) or (the number of chars in line mLine of field 971 <= 5) then
- pass()
- else
- set executeOnce to 0
- repeat while the stillDown or (executeOnce = 0)
- set mLine to the mouseLine
- if (mLine <> lastIndexLine) and (mLine <> -1) then
- set the foreColor of line lastIndexLine of field 971 to 255
- set the foreColor of line mLine of field 971 to 3
- set lastIndexLine to mLine
- set executeOnce to 1
- set theArticle to line mLine of field string(theList)
- winArticle()
- end if
- end repeat
- end if
- end
-