home *** CD-ROM | disk | FTP | other *** search
- on refreshprogramdetails
- global DriveLtr, SLIdatabaselist, SLIchosenprogramdetails, SLImainmenuhilitenumber, SLImainmenutextnumber, SLIsunmenuhilitenumber, SLImainmenubacknumber, SLIsubmenubacknumber, SLIsubmenuhilitenumber, SLIsubmenutextnumber, SLIactiveprogramlist, SLIBackArrowNumber, SLIForwardArrowNumber, SLIsubmenubackshadownumber, SLIActionButton, SLICopyButton, SLItextboxframe, SLIInfoTabRect, SLIProcTabRect, SLIExtraTabRect, SLIpicturebox, SLITextBoxContents, SLITextFilesLoaded, SLIplatformcheckbox, SLIRunButtonList, SLIInstallButtonList, SLIActionList, SLIFullTextOptionBox, SLITextLoadOptionRect, SLIFullTextTick, SLIPictureBoxNumber, SLIAddressBoxNumber, SLIProductBoxNumber, SLIPlatformCheck01, SLIPlatformCheck02, SLIPlatformCheck03, SLIPlatformCheck04, SLIInstallButtonTextBox, SLIRunButtonTextBox, SLICopyWIthInstallTextBox, SLICopyWIthRunTextBox, SLIExecuteTextBox
- set the loc of sprite SLIpicturebox to point(2000, 2000)
- set the loc of sprite SLITextBoxContents to point(2000, 2000)
- updateStage()
- put EMPTY into field "productnamebox"
- put EMPTY into field "addressbox"
- put EMPTY into field "longtext"
- put EMPTY into field "processreqtext"
- put EMPTY into field "extrareqtext"
- set contactinfo to EMPTY
- set the text of member "temptext" to " "
- set the picture of member "picturemember" to the picture of member "slidot"
- set addressboxcontents to EMPTY
- updateStage()
- put the realname of SLIchosenprogramdetails after field "productnamebox"
- if the version of SLIchosenprogramdetails > EMPTY then
- put " (ver. " & the version of SLIchosenprogramdetails & ")" after field "productnamebox"
- end if
- put the supplier of SLIchosenprogramdetails after contactinfo
- if the supplier of SLIchosenprogramdetails > EMPTY then
- put RETURN after contactinfo
- end if
- put the contactstreet of SLIchosenprogramdetails after contactinfo
- if the contactstreet of SLIchosenprogramdetails > EMPTY then
- put RETURN after contactinfo
- end if
- put the contacttown of SLIchosenprogramdetails after contactinfo
- if the contacttown of SLIchosenprogramdetails > EMPTY then
- put RETURN after contactinfo
- end if
- put the contactcounty of SLIchosenprogramdetails after contactinfo
- if the contactcounty of SLIchosenprogramdetails > EMPTY then
- put RETURN after contactinfo
- end if
- put the contactpostcode of SLIchosenprogramdetails after contactinfo
- if the contactpostcode of SLIchosenprogramdetails > EMPTY then
- put RETURN after contactinfo
- end if
- put the contactcountry of SLIchosenprogramdetails after contactinfo
- if the contactcountry of SLIchosenprogramdetails > EMPTY then
- put RETURN after contactinfo
- end if
- if the contacttelephone of SLIchosenprogramdetails > EMPTY then
- put RETURN & "Tel: " & the contacttelephone of SLIchosenprogramdetails after contactinfo
- end if
- if the contactemail of SLIchosenprogramdetails > EMPTY then
- put RETURN & "Email: " & the contactemail of SLIchosenprogramdetails after contactinfo
- end if
- if the webaddress of SLIchosenprogramdetails > EMPTY then
- put RETURN & "Web Address: " & the webaddress of SLIchosenprogramdetails after contactinfo
- end if
- put contactinfo into field "addressbox"
- set the rect of member "addressbox" to rect(0, 0, 300, 100)
- set the textAlign of member "addressbox" to "left"
- set the textSize of member "addressbox" to 12
- set the textHeight of member "addressbox" to 16
- if the ImageFile of SLIchosenprogramdetails > EMPTY then
- set the picture of member "picturemember" to the picture of member the ImageFile of SLIchosenprogramdetails
- set the regPoint of member "picturemember" to point(0, 0)
- set the member of sprite SLIpicturebox to member "picturemember"
- set the rect of sprite SLIpicturebox to the rect of member "picturemember"
- set the loc of sprite SLIpicturebox to point(430, 39)
- end if
- set the textHeight of member "longtext" to 16
- set the rect of member "longtext" to rect(0, 0, 425, 11 * the textHeight of member "longtext")
- set the boxType of member "longtext" to #scroll
- set the border of member "longtext" to 1
- set the textAlign of member "longtext" to "left"
- set the textSize of member "longtext" to 12
- set the textHeight of member "processreqtext" to 16
- set the rect of member "longtext" to rect(0, 0, 425, 11 * the textHeight of member "processreqtext")
- set the boxType of member "processreqtext" to #fixed
- set the border of member "processreqtext" to 1
- set the textAlign of member "processreqtext" to "left"
- set the textSize of member "processreqtext" to 12
- set the textHeight of member "extrareqtext" to 16
- set the rect of member "longtext" to rect(0, 0, 425, 11 * the textHeight of member "extrareqtext")
- set the boxType of member "extrareqtext" to #fixed
- set the border of member "extrareqtext" to 1
- set the textAlign of member "extrareqtext" to "left"
- set the textSize of member "extrareqtext" to 12
- if the TextFile of SLIchosenprogramdetails > EMPTY then
- if SLITextFilesLoaded = 1 then
- set the loc of sprite SLIFullTextOptionBox to point(78, 325)
- set the loc of sprite SLIFullTextTick to point(135, 321)
- set the boxType of member "longtext" to #scroll
- set the rect of member "longtext" to rect(0, 0, 437, 11 * the textHeight of member "longtext")
- set opentextfile to FileIO(mnew, "read", DriveLtr & the TextFile of SLIchosenprogramdetails)
- put "opentextfile = " & opentextfile
- set thisFile to opentextfile(mReadFile)
- opentextfile(mdispose)
- put thisFile into field "longtext"
- tidyuptext("longtext")
- set the rect of sprite SLITextBoxContents to the rect of member "longtext"
- set the member of sprite SLITextBoxContents to member "longtext"
- set the loc of sprite SLITextBoxContents to point(172, 249)
- set the member of sprite SLItextboxframe to member "infotab1"
- else
- set the loc of sprite SLIFullTextOptionBox to point(78, 325)
- set the loc of sprite SLIFullTextTick to point(2000, 2000)
- set the boxType of member "longtext" to #fixed
- set the rect of member "longtext" to rect(0, 0, 453, 11 * the textHeight of member "longtext")
- set substitutetext to the briefdescription of SLIchosenprogramdetails & RETURN & RETURN
- put "More information is available by selecting " & QUOTE & "Import full text file" & QUOTE after substitutetext
- put substitutetext into field "longtext"
- set the rect of sprite SLITextBoxContents to the rect of member "longtext"
- set the member of sprite SLITextBoxContents to member "longtext"
- set the loc of sprite SLITextBoxContents to point(172, 249)
- set the member of sprite SLItextboxframe to member "infotab1"
- end if
- else
- set the loc of sprite SLIFullTextOptionBox to point(2000, 2000)
- set the loc of sprite SLIFullTextTick to point(2000, 2000)
- set the boxType of member "longtext" to #fixed
- set the rect of member "longtext" to rect(0, 0, 453, 11 * the textHeight of member "longtext")
- set substitutetext to the briefdescription of SLIchosenprogramdetails & RETURN & RETURN
- put "No further information" after substitutetext
- put substitutetext into field "longtext"
- set the rect of sprite SLITextBoxContents to the rect of member "longtext"
- set the member of sprite SLITextBoxContents to member "longtext"
- set the loc of sprite SLITextBoxContents to point(172, 249)
- set the member of sprite SLItextboxframe to member "infotab1"
- updateStage()
- end if
- set the boxType of member "processreqtext" to #fixed
- set the rect of member "processreqtext" to rect(0, 0, 453, 11 * the textHeight of member "processreqtext")
- put the processreqs of SLIchosenprogramdetails into field "processreqtext"
- set the boxType of member "extrareqtext" to #fixed
- set the rect of member "extrareqtext" to rect(0, 0, 453, 11 * the textHeight of member "extrareqtext")
- put the extrareqs of SLIchosenprogramdetails into field "extrareqtext"
- set playinstcopyoption to the playinstcopy of SLIchosenprogramdetails
- case playinstcopyoption of
- "installs":
- set SLIActionList to SLIInstallButtonList
- set the loc of sprite SLIActionButton to point(230, 455)
- set installfilesize to the installationsize of SLIchosenprogramdetails
- set copyfilesize to the storedsize of SLIchosenprogramdetails
- put EMPTY into field "actionbuttontextbox"
- put EMPTY into field "copybuttontextbox"
- put SLIInstallButtonTextBox & RETURN into field "actionbuttontextbox"
- put RETURN & "Installation requires " & installfilesize & " Kb of disk space" & RETURN after field "actionbuttontextbox"
- put RETURN & "Continue Cancel" after field "actionbuttontextbox"
- put SLICopyWIthInstallTextBox & RETURN into field "copybuttontextbox"
- put RETURN & "Copying requires " & copyfilesize & " Kb of disk space" & RETURN after field "copybuttontextbox"
- put RETURN & "Continue Cancel" after field "copybuttontextbox"
- "playable":
- set SLIActionList to SLIRunButtonList
- set the loc of sprite SLIActionButton to point(230, 455)
- set installfilesize to the installationsize of SLIchosenprogramdetails
- set copyfilesize to the storedsize of SLIchosenprogramdetails
- put EMPTY into field "actionbuttontextbox"
- put EMPTY into field "copybuttontextbox"
- put SLIRunButtonTextBox & RETURN into field "actionbuttontextbox"
- put RETURN & "Continue Cancel" after field "actionbuttontextbox"
- put SLICopyWIthRunTextBox & RETURN into field "copybuttontextbox"
- put RETURN & "Installation requires " & copyfilesize & " Kb of disk space" & RETURN after field "copybuttontextbox"
- put RETURN & "Continue Cancel" after field "copybuttontextbox"
- "copy only":
- set the loc of sprite SLIActionButton to point(2000, 2000)
- put EMPTY into field "copybuttontextbox"
- put SLICopyWIthInstallTextBox & RETURN into field "copybuttontextbox"
- put RETURN & "Copying requires " & copyfilesize & " Kb of disk space" & RETURN after field "copybuttontextbox"
- put RETURN & "Continue Cancel" after field "copybuttontextbox"
- end case
- set the member of sprite SLIActionButton to member getAt(SLIActionList, 1)
- set thisplatform to the platform of SLIchosenprogramdetails
- set dosloc to point(406, 439)
- set w31loc to point(406, 455)
- set w95loc to point(512, 439)
- set wntloc to point(512, 455)
- case thisplatform of
- "DOS":
- set the loc of sprite SLIPlatformCheck01 to dosloc
- set the loc of sprite SLIPlatformCheck02 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck03 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck04 to point(2000, 2000)
- "Windows 3.x":
- set the loc of sprite SLIPlatformCheck01 to w31loc
- set the loc of sprite SLIPlatformCheck02 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck03 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck04 to point(2000, 2000)
- "Windows 95":
- set the loc of sprite SLIPlatformCheck01 to w95loc
- set the loc of sprite SLIPlatformCheck02 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck03 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck04 to point(2000, 2000)
- "Windows 3.x and 95":
- set the loc of sprite SLIPlatformCheck01 to w31loc
- set the loc of sprite SLIPlatformCheck02 to w95loc
- set the loc of sprite SLIPlatformCheck03 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck04 to point(2000, 2000)
- "Windows 95 and NT":
- set the loc of sprite SLIPlatformCheck01 to w95loc
- set the loc of sprite SLIPlatformCheck02 to wntloc
- set the loc of sprite SLIPlatformCheck03 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck04 to point(2000, 2000)
- "Windows NT only":
- set the loc of sprite SLIPlatformCheck01 to wntloc
- set the loc of sprite SLIPlatformCheck02 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck03 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck04 to point(2000, 2000)
- "OS2":
- set the loc of sprite SLIPlatformCheck01 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck02 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck03 to point(2000, 2000)
- set the loc of sprite SLIPlatformCheck04 to point(2000, 2000)
- end case
- set the loc of sprite 8 to point(170, 39)
- set the loc of sprite 9 to point(170, 57)
- cursor(4)
- updateStage()
- cursor(0)
- updateStage()
- cursor(-1)
- updateStage()
- end
-