home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- PrintInstDetails
- end
-
-
- on PrintInstDetails
-
- set doc = createXtraInstance() -- Create instance of PrintOmatic Lite xtra
-
-
- SetDocumentAttributes doc
- -- Append text
-
-
- AppendHeader doc
- AppendFactFile doc
- AppendDescription doc
- AppendPrerequisite doc
- AppendFooter doc
-
- PrintDocument doc
-
- deleteXtraInstance doc
-
- -- delete the xtra instance
- set doc = 0
-
- end
-
-
- on AppendHeader doc
- append doc, member "Course Details Print Heading"
- --
- -- INSTITUTE & Course Name
- setTextFont doc, "Arial"
- setTextSize doc, 14
- setTextStyle doc, "bold"
- append doc, the text of member "name"
- 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 AppendFactFile doc
- --
- -- FactFile
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
- append doc, "FactFile"
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
- setTextStyle doc, "normal"
- append doc, the text of member "FactFile"
- append doc, RETURN
- append doc, RETURN
- end
-
-
-
- on AppendDescription doc
- --
- -- Academic
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
- append doc, "Course Description"
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
- setTextStyle doc, "normal"
- append doc, the text of member "Description"
- append doc, RETURN
- append doc, RETURN
- end
-
- on AppendPrerequisite doc
- --
- -- Student Services
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
- append doc, "Pre-requisite Subjects "
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
- setTextStyle doc, "normal"
-
- append doc, the text of member "Pre-requisite"
- append doc, RETURN
- append doc, RETURN
- end
-
- on AppendAccommodation doc
- --
- -- Accommodation
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
- append doc, "Accommodation"
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
- setTextStyle doc, "normal"
- append doc, the text of member "accommodation"
- append doc, RETURN
- append doc, RETURN
-
- end
-
- on AppendFurtherInfo doc
- --
- -- Further Information
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
- append doc, "Further Information"
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
- setTextStyle doc, "bold"
- append doc, "Enquiry and Application points: "
- setTextStyle doc, "normal"
- append doc, the text of member "enquiry"
- append doc, RETURN
- setTextStyle doc, "bold"
- append doc, "Orientation Days: "
- setTextStyle doc, "normal"
- append doc, the text of member "orientation"
- append doc, RETURN
- append doc, RETURN
- end
-
- on AppendFinance doc
- --
- -- Finance
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
- append doc, "Finance"
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
- setTextStyle doc, "bold"
- append doc, "Scholarships Available: "
- setTextStyle doc, "normal"
- append doc, the text of member "Scholarships"
- append doc, RETURN
- append doc, RETURN
- end
-
- on AppendCampus doc
- --
- -- Campuses
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
- append doc, "Campuses"
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
-
- global Campuslist
- set tempCount = count(Campuslist)
- repeat with i= 1 to tempCount
- set temptext to getPropAt(Campuslist, i)
- setTextStyle doc, "bold"
- append doc, item 1 of temptext
- append doc, " - "
- setTextStyle doc, "normal"
- append doc, RETURN
- append doc, item 2 of temptext
- append doc, RETURN
- end repeat
- append doc, RETURN
- end
-
-
-
- -- Add items to Document
- on AppendStudyAbroad doc
- --
- -- Study Abroad
- setTextFont doc, "Arial"
- setTextSize doc, 12
- setTextStyle doc, "bold"
- append doc, "Study Abroad"
- append doc, RETURN
-
- setTextFont doc, "Times New Roman"
- setTextSize doc, 10
- setTextStyle doc, "normal"
- append doc, the text of member "StudyAbroad"
- append doc, RETURN
-
- end
-
- -- Change document attributes
- on SetDocumentAttributes doc
-
- setDocumentName doc, "Course Details"
- setLandscapeMode doc, FALSE
- setMargins doc, Rect(70,55,70,70)
- end
-
-
-