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