home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
-
- global gSRCH_userFoundCount
- if gSRCH_userFoundCount = 0 then
- exit
- end if
-
-
- PrintInstDetails
- end
-
- on PrintInstDetails
-
- set doc = createXtraInstance()
- if not objectP(doc) then exit
-
- SetDocumentAttributes doc
-
- AppendHeader doc
- AppendList doc
- AppendFooter doc
- PrintDocument doc
-
- deleteXtraInstance doc
-
- end
-
- on AppendHeader doc
- append doc, member "List of Courses Print Heading"
- --
- -- INSTITUTE name
- setTextFont doc, "Arial"
- setTextSize doc, 14
- setTextStyle doc, "bold"
- --append doc, the text of member "InstName"
- append doc, RETURN
- append doc, RETURN
- end
-
- on AppendFooter doc
- append doc, member "visit website graphic"
- append doc, RETURN
- setTextFont doc, "Arial"
- setTextSize doc, 10
- setTextStyle doc, "Bold"
- append doc, "For further information please contact an IDP office:"
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
- setTextStyle doc, "normal"
- global IDPoffice
- append doc, IDPoffice
-
- end
-
- on AppendList doc
-
-
- set tempCount to count(the valueList of Sprite 5 )
-
- set TempInstCode to ""
-
- repeat with i = 1 to tempCount
- set thisname to getAt (the instCodeList of Sprite 5, i)
-
- if TempInstCode <> thisname then
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
-
- append doc, GEN_GetInstNameFromCode(getAt (the instCodeList of Sprite 5, i))
- append doc, RETURN
- set i = i -1
-
- set TempInstCode to thisname
- setTextFont doc, "Arial"
- setTextSize doc, 10
- setTextStyle doc, "normal"
-
- else
- if TempInstCode = thisname then
- append doc, getAt(the valueList of Sprite 5, i)
- append doc, RETURN
- end if
-
- end if
- end repeat
-
- append doc, RETURN
- append doc, RETURN
-
- end
-
-
- -- Change document attributes
- on SetDocumentAttributes doc
-
- setDocumentName doc, "List of Courses"
- setLandscapeMode doc, FALSE
- setMargins doc, Rect(70,55,70,70)
- end
-
-
-
-