home *** CD-ROM | disk | FTP | other *** search
/ The Stock Market: Browser - Disc 1 / TheStockMarketRoyaltyFreeImages-BrowserDisc1-WinMac.bin / mac / Deutsch / Main.dir / 00001_Script_MAIN next >
Text File  |  2000-02-10  |  23KB  |  897 lines

  1. global gAppButton, NewPath
  2.  
  3. on LaunchBrowser
  4.   if the machineType = 256 then
  5.     --Here is where you put the PC browser pathname:
  6.     --use backslashes for the PC "\"
  7.     --open NewPath&"CDBROWSE.EXE"
  8.     open the pathname&"Browser_1.fdb" with "Portfolio\PortBrws.exe"
  9.   else
  10.     --here is where you put the mac browser pathname:
  11.     --use colons for the mac":"
  12.     open "Browser 1:Deutsch:Browser 1" with "Browser 1:Deutsch:Sonstiges:Portfolio Browser 4.0"
  13.   end if    
  14. end
  15.  
  16.  
  17. On netLaunchNow
  18.   gotoNetPage "http://www.stockmarketphoto.com"
  19.   -- with browserName()
  20. end
  21.  
  22.  
  23. on startmovie  
  24.   set the exitLock = 1
  25.   if voidP(newPath) then set newPath = the pathname
  26.   
  27.   ---Check if the Extra Buttons should be present
  28.   global gAppButton, gNumButtonB
  29.   
  30.   
  31.   
  32.   
  33.   ---Fade out sound from opening or QuickTour
  34.   sound fadeout 3,500
  35.   sound fadeout 2,500
  36.   sound fadeout 1,500
  37.   
  38.   ---Rollover Variable(cursor changes on every sprite EXCEPT this sprite
  39.   global gPrimException
  40.   put 1 into gPrimException
  41.   
  42.   ----Initialize Button Variables:
  43.   global findingButt, moreButt, launchButt, QuitButt, AboutButt, CatButt, KeyButt, CompButt, TransButt, DigButt, CatalogButt, AppButt, OKButt, MenuButt, PrintButt, gFaxButt, gPrintButt, gLMenuButt, gLOKButt, gNumButt,NetButt, gOK2Butt
  44.   
  45.   
  46.   ----Assign Buttons Generic TSM Button Script.
  47.   set launchButt=new(script"TSMButton",16,"Launch",0,0,1,"LAUNCH1")
  48.   set netButt=new(script"TSMButton",17,"Internet",0,0,1,"INTERNET")
  49.   set findingButt=new(script"TSMButton",13,"Find",0,0,1,"FINDING")
  50.   set moreButt = new (script"TSMButton", 15,"More",0,0,1,"MORE1")
  51.   set quitButt=new(script"TSMButton",18,"Quit",0,0,1,"Quit1")
  52.   
  53.   set CatButt = new(script "TSMButton",22,"Cat",560,230,0,"Category")
  54.   set KeyButt = new(script "TSMButton",23,"Key",560,260,0,"KeyWord")
  55.   set CompButt = new(script "TSMButton",27,"Comp",560,290,0,"Comps")
  56.   
  57.   set aboutButt = new(script "TSMButton",19,"About",560,230,0,"About1")
  58.   set CatalogButt = new(script "TSMButton",33,"Catalog",560,260,0,"Catalog1")
  59.   set TransButt = new(script"TSMButton",29,"Trans",560,290,0,"Transparency")
  60.   set DigButt = new(script "TSMButton",30,"Dig",560,320,0,"Digital")
  61.   set AppButt = new(Script "TSMButton",36,"App",560,350,0,"Appreciation")
  62.   
  63.   --printForm Buttons
  64.   global gMainG,gPrint1G,gQuitG,gLaunchG,gPrint2G
  65.   
  66.   set gMainG = new(script "TSMButton",61,"greyMain",0,0,1,"greyMain")
  67.   set gPrint1G = new(script "TSMButton",62,"greyPrint",0,0,1,"greyPrint1")
  68.   set gQuitG = new(script "TSMButton",63,"greyQuit",0,0,1,"GreyQuit1")
  69.   set gLaunchG = new(script "TSMButton",64,"greyLaunch",0,0,1,"GreyLaunch1")
  70.   set gPrint2G = new(script "TSMButton",62,"greyPrint",0,0,1,"greyPrint2")
  71.   
  72.   set gFaxButt = new(script "TSMButton",38,"fax",0,0,1,"TakeMeToForm1")
  73.   set gPrintButt = new(script "TSMButton",39,"StdPrint",0,0,1,"PrintSomeStuff")
  74.   
  75.   --launch screen
  76.   set gLMenuButt = new(script "TSMButton",14,"MenuLaunch",0,0,1,"greyMain")
  77.   set gLOKButt = new(script "TSMButton",15,"OKLaunch",0,0,1,"LaunchBrowser")
  78.   
  79.   
  80.   if voidP(gNumButtonB) then
  81.     -----Extra 2 Buttons either get the normal button behaviour or an EMPTY Button Behaviour:
  82.     ---Searching BY NUMBER:
  83.     --see if it exists:
  84.     put 1 into n
  85.     put 1 into var  
  86.     repeat while var <> ""
  87.       put    getNthFileNameInFolder(NewPath, n) into var
  88.       if var = "Macnum.dir" then
  89.         put 1 into gNumButtonB
  90.       end if
  91.       put 1 + n into n
  92.     end repeat
  93.     
  94.     --Declare it in variable "GNUMBUTTON" (same again below)
  95.     if gNumButtonB = 1 then
  96.       set gNumButt = new(script "TSMButton",24,"Num",560,1000,0,"Number")
  97.     else
  98.       set gNumButt = new(script "TSMNothing")
  99.     end if
  100.     
  101.     ---Appreciation Button
  102.     put 1 into n
  103.     put 1 into var  
  104.     repeat while var <> ""
  105.       put    getNthFileNameInFolder(NewPath, n) into var
  106.       if var = "App.dir" then
  107.         put 1 into gAppButton
  108.       end if
  109.       put 1 + n into n
  110.     end repeat
  111.     
  112.     if gAppButton = 1 then
  113.       set AppButt = new(Script "TSMButton",36,"App",560,350,0,"Appreciation")
  114.     else
  115.       set AppButt = new(script "TSMNothing")
  116.     end if
  117.     
  118.     --emptyTextFields
  119.   end if
  120.   
  121.   
  122.   
  123.   ---This is the time that the user spends on More CDs/More Catalog section
  124.   global gTimeOnEachCatalogPicture
  125.   put 300 into gTimeOnEachCatalogPicture
  126.   
  127. end
  128.  
  129. on keyDown
  130.   global NewPath
  131.   if the commandDown and ¼
  132.    (the key = "." or the key = "q") and ¼
  133.    the exitLock = TRUE or the keyCode = 53 then go to "quit"
  134. end 
  135.  
  136. on BDN1
  137.   puppetsound "click"
  138. end 
  139.  
  140. on TakeMeToForm1
  141.   go to "form1"
  142. end
  143.  
  144.  
  145. on emptyTextFields
  146.   put " " into member "name" of castlib "Input FieldS"
  147.   put " " into member "title" of castlib "Input FieldS"
  148.   put " " into member "colleague" of castlib "Input FieldS"
  149.   put " " into member "ctitle" of castlib "Input FieldS"
  150.   put " " into member "company" of castlib "Input FieldS"
  151.   put " " into member "address" of castlib "Input FieldS"
  152.   put " " into member "city" of castlib "Input FieldS"
  153.   put " " into member "State" of castlib "Input FieldS"
  154.   put " " into member "zip" of castlib "Input FieldS"
  155.   put " " into member "telephone" of castlib "Input FieldS"
  156.   put " " into member "fax" of castlib "Input FieldS"
  157.   put " " into member "email" of castlib "Input FieldS"
  158.   put " " into member "photoNumber" of castlib "Input FieldS"
  159.   put " " into member "Photographer" of castlib "Input FieldS"
  160.   put " " into member "description" of castlib "Input FieldS"
  161.   put " " into member "ResearchDescription" of castlib "Input FieldS"
  162.   put " " into member "copyConcept" of castlib "Input FieldS"
  163.   put " " into member "Quantity" of castlib "Input FieldS"
  164.   put " " into member "endUser" of castlib "Input FieldS"
  165. end
  166.  
  167.  
  168. on PrintSomeStuff
  169.   global gPrintWhat
  170.   put the date&&the time&RETURN&RETURN&RETURN&RETURN into member "Date"
  171.   set the fontstyle of member "DATE" = "italic"
  172.   set the fontsize of member "DATE" = 9
  173.   
  174.   Deactivate(gPrintButt)
  175.   
  176.   ----PrintOMatic Routines:
  177.   set doc = new(xtra "PrintOMatic_Lite")
  178.   if not objectP(doc) then exit
  179.   setDocumentName doc, "Information from TSM"
  180.   append doc, member "HeaderGraphNormal"
  181.   append doc, member "Date"
  182.   append doc, member gPrintWhat
  183.   append doc, member "copyright"
  184.   if doJobSetup(doc) then print doc
  185.   set doc = 0
  186.   ----End pmatic
  187.   
  188.   Deactivate(gPrintButt)
  189.   
  190. end
  191.  
  192.  
  193.  
  194.  
  195. on RollControl
  196.   everyframe(netButt)
  197.   everyframe(findingButt)
  198.   everyframe(moreButt)
  199.   everyframe(LaunchButt)
  200.   everyframe(quitButt)
  201.   everyframe(AboutButt)
  202.   everyframe(catButt)
  203.   everyframe(keyButt)
  204.   everyframe(CompButt)
  205.   everyframe(transButt)
  206.   everyframe(digButt)
  207.   everyframe(CatalogButt)
  208.   everyframe(AppButt)
  209.   everyframe(gNumButt)
  210.   
  211.   checkCursor
  212. end
  213.  
  214. on CheckCursor
  215.   global gPrimException
  216.   put rollover(n) into x
  217.   if x > 12 and x < 20 or x > 21 and x < 25 or x > 26 and x < 31 or x =33 or x=34 or x>35 and x <40 or x= 47 then
  218.     
  219.     if rollover(gPrimException) then
  220.       cursor 0
  221.     else
  222.       PointerCursor
  223.     end if
  224.   else
  225.     cursor 0
  226.   end if
  227. end
  228.  
  229. on concJob
  230.   --  alert "fucking cool"
  231.   go to "ideaDisc"
  232.   turnOff(compButt)
  233.   turnOff(reproButt)
  234.   turnOff(TransButt)
  235.   TurnOff(DigBUtt)
  236.   
  237.   
  238. end
  239.  
  240.  
  241. on PushControl
  242.   nothing
  243.   ---hmmm, what was I thinking?
  244. end=
  245.  
  246.  
  247. on PointerCursor
  248.   --  cursor [13,14]
  249.   cursor 280
  250. end
  251.  
  252. on NormalCursor
  253.   cursor 0
  254. end 
  255.  
  256. on cursorRollControlForm1
  257.   if rollover (36) or rollover (37) or rollover (38) or rollover (39) or rollover (40)¼
  258. or rollover(41) or rollover(46) or rollover(47) or rollover(48) or rollover (49)¼
  259. or rollover(50) or rollover(53) or rollover(54) or rollover(61) or rollover(62)¼
  260. or rollover(63) or rollover(64) then
  261.     PointerCursor
  262.   else
  263.     NormalCursor
  264.   end if
  265. end
  266.  
  267.  
  268.  
  269. on doTheDelay
  270.   global gTimeOnEachCatalogPicture
  271.   if the timer > gTimeOnEachCatalogPicture then
  272.     starttimer
  273.     puppettransition 23
  274.   else
  275.     go the frame
  276.   end if
  277. end
  278.  
  279. on Finding
  280.   if the frameLabel <> "Main" then
  281.     global gPrimException
  282.     put 400 into gPrimException
  283.     go to "main"
  284.     
  285.   end if
  286.   
  287.   turnOn(keybutt)
  288.   turnOn(catbutt)
  289.   turnOn(compbutt)
  290.   
  291.   
  292.   
  293.   ---Extra Sub Button shadow mask
  294.   global gNumButtonB
  295.   if gNumButtonB = 1 then
  296.     
  297.     turnOn(gNumButt)
  298.   end if
  299.   
  300.   
  301.   
  302.   ---Push up, turn off and get rid of all the other buttons
  303.   
  304.   deactivate(moreButt)
  305.   deactivate(launchButt)
  306.   deactivate(quitButt)
  307.   turnOff(aboutButt)
  308.   turnOff(AppButt)
  309.   turnOff(TransButt)
  310.   TurnOff(DigBUtt)
  311.   turnOff(CatalogButt)
  312.   
  313.   
  314.   global gPrimException
  315.   put 13 into gPrimException
  316.   
  317. end
  318.  
  319.  
  320. on MORE1
  321.   global gAppButton
  322.   
  323.   if the frameLabel <> "Main" then
  324.     global gPrimException
  325.     put 99 into gPrimException
  326.     go to "main"
  327.   end if
  328.   
  329.   -----Get rid of all buttons not needed:
  330.   
  331.   deactivate(findingButt)
  332.   deactivate(launchButt)
  333.   deactivate(netButt)
  334.   deactivate(quitButt)
  335.   turnOff(catbutt)
  336.   turnOff(keybutt)
  337.   turnOff(compButt)
  338.   turnOff(gNumButt)
  339.   
  340.   
  341.   -----Turn on the used buttons:
  342.   
  343.   TurnOn(AboutButt)
  344.   TurnOn(CatalogButt)
  345.   TurnOn(TransButt)
  346.   TurnOn(DigButt)
  347.   
  348.   if gAppButton then
  349.     turnOn(AppButt) 
  350.   end if
  351.   
  352.   global gPrimException
  353.   put 15 into gPrimException
  354.   
  355. end
  356.  
  357.  
  358.  
  359. on greyLaunch1
  360.   go to "Launch"
  361. end
  362.  
  363. on greyQuit1  
  364.   go to "quit"
  365. end
  366.  
  367. on Launch1
  368.   nothing
  369.   deactivate(findingButt)
  370.   deactivate(moreButt)
  371.   deactivate(quitButt)
  372.   deactivate(netButt)
  373.   
  374.   if gAppButton then
  375.     turnOff(AppButt)
  376.   end if
  377.   
  378.   
  379.   cursor 0
  380.   updatestage
  381.   go to "Launch"
  382.   global gPrimException
  383.   put 1 into gPrimException
  384.   
  385. end
  386.  
  387. on Quit1
  388.   nothing
  389.   deactivate(findingButt)
  390.   deactivate(moreButt)
  391.   deactivate(launchButt)
  392.   deactivate(netButt)
  393.   
  394.   turnOff(compButt)
  395.   turnOff(TransButt)
  396.   turnOff(DigBUtt)
  397.   turnOff(CatalogButt)
  398.   turnOff(catButt)
  399.   turnOff(keyButt)
  400.   
  401.   if gAppButton then
  402.     turnOff(AppButt)
  403.     
  404.   end if
  405.   
  406.   cursor 0
  407.   updatestage
  408.   go to "quit"
  409.   global gPrimException
  410.   put 1 into gPrimException
  411.   cursor 0
  412. end
  413.  
  414. on about1
  415.   deactivate(CatalogButt)
  416.   deactivate(transButt)
  417.   deactivate(DigButt)
  418.   deactivate(AppButt)
  419.   
  420.   cursor 0
  421.   upDateStage
  422.   go to "out"
  423.   play movie NewPath&"About.Dir"
  424.   global gSecException
  425.   put 36 into gSecException
  426.   cursor 0
  427. end
  428.  
  429.  
  430.  
  431. on category
  432.   nothing
  433.   deactivate(keyButt)
  434.   deactivate(gNumButt)
  435.   deactivate(CompButt)
  436.   cursor 0
  437.   
  438.   upDateStage
  439.   go to "out"
  440.   play movie NewPath&"Maccat.dir"
  441.   
  442.   
  443.   global gSecException
  444.   put 22 into gSecException
  445.   cursor 0
  446. end
  447.  
  448. on number
  449.   deactivate(keyButt)
  450.   deactivate(catButt)
  451.   deactivate(CompButt)
  452.   updatestage
  453.   global gSecException
  454.   put 24 into gSecException
  455.   cursor 0
  456.   
  457.   go to "out"
  458.   play movie NewPath&"Macnum.dir"
  459.   cursor 0
  460.   updatestage
  461. end  
  462.  
  463. on keyword
  464.   deactivate(gNumButt)
  465.   deactivate(catButt)
  466.   deactivate(CompButt)
  467.   upDateStage
  468.   
  469.   cursor 0
  470.   
  471.   go to "out"
  472.   global gSecException
  473.   put 23 into gSecException
  474.   play movie NewPath&"Mackey.dir"
  475.   
  476.   cursor 0
  477.   updateStage
  478. end
  479.  
  480. on Comps
  481.   deactivate(gNumButt)
  482.   deactivate(keyButt)
  483.   deactivate(catButt)
  484.   
  485.   cursor 0
  486.   upDateStage
  487.   go to "out"
  488.   global gSecException
  489.   put 27 into gSecException
  490.   cursor 0
  491.   play movie NewPath&"Maccomp.dir"
  492.   
  493. end
  494.  
  495.  
  496.  
  497. on Transparency
  498.   deactivate(CatalogButt)
  499.   deactivate(appButt)
  500.   deactivate(DigButt)
  501.   deactivate(aboutButt)
  502.   
  503.   cursor 0
  504.   updateStage
  505.   go to "Transparency"
  506.   global gSecException
  507.   put 29 into gSecException
  508.   cursor 0
  509.   
  510. end
  511.  
  512. on Digital
  513.   
  514.   deactivate(CatalogButt)
  515.   deactivate(appButt)
  516.   deactivate(transButt)
  517.   deactivate(aboutButt)
  518.   
  519.   cursor 0
  520.   upDateStage
  521.   go to "out"
  522.   play movie NewPath&"Dig.Dir"
  523.   global gSecException
  524.   put 30 into gSecException
  525.   cursor 0
  526.   
  527. end
  528.  
  529.  
  530. on Internet
  531.   
  532.   deactivate(findingButt)
  533.   deactivate(moreButt)
  534.   deactivate(quitButt)
  535.   deactivate(netButt)
  536.   
  537.   if gAppButton then
  538.     turnOff(AppButt)
  539.   end if
  540.   
  541.   cursor 0
  542.   updatestage
  543.   go to "Internet"
  544.   
  545. end
  546.  
  547.  
  548.  
  549.  
  550. on Catalog1
  551.   deactivate(AboutButt)
  552.   deactivate(appButt)
  553.   deactivate(transButt)
  554.   deactivate(digButt)
  555.   
  556.   cursor 0
  557.   updateStage
  558.   go to "Form2"
  559.   global gSecException
  560.   put 33 into gSecException
  561.   cursor 0
  562. end
  563.  
  564.  
  565.  
  566. on Appreciation
  567.   deactivate(CatalogButt)
  568.   deactivate(aboutButt)
  569.   deactivate(transButt)
  570.   deactivate(digButt)
  571.   
  572.   cursor 0
  573.   upDateStage
  574.   go to "App"
  575.   --  play movie NewPath&"App.Dir"
  576.   global gSecException
  577.   put 36 into gSecException
  578.   cursor 0
  579. end
  580.  
  581.  
  582. on greyMain
  583.   
  584.   cursor 0
  585.   updateStage
  586.   go to 1
  587. end
  588.  
  589. on fixit brokenword
  590.   put brokenWord into var
  591.   put 1 into n
  592.   put length(var) into varc
  593.   repeat while n < varc
  594.     if char n of var = RETURN then
  595.       delete char n of var
  596.     end if
  597.     put 1 + n into n
  598.   end repeat
  599.   return var
  600. end 
  601.  
  602. on greyPrint1
  603.   put "Kundeninformationen"&RETURN into line1
  604.   put the text of member "Name"&" - "&The text of member "Title" into line2
  605.   put fixit(line2) into line2
  606.   put the text of member "Company" into line3
  607.   put fixit(line3) into line3
  608.   put the text of member "Address" into line4
  609.   put fixit(line4) into line4
  610.   put the text of member "City" into line5
  611.   put fixit(line5) into line5
  612.   
  613.   put "Tel:"&&the text of member "Telephone" into line6
  614.   put fixit(line6) into line6
  615.   
  616.   put "Fax:"&&the text of member "Fax" into line7
  617.   put fixit(line7) into line7
  618.   
  619.   put "ISDN Nr:"&&the text of member "Zip" into line8
  620.   put fixit(line8) into line8
  621.   
  622.   put "E-Mail:"&the text of member "Email" into line9
  623.   put fixit(line9) into line9
  624.   
  625.   put "Bildinformation"&RETURN into line10
  626.   put "Bildnr.:"&RETURN&the text of member "PhotoNumber"&RETURN into line11
  627.   put "Fotograf:"&RETURN&the text of member "Photographer"&RETURN into line12
  628.   put "Beschreibung:"&RETURN&the text of member "Description"&RETURN into line13
  629.   
  630.   put "Bildauswahl"&RETURN into line15
  631.   put "Beschreibung:"&RETURN&the text of member "ResearchDescription"&RETURN into line16
  632.   put "Text oder Inhalt:"&RETURN&the text of member "CopyConcept"&RETURN into line17
  633.   
  634.   --- CheckBoxes (USAGE,SIZE,LOCATION)
  635.   if the hilite of member "CheckBox1" then
  636.     set UsageVar = "Brochⁿre"
  637.   else
  638.     if the hilite of member "CheckBox2" then
  639.       set UsageVar = "Zeitungsanzeige"
  640.     else
  641.       if the hilite of member "CheckBox3" then
  642.         set UsageVar = "Endverbraucherangzeige"
  643.       else
  644.         if the hilite of member "CheckBox4" then
  645.           set UsageVar = "Handelsanzeige"
  646.         else
  647.           if the hilite of member "CheckBox5" then
  648.             set UsageVar = "Redaktionell"
  649.           else
  650.             if the hilite of member "CheckBox6" then
  651.               set UsageVar = "Other"
  652.             else
  653.               set UsageVar = "Not Specified"
  654.             end if
  655.           end if
  656.         end if
  657.       end if
  658.     end if
  659.   end if
  660.   
  661.   if the hilite of member "checkBox7" then
  662.     set SizeVar = "1/4 Seite oder kleiner"
  663.   else
  664.     if the hilite of member "CheckBox8" then
  665.       set sizeVar = "1/2 Seite"
  666.     else
  667.       if the hilite of member "CheckBox9" then
  668.         set sizeVar = "3/4 Seite"
  669.       else
  670.         if the hilite of member "CheckBox10" then
  671.           set sizeVar = "Ganze Seite"
  672.         else
  673.           if the hilite of member "CheckBox11" then
  674.             set sizeVar = "Doppelseite"
  675.           else
  676.             set SizeVar = "Not Specified"
  677.           end if
  678.         end if
  679.       end if
  680.     end if
  681.   end if
  682.   
  683.   if the hilite of member "CheckBox12" then
  684.     set LocationVar = "Innen"
  685.   else
  686.     if the hilite of member "CheckBox13" then
  687.       set locationVar = "Title"
  688.     else
  689.       set locationVar = "Not Specified"
  690.     end if
  691.   end if
  692.   
  693.   put "Projektinformation"&RETURN into line17
  694.   put "Sonstiges:"&&UsageVar into line18
  695.   put "Anzahl/Druckauflage:"&&the text of member "Druck" into line19
  696.   put "Gr÷▀e:"&&SizeVar into line20
  697.   put "Plazierung:"&&LocationVar into line21
  698.   put "Endnutzer/Branche:"&&the text of member "enduser" into line22
  699.   
  700.   put line1&RETURN&line2&RETURN&line3&RETURN&line4&RETURN&line5&RETURN&line6&RETURN&line7¼
  701. &RETURN&line8&RETURN&line9&RETURN&RETURN&line10&RETURN&line11&RETURN&line12&RETURN¼
  702. &line15&RETURN&line16&RETURN&line17&RETURN&line18&RETURN&line19&RETURN&line20¼
  703. &RETURN&line21&RETURN&line22&RETURN into var
  704.   put "" into member "Form1Build"
  705.   put var into member "Form1Build"
  706.   
  707.   set the fontstyle of line 1 of member "Form1Build" = "Bold"
  708.   set the fontStyle of line 2 of member "Form1Build" = "plain"
  709.   set the fontstyle of line 4 of member "Form1Build" = "Plain"
  710.   set the fontStyle of line 5 of member "Form1Build" = "plain"
  711.   set the fontstyle of line 12 of member "Form1Build" = "Bold"
  712.   set the fontStyle of line 13 of member "Form1Build" = "plain"
  713.   set the fontstyle of line 20 of member "Form1Build" = "Bold"
  714.   set the fontstyle of line 21 of member "Form1Build" = "plain"
  715.   set the fontstyle of line 25 of member "Form1Build" = "Bold"
  716.   set the fontstyle of line 26 of member "Form1Build" = "plain"
  717.   set the fontsize of member "form1Build" = 10
  718.   
  719.   put the date&&the time&RETURN&RETURN into member "Date"
  720.   set the fontstyle of member "DATE" = "italic"
  721.   set the fontsize of member "DATE" = 9
  722.   
  723.   Deactivate(gPrint1G)
  724.   
  725.   ----PrintOMatic Routines:
  726.   set doc = new(xtra "PrintOMatic_Lite")
  727.   if not objectP(doc) then exit
  728.   
  729.   setDocumentName doc, "Order Images/Request Research"
  730.   
  731.   append doc, member "HeaderGraph"
  732.   append doc, member "Date"
  733.   append doc, member "Form1Build"
  734.   append doc, member "Copyright"
  735.   
  736.   
  737.   Deactivate(gPrint1G)
  738.   updateStage
  739.   
  740.   if doJobSetup(doc) then print doc
  741.   
  742.   set doc = 0
  743.   ------End pmatic
  744. end
  745.  
  746.  
  747. on greyPrint2
  748.   put "Client Information:"&RETURN into line1
  749.   put the text of member "Name"&" - "&The text of member "Title" into line2
  750.   put fixit(line2) into line2
  751.   put the text of member "Company" into line3
  752.   put fixit(line3) into line3
  753.   put the text of member "Address" into line4
  754.   put fixit(line4) into line4
  755.   put the text of member "City" into line5
  756.   put fixit(line5) into line5
  757.   put "Tel:"&&the text of member "Telephone" into line6
  758.   put fixit(line6) into line6
  759.   put "Fax:"&&the text of member "Fax" into line7
  760.   put fixit(line7) into line7
  761.   put "E-mail:"&the text of member "Email" into line8
  762.   put fixit(line8) into line8
  763.   
  764.   put "Colleague's Name:"&&the text of member "colleague" & " - " & the text of member¼
  765. "cTitle" into line9
  766.   put fixit(line9) into line9
  767.   
  768.   put "Please send information on the following TSM Products/Services:" into line10
  769.   
  770.   put "" into ListVar
  771.   
  772.   
  773.   if the hilite of member "F2Checkbox1" then
  774.     put "Katalogue 11"&RETURN into ListVar
  775.   end if
  776.   if the hilite of member "F2Checkbox2" then
  777.     put ListVar&"Katalogue 12"&RETURN into ListVar
  778.   end if
  779.   if the hilite of member "F2Checkbox6" then
  780.     put ListVar&"Katalogue 13"&RETURN into ListVar
  781.   end if
  782.   if the hilite of member "F2Checkbox4" then 
  783.     put ListVar&"STOCK CD4"&RETURN into ListVar
  784.   end if
  785.   if the hilite of member "F2Checkbox5" then
  786.     put ListVar&"STOCK CD5"&RETURN into ListVar
  787.   end if
  788.   if the hilite of member "F2Checkbox6" then
  789.     put ListVar&"STOCK CD6"&RETURN into ListVar
  790.   end if
  791.   if the hilite of member "F2Checkbox7" then
  792.     put ListVar&"Mosaic 1 Katalogue & CD"&RETURN into ListVar
  793.   end if
  794.   if the hilite of member "F2Checkbox8" then
  795.     put ListVar&"Mosaic 2 Katalogue & CD"&RETURN into ListVar
  796.   end if
  797.   if the hilite of member "F2Checkbox9" then
  798.     put ListVar&"Symbolik Idea DiscÖ"&RETURN into ListVar
  799.   end if
  800.   if the hilite of member "F2Checkbox10" then
  801.     put ListVar&"Sports/Gesundheit & Fitness Idea DiscÖ"&RETURN into ListVar
  802.   end if
  803.   if the hilite of member "F2Checkbox11" then
  804.     put ListVar&"Business/Kommunikation Idea DiscÖ"&RETURN into ListVar
  805.   end if
  806.   if the hilite of member "F2Checkbox12" then
  807.     put ListVar&"Wissenschaft/Medizin Idea DiscÖ"&RETURN into ListVar
  808.   end if
  809.   if the hilite of member "F2Checkbox13" then
  810.     put ListVar&"Industrie Idea DiscÖ"&RETURN into ListVar
  811.   end if
  812.   if the hilite of member "F2Checkbox14" then
  813.     put ListVar&"Tiere/Natur Idea DiscÖ"&RETURN into ListVar
  814.   end if
  815.   if the hilite of member "F2Checkbox15" then
  816.     put ListVar&"Symbolik fⁿrs neue Millennium Idea DiscÖ"&RETURN into ListVar
  817.   end if
  818.   if the hilite of member "F2Checkbox16" then
  819.     put ListVar&"Schwarz-wei▀ & Nostalgie Idea DiscÖ"&RETURN into ListVar
  820.   end if
  821.   if the hilite of member "F2Checkbox17" then
  822.     put ListVar&"Active Life Idea DiscÖ"&RETURN into ListVar
  823.   end if
  824.   
  825.   
  826.   put line1&RETURN&line2&RETURN&line3&RETURN&line4&RETURN&line5&RETURN&RETURN&line6&RETURN&line7¼
  827. &RETURN&line8&RETURN&RETURN&line9&RETURN&RETURN&RETURN&line10&RETURN&ListVar into var
  828.   put "" into member "Form2Build"
  829.   put var into member "Form2Build"
  830.   
  831.   set the fontstyle of line 1 of member "Form2Build" = "Bold"
  832.   set the fontstyle of line 2 of member "Form2Build" = "Plain"
  833.   set the fontstyle of line 4 of member "Form2Build" = "plain"
  834.   set the fontstyle of line 5 of member "Form2Build" = "plain"
  835.   set the fontstyle of line 15 of member "Form2Build" = "Bold"
  836.   set the fontstyle of line 16 of member "Form2Build" = "plain"
  837.   set the fontSize of member "Form2Build" = 10
  838.   
  839.   put the date&&the time&RETURN&RETURN&RETURN into member "Date"
  840.   set the fontstyle of member "DATE" = "italic"
  841.   set the fontsize of member "DATE" = 9
  842.   
  843.   Deactivate(gPrint2G)
  844.   
  845.   
  846.   ----PrintOMatic Routines:
  847.   set doc = new(xtra "PrintOMatic_Lite")
  848.   if not objectP(doc) then exit
  849.   
  850.   setDocumentName doc, "Order Catalogues, CDs and Info"
  851.   
  852.   append doc, member "HeaderGraph"
  853.   append doc, member "Date"
  854.   append doc, member "Form2Build"
  855.   append doc, member "Copyright"
  856.   
  857.   Deactivate(gPrint2G)
  858.   updateStage
  859.   
  860.   
  861.   if doJobSetup(doc) then print doc
  862.   
  863.   set doc = 0
  864.   ------End pmatic
  865. end
  866.  
  867.  
  868. on form2Rollover
  869.   put rollover(n) into x
  870.   if x > 39 and x < 57 then
  871.     put the member of sprite x into var
  872.     put the name of member var into var
  873.     put var&"Graph" into var
  874.     set the member of sprite 66 = member var
  875.     set the loc of sprite 66 to point(230,240)
  876.   end if
  877. end
  878.  
  879.  
  880. on cursorRollControlForm2
  881.   put rollover(n) into x
  882.   if x > 68 and x < 86 or x >60 and x < 66 then
  883.     PointerCursor
  884.   else
  885.     NormalCursor
  886.   end if
  887. end
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.