home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / regnpckg.sit / Regions / cards.xml < prev    next >
Text File  |  1990-12-10  |  43KB  |  452 lines

  1. card_5591.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>5591</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2599</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  12.     <content>
  13.         <layer>background</layer>
  14.         <id>4</id>
  15.         <text><span class="style12">hats (Almost) All Folks!</span><span class="style1">The following is a random list questions you might askΓǪ If you have any comments please email me as np@doc.ic.ac.uk.</span><span class="style9">ΓÇó Will there be further releases of Regions?┬á┬á┬á┬á</span><span class="style1">I plan to look at Regions again in a few months. An area I particularly wish to investigate is whether Region edit mode could be integrated better within HyperCard ΓÇô for example marching ant selection as for buttons and fields. Encourage me with postcards if you want to see another version.</span><span class="style9">ΓÇó Will there be further releases of Regions?┬á┬á┬á┬á</span><span class="style1">I plan to look at Regions again in a few months. An area I particularly wish to investigate is whether Region edit mode could be integrated better within HyperCard ΓÇô for example marching ant selection as for buttons and fields. Encourage me with postcards if you want to see another version.</span><span class="style9">ΓÇó Why not drag or grow on click?┬á┬á┬á┬á</span><span class="style1">When clicking on buttons/fields you can drag or grow according to where you click. I tried this with regions, but delimiting the two areas (drag & click) was not easy/obvious so I switched to the two modes now present.</span><span class="style9">ΓÇó What does install_BMTR do?</span><span class="style1">┬á┬á┬á┬áIf you ask this it means you've been poking around ΓÇô good for you! It is used to add a trap which is required by the Picture Window WDEF but is currently only present in 32bit QuickDraw systems. For further details see the stack </span><span class="style33"><a href="#" class="group">┬╖┬áPicture┬áWDEF┬áΓÇÜ</a></span><span class="style1">.</span><span class="style9">ΓÇó Can I use the WDEF & MDEF in my code?</span><span class="style1">┬á┬á┬á┬áYou can use the WDEF and/or MDEF in your own code on the same basis as Region ΓÇô ┬⌐ Nigel Perry, no commercial/profit-making/ ShareWare use without permission, otherwise free. See the </span><span class="style33"><a href="#" class="group">┬╖┬áPicture┬áWDEF┬áΓÇÜ</a></span><span class="style1">  & </span><span class="style33"><a href="#" class="group">┬╖┬áPicture┬áMDEF┬áΓÇÜ</a></span><span class="style1"> stacks for more details.</span><span class="style9">ΓÇó I wish Region didΓǪ</span><span class="style1">┬á┬á┬á┬áHavn't covered your question? Email me.</span><span class="style9">ΓÇó Why did I get a SysError with Owl?</span><span class="style1">┬á┬á┬á┬áWhen trying to draw the Owl picture on my 1Mb Plus a fatal SysError occurs when the memory is exhausted somewhere inside QuickDraw. There seems to be no easy way to predict when this might happen and hence avoid it. Sorry.</span><span class="style9">ΓÇó How did you get those ΓÇ£stickyΓÇ¥ buttons?</span><span class="style1">┬á┬á┬á┬áSee the stack </span><span class="style33"><a href="#" class="group">┬╖┬áSticky┬áButtons┬áΓÇÜ</a></span><span class="style1"> and all will be revealed.</span><span class="style9">ΓÇó Whats your real job?</span><span class="style1">┬á┬á┬á┬áI am a full time researcher in Computer Science, currently working on the design of concurrent functional object/process-oriented languages. If anybody outside the UK/USA would like to offer me a lecturing or full time research post please get in touch!</span></text>
  16.     </content>
  17.     <name></name>
  18.     <script>on __Picture_WDEF__gotoStack "Picture WDEF"end __Picture_WDEF__on __Picture_MDEF__gotoStack "Picture MDEF"end __Picture_MDEF__on __Sticky_Buttons__gotoStack "Sticky Buttons"end __Sticky_Buttons__on gotoStack xset lockRecent to truevisual effect dissolvego to cd "Gray"go to cd "Gray" of stack "Start Here"visual effect dissolveset lockRecent to falsego to stack xend gotoStack</script>
  19. </card>
  20.  
  21.  
  22. card_5694.xml
  23. <?xml version="1.0" encoding="utf-8" ?>
  24. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  25. <card>
  26.     <id>5694</id>
  27.     <filler1>0</filler1>
  28.     <cantDelete> <false /> </cantDelete>
  29.     <showPict> <true /> </showPict>
  30.     <dontSearch> <false /> </dontSearch>
  31.     <owner>2599</owner>
  32.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  33.     <content>
  34.         <layer>background</layer>
  35.         <id>4</id>
  36.         <text><span class="style12">sing Regions In Your Own Stacks</span><span class="style1">To use Regions in a stack the stack ΓÇ£Region XCMDΓÇ¥ must be </span><span class="style10">in use</span><span class="style1"> by HyperCard and the  </span><span class="style15">setupRegions</span><span class="style1"> message must have been set. The following handler is the one used in this stack to add Regions:</span><span class="style15">  on startUsingRegions    start using stack "Region XCMD"    setupRegions  end startUsingRegions</span><span class="style1">If you wish to stop using Regions in a stack then you must first send the </span><span class="style15">cleanupRegions</span><span class="style1"> message and then remove the ΓÇ£Region XCMDΓÇ¥ from the stacks in use. The following is the handler used in this stack:</span><span class="style15">  on stopUsingRegions    if "Region XCMD" is in the stacksInUse    then      cleanupRegions      stop using stack "Region XCMD"    end if  end stopUsingRegions</span></text>
  37.     </content>
  38.     <name></name>
  39.     <script></script>
  40. </card>
  41.  
  42.  
  43. card_4553.xml
  44. <?xml version="1.0" encoding="utf-8" ?>
  45. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  46. <card>
  47.     <id>4553</id>
  48.     <filler1>0</filler1>
  49.     <cantDelete> <false /> </cantDelete>
  50.     <showPict> <true /> </showPict>
  51.     <dontSearch> <false /> </dontSearch>
  52.     <owner>2599</owner>
  53.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  54.     <content>
  55.         <layer>background</layer>
  56.         <id>4</id>
  57.         <text><span class="style12">he Region Command</span><span class="style1">The Region command is used in scripts to create regions and to change the global state/properties of regions.</span><span class="style15">Region </span><span class="style16">name</span><span class="style15">, </span><span class="style16">loc</span><span class="style15">|</span><span class="style16">rect</span><span class="style15">, </span><span class="style16">picture1</span><span class="style15">, ┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á Lasso[ed]|Mask[ed]|</span><span class="style16">picture2</span><span class="style1">┬á┬á┬á┬áCreate a new region, described earlier.</span><span class="style15">Region hide[All]Region show[All]</span><span class="style1">┬á┬á┬á┬áHide/show all regions. This is more selective than </span><span class="style15">hide/show palettes</span><span class="style1"> which hides all windows in the floating layer.</span><span class="style15">Region edit[All]</span><span class="style1">┬á┬á┬á┬áEnter region edit mode.</span><span class="style15">Region new</span><span class="style1">┬á┬á┬á┬áCreate a new region via a dialog and then enter edit mode.</span><span class="style15">Region paste[PICT], stack name</span><span class="style1">┬á┬á┬á┬áPaste the PICT on the clipboard into the named stack. A dialog be used to obtain the name for the picture.</span><span class="style15">Region memLowRegion memAvail</span><span class="style1">┬á┬á┬á┬áThese two commands inform Region that you are short on memory (</span><span class="style15">memLow</span><span class="style1">) or have plenty of available memory (</span><span class="style15">memAvail</span><span class="style1">).If you are short on memory Region will attempt to purge memory at appropriate intervals to improve your performance (or ability to run at all). Region will also use a simple dialog when editing handler scripts instead of the standard Script Editor ΓÇô which takes up 80k! Setting </span><span class="style15">memLow</span><span class="style1"> will slow you down, only use it when you are really tight on memory (like lots of regions and only 1MbΓǪ).</span></text>
  58.     </content>
  59.     <name></name>
  60.     <script></script>
  61. </card>
  62.  
  63.  
  64. card_5244.xml
  65. <?xml version="1.0" encoding="utf-8" ?>
  66. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  67. <card>
  68.     <id>5244</id>
  69.     <filler1>0</filler1>
  70.     <cantDelete> <false /> </cantDelete>
  71.     <showPict> <true /> </showPict>
  72.     <dontSearch> <false /> </dontSearch>
  73.     <owner>2599</owner>
  74.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  75.     <content>
  76.         <layer>background</layer>
  77.         <id>4</id>
  78.         <text><span class="style12">dding Pictures to a Stack</span><span class="style1">When there is a picture (PICT) on the clipboard the </span><span class="style21">Edit</span><span class="style1"> menu contains a </span><span class="style21">Paste Picture</span><span class="style1"> item. When using regions holding down the option key while selecting </span><span class="style21">Paste Picture</span><span class="style1"> will cause a dialog to be presented requesting a name for the picture which will then be pasted into the current stack.</span></text>
  79.     </content>
  80.     <name></name>
  81.     <script></script>
  82. </card>
  83.  
  84.  
  85. card_6369.xml
  86. <?xml version="1.0" encoding="utf-8" ?>
  87. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  88. <card>
  89.     <id>6369</id>
  90.     <filler1>0</filler1>
  91.     <cantDelete> <false /> </cantDelete>
  92.     <showPict> <true /> </showPict>
  93.     <dontSearch> <false /> </dontSearch>
  94.     <owner>2599</owner>
  95.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  96.     <content>
  97.         <layer>background</layer>
  98.         <id>4</id>
  99.         <text><span class="style12">egion Messages</span><span class="style1">Like other HyperCard objects, regions may be sent messages using the HyperTalk </span><span class="style15">send</span><span class="style1"> command to invoke their imbedded handlers:</span><span class="style15">┬á┬á┬á┬ásend </span><span class="style16">message</span><span class="style15"> to window </span><span class="style16">region name</span><span class="style10"></span><span class="style1">The message may be any one of; </span><span class="style15">mouseWithin</span><span class="style1">, </span><span class="style15">mouseDown</span><span class="style1">, </span><span class="style15">mouseStillDown</span><span class="style1">, </span><span class="style15">mouseUp</span><span class="style1">, </span><span class="style15">idle</span><span class="style1">, </span><span class="style15">toggleHilite</span><span class="style1">, </span><span class="style15">toggleVisible</span><span class="style1"> or </span><span class="style15">makeScript</span><span class="style1">. The first five invoke the specified handler, the two toggle messages invert the state of the specified property. The </span><span class="style15">makeScript</span><span class="style1"> message writes a script to the clipboard which reconstructs the region, the region name is used for the handler name.</span></text>
  100.     </content>
  101.     <name></name>
  102.     <script></script>
  103. </card>
  104.  
  105.  
  106. card_4308.xml
  107. <?xml version="1.0" encoding="utf-8" ?>
  108. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  109. <card>
  110.     <id>4308</id>
  111.     <filler1>0</filler1>
  112.     <cantDelete> <false /> </cantDelete>
  113.     <showPict> <true /> </showPict>
  114.     <dontSearch> <false /> </dontSearch>
  115.     <owner>2599</owner>
  116.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  117.     <content>
  118.         <layer>background</layer>
  119.         <id>4</id>
  120.         <text><span class="style12">egion Properties</span><span class="style1">Like other HyperCard objects, regions have a number of properties which can be altered with the HyperTalk </span><span class="style15">set</span><span class="style1"> command and read with the </span><span class="style15">get</span><span class="style1"> command. Regions can also have event handlers, however unlike other HyperCard objects you cannot edit these with the script editor but instead you must use the </span><span class="style15">set</span><span class="style1"> & </span><span class="style15">get</span><span class="style1"> as for properties, or the </span><span class="style21">Regions</span><span class="style1"> menu. The following is a list of region properties:</span><span class="style15">locrectvisibleautoHilitehilite</span><span class="style1">┬á┬á┬á┬áThese properties are the same as the standard HyperCard button & field properties. The coordinates for the </span><span class="style15">loc</span><span class="style1"> & </span><span class="style15">rect</span><span class="style1"> properties are relative to the current card. The visible property can also be changed by the HyperTalk commands; </span><span class="style15">show/hide window</span><span class="style1"> and </span><span class="style15">show/hide palettes</span><span class="style1">.</span><span class="style15">mouseWithinmouseDownmouseStillDownmouseUpidle</span><span class="style1">┬á┬á┬á┬áThese properties may be set to any HyperCard command(s). The commands may optionally be enclosed by the standard HyperTalk </span><span class="style15">on <message></span><span class="style1"> & </span><span class="style15">end <message></span><span class="style1"> statements. The HyperCard commands are executed when the appropriate event occurs, just like standard HyperTalk handlers. The </span><span class="style15">idle</span><span class="style1"> handler will not be called unless the </span><span class="style15">idleTime</span><span class="style1"> property has been set (see below). The mouse-related handlers are not executed when in region edit mode. When the commands are executed the standard HyperTalk property </span><span class="style15">the target</span><span class="style1"> is set to the current card and the global variable </span><span class="style15">targetRegion</span><span class="style1"> is set to the name of the region.</span><span class="style15">idleTime</span><span class="style1">┬á┬á┬á┬áThis property is the desired number of ticks (1/60 sec) between invocations of the regions </span><span class="style15">idle</span><span class="style1"> handler. A value of 0 prevents the </span><span class="style15">idle</span><span class="style1"> handler being called and is the default value.</span></text>
  121.     </content>
  122.     <name>Properties</name>
  123.     <script></script>
  124. </card>
  125.  
  126.  
  127. card_2446.xml
  128. <?xml version="1.0" encoding="utf-8" ?>
  129. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  130. <card>
  131.     <id>2446</id>
  132.     <filler1>0</filler1>
  133.     <cantDelete> <false /> </cantDelete>
  134.     <showPict> <true /> </showPict>
  135.     <dontSearch> <false /> </dontSearch>
  136.     <owner>2599</owner>
  137.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  138.     <content>
  139.         <layer>background</layer>
  140.         <id>4</id>
  141.         <text><span class="style12">he Regions Menu</span><span class="style1">The menu is available whenever you are in edit mode and determines what effect a mouse click over a region has. The current region edit mode along with the current major mode entries in the menu are hilited. The menu is a palette and may be ΓÇ£torn offΓÇ¥ and placed anywhere on the screen (option+Tab will toggle its visibility just as it does for the Tools palette). Region edit mode was entered automatically when this card was opened and will be left when you go to the next card. The menu entries are:</span><span class="style40">A</span><span class="style1">┬á┬á┬á┬áClick-dragging on a region will drag it around, just like a window. </span><span class="style21">Γîÿ</span><span class="style1">-click-dragging will drag without bringing it to the front. When edit mode is entered Drag is selected.</span><span class="style40">B</span><span class="style1">┬á┬á┬á┬áClick-dragging on a region will resize it, as regions are windows you may only grow/shrink to the right/bottom.</span><span class="style40">C</span><span class="style1">┬á┬á┬á┬áClicking on a region will bring it to the front of all the regions & HyperCard palettes.</span><span class="style40">D</span><span class="style1">┬á┬á┬á┬áClicking on a region will send it behind all other regions and HyperCard palettes, but keep it in front of the card window.</span><span class="style40">E</span><span class="style1">┬á┬á┬á┬áClicking on a region will resize it to its normal size, i.e. the bounding rectangle of the picture it is displaying.</span><span class="style40">F</span><span class="style1">┬á┬á┬á┬áCreate a new region. Same as choosing the </span><span class="style21">New RegionΓǪ</span><span class="style1"> item in the </span><span class="style21">Objects</span><span class="style1"> menu. This selection is ΓÇ£non-stickΓÇ¥ and after the new region is created the previous selection will be restored.</span><span class="style40">G</span><span class="style1">┬á┬á┬á┬áClicking on a region will delete it.</span><span class="style40">H</span><span class="style1">┬á┬á┬á┬áWrite a script which will reconstruct the clicked-on region. A dialog is presented where you enter the name of the handler to be written and whether to add it to the current card, background or stack script or to copy it to the clipboard.</span><span class="style40">J</span><span class="style1">┬á┬á</span><span class="style10">(mouseWithin)</span><span class="style40">K</span><span class="style10">┬á┬á(mouseDown)</span><span class="style40">L</span><span class="style41"> </span><span class="style10">┬á┬á(mouseStillDown)</span><span class="style40">M</span><span class="style41"> </span><span class="style10">┬á┬á(mouseUp)</span><span class="style40">N</span><span class="style10">┬á┬á</span><span class="style41"> </span><span class="style10">(idle)</span><span class="style1">┬á┬á┬á┬áClicking on a region will enable you to edit its handler scripts. See</span><span class="style23"><a href="#" class="group">┬á</a></span><span class="style22"><a href="#" class="group">Properties</a></span><span class="style1">.</span><span class="style40">O</span><span class="style1"></span><span class="style40">P</span><span class="style1"></span><span class="style40">Q</span><span class="style1">┬á┬á┬á┬áSwitch to another tool. Region edit mode will be left and the tear-off palette hidden unless the option key is down.</span><span class="style21">┬⌐ 1990 Nigel Perry</span><span class="style1">┬á┬á┬á┬áDisplays a dialog stating the copyright and conditions of use. This selection is ΓÇ£non-stickΓÇ¥.</span></text>
  142.     </content>
  143.     <name></name>
  144.     <script>on openCardRegion editset the loc of window "Region Palette" to "360,70"show window "Region Palette"pass openCardend openCardon closeCardRegion normalpass closeCardend closeCardon Propertiesglobal fromCardput the name of this card into fromCardvisual effect zoom opengo cd "Properties"show bg btn "Return"end Properties</script>
  145. </card>
  146.  
  147.  
  148. card_2112.xml
  149. <?xml version="1.0" encoding="utf-8" ?>
  150. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  151. <card>
  152.     <id>2112</id>
  153.     <filler1>0</filler1>
  154.     <cantDelete> <false /> </cantDelete>
  155.     <showPict> <true /> </showPict>
  156.     <dontSearch> <false /> </dontSearch>
  157.     <owner>2599</owner>
  158.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  159.     <content>
  160.         <layer>background</layer>
  161.         <id>4</id>
  162.         <text><span class="style12">he Region Edit Mode</span><span class="style1">Region edit mode is a </span><span class="style10">sub-mode</span><span class="style1"> which may be entered when you are in browse, button edit or field edit modes; and is an </span><span class="style10">extension</span><span class="style1"> to those modes. When in region edit mode a new menu </span><span class="style21">Regions</span><span class="style1"> is added to the menu bar and you may move, resize, change the front-to-back layering etc. of your regions. When in edit mode the cursor will change to the standard arrow or a special cursor when over a region.</span><span class="style9">Entering Edit Mode</span><span class="style1">Edit mode is automatically entered whenever you use the </span><span class="style21">New RegionΓǪ</span><span class="style1"> menu item to create a new region. It may also be entered by selecting </span><span class="style21">RegionΓǪ</span><span class="style1"> from the </span><span class="style21">Edit</span><span class="style1"> menu or by holding down the option key while selecting one of the browse, button or field tools from the </span><span class="style21">Tools</span><span class="style1"> menu.</span><span class="style9">Leaving Edit Mode</span><span class="style1">Edit mode may be left by choosing any tool from the </span><span class="style21">Tools</span><span class="style1"> menu; by selecting the browse, button or fields tools from the </span><span class="style21">Regions</span><span class="style1"> menu; or by typing </span><span class="style21">Γîÿ</span><span class="style1">+Tab to return to browse mode.</span></text>
  163.     </content>
  164.     <name></name>
  165.     <script></script>
  166. </card>
  167.  
  168.  
  169. card_3660.xml
  170. <?xml version="1.0" encoding="utf-8" ?>
  171. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  172. <card>
  173.     <id>3660</id>
  174.     <filler1>0</filler1>
  175.     <cantDelete> <false /> </cantDelete>
  176.     <showPict> <true /> </showPict>
  177.     <dontSearch> <false /> </dontSearch>
  178.     <owner>2599</owner>
  179.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  180.     <content>
  181.         <layer>background</layer>
  182.         <id>4</id>
  183.         <text><span class="style12">reating Regions</span><span class="style1">There are two ways to create a region: using HyperTalk, either in a script or the message box; and using the Objects menu.</span><span class="style9">Creating Using HyperTalk</span><span class="style1">To create region use the command:</span><span class="style15">Region </span><span class="style16">name</span><span class="style15">, </span><span class="style16">loc</span><span class="style15">, </span><span class="style16">picture1</span><span class="style15">, ┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á┬á[</span><span class="style16">Lasso</span><span class="style15">|</span><span class="style16">Masked</span><span class="style15">|</span><span class="style16">picture2</span><span class="style15">]</span><span class="style1">This will create a new region using </span><span class="style15">picture1</span><span class="style17">,</span><span class="style1"> </span><span class="style15">Lasso</span><span class="style1">ed, </span><span class="style15">Masked</span><span class="style1"> or picture masked with </span><span class="style15">picture2</span><span class="style1">. If </span><span class="style15">loc</span><span class="style1"> is a point then the top-left corner of the region will be placed there, these coordinates are relative to the top-left corner of the </span><span class="style10">current card</span><span class="style1">. If </span><span class="style15">loc</span><span class="style1"> is a rectangle then the region is sized to fit. For example </span><span class="style18"><a href="#" class="group">Region Insect, "300,-20", Butterfly, Lasso</a></span><span class="style1"> will place a region just to the right and slightly above this card window (click to try it). The </span><span class="style15">name</span><span class="style1"> is used for the title of the regions window and may be used in HyperTalk window related commands, for example </span><span class="style18"><a href="#" class="group">set the loc of window Insect to "300,150"</a></span><span class="style1"> (click only if you created an Insect, otherwise you'll get a HyperTalk error).</span><span class="style9">Creating Using The Menus</span><span class="style1">Whenever you are regions there is a new entry </span><span class="style21">New RegionΓǪ</span><span class="style1"> in the  </span><span class="style21">Objects</span><span class="style1"> menu. (If the entry is not there you can add it with the HyperTalk command </span><span class="style18"><a href="#" class="group">setupRegions</a></span><span class="style1">, this may happen if your </span><span class="style15">userLevel</span><span class="style1"> was too low when Regions was initialised.) Selecting this menu item will present you with a dialog in which you may specify the region name and select the picture(s) from PopUp menus of those. On pressing </span><span class="style21">Ok</span><span class="style1"> the new region will be created and positioned at (0,0) and you will be left in </span><span class="style10">drag mode</span><span class="style1">, you may drag the region to where you wish and then type </span><span class="style21">Γîÿ</span><span class="style1">+Tab, or select the hand tool from the </span><span class="style21">Tools</span><span class="style1"> menu, to return to browse mode. The HyperTalk commands </span><span class="style18"><a href="#" class="group">doMenu "New RegionΓǪ"</a></span><span class="style1"> and </span><span class="style18"><a href="#" class="group">Region New</a></span><span class="style1"> are equivalent to selecting from the menu.</span></text>
  184.     </content>
  185.     <name></name>
  186.     <script>on openCardshow groupspass openCardend openCardon closeCardhide groupspass closeCardend closeCard</script>
  187. </card>
  188.  
  189.  
  190. card_3873.xml
  191. <?xml version="1.0" encoding="utf-8" ?>
  192. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  193. <card>
  194.     <id>3873</id>
  195.     <filler1>0</filler1>
  196.     <cantDelete> <false /> </cantDelete>
  197.     <showPict> <true /> </showPict>
  198.     <dontSearch> <false /> </dontSearch>
  199.     <owner>2599</owner>
  200.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  201.     <content>
  202.         <layer>background</layer>
  203.         <id>4</id>
  204.         <text><span class="style12">ow a Region is Constructed</span><span class="style1">A region is constructed from one or two named pictures (ΓÇ£PICTΓÇ¥ resources), these pictures must be in: the current stack, a stack being ΓÇ£usedΓÇ¥, the Home stack, HyperCard or the current System. There are three variations of regions; </span><span class="style10">lassoed</span><span class="style1">, </span><span class="style10">masked</span><span class="style1"> and </span><span class="style10">picture masked</span><span class="style1">. All regions display a picture in a ΓÇ£windowΓÇ¥, the difference between the variations is in how the region area is determined.</span><span class="style9">Lassoed Region</span><span class="style1">For a lassoed region the area is formed by lassoing the picture to be displayed within the region, as with with the HyperCard lasso tool. A lassoed region will not contain any holes, but may consist of multiple non-contiguous areas. For an example press: </span><span class="style33"><a href="#" class="group">┬╖┬áLasso┬áΓÇÜ</a></span><span class="style1">.</span><span class="style9">Masked Region</span><span class="style1">The area of a masked region is formed from the black pixels of the picture it is to display. It may contain holes and non-contiguous areas but will not contain any white pixels ΓÇô as those in the picture will fall outside the region area. For an example press: </span><span class="style33"><a href="#" class="group">┬╖┬áMasked┬áΓÇÜ</a></span><span class="style1">.</span><span class="style9">Picture Masked Region</span><span class="style1">A picture masked region is constructed from two pictures. The first is displayed within the region and the black pixels of the second are used to define the region area. This comb-ination allows you to construct a region which is selectively transparent and/or contains areas which are white.For an example press: </span><span class="style33"><a href="#" class="group">┬╖┬áPicture┬áMasked┬áΓÇÜ</a></span><span class="style1">.</span><span class="style9">Variation Demonstration</span><span class="style1">If you press the button: </span><span class="style33"><a href="#" class="group">┬╖┬áVariation┬áDemo┬áΓÇÜ</a></span><span class="style1">, you will get three draggable regions, one of each variation (ignore the new menu that appears for the moment). Note that the cursor changes to an arrow when over a draggable region, instead of the usual HyperCard hand. Move them around by clicking and dragging in the usual way. If you </span><span class="style21">Γîÿ</span><span class="style1">-click-drag the regions will keep their front-to-back ordering, otherwise a dragged region will automatically come to the front ΓÇô just as with normal windows. When you are done press: </span><span class="style33"><a href="#" class="group">┬╖┬áEnd┬áDrag┬áMode┬áΓÇÜ</a></span><span class="style1">.</span></text>
  205.     </content>
  206.     <name></name>
  207.     <script>on __Lasso__global openWindows1cleanupWindows openWindows1Region NormalRegion Board,"315,0","%Lasso Variation",LassoRegion Demo,"360,180","%Variations Picture",Lassoend __Lasso__on __Masked__global openWindows1cleanupWindows openWindows1Region NormalRegion Board,"315,0","%Masked Variation",LassoRegion Demo,"360,180","%Variations Picture",Maskedend __Masked__on __Picture_Masked__global openWindows1cleanupWindows openWindows1Region NormalRegion Board,"291,0","%Picture Variation",LassoRegion Demo,"360,180","%Variations Picture","%Variations mask"end __Picture_Masked__on __Variation_Demo__global openWindows1cleanupWindows openWindows1Region Demo,"360,0","%Variations Picture",LassoRegion Demo,"360,90","%Variations Picture",MaskedRegion Demo,"360,180","%Variations Picture","%Variations mask"Region Editend __Variation_Demo__on __End_Drag_Mode__Region Normalend __End_Drag_Mode__on closeCardRegion Normalpass closeCardend closeCard</script>
  208. </card>
  209.  
  210.  
  211. card_5110.xml
  212. <?xml version="1.0" encoding="utf-8" ?>
  213. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  214. <card>
  215.     <id>5110</id>
  216.     <filler1>0</filler1>
  217.     <cantDelete> <false /> </cantDelete>
  218.     <showPict> <true /> </showPict>
  219.     <dontSearch> <false /> </dontSearch>
  220.     <owner>4843</owner>
  221.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  222.     <content>
  223.         <layer>background</layer>
  224.         <id>1</id>
  225.         <text><span class="style2">pdate History</span><span class="style3"></span><span class="style9">Oct</span><span class="style37"><a href="#" class="group"> 90: v1.0b1</a></span><span class="style36"><a href="#" class="group">┬á┬á┬á┬áFi</a></span><span class="style3">rst ├ƒ release</span><span class="style9">Nov 90: v1.0b2</span><span class="style3">ΓÇó┬á┬á┬áRenamed to Regions, less of a mouth/menu bar full than PictureObjects.ΓÇó┬á┬á┬áChanged menu from text to "tear-off" palette.ΓÇó┬á┬á┬áAdded idle script & idleTime properties.ΓÇó┬á┬á┬áAdded region dump ΓÇô builds a script to reconstruct region.ΓÇó┬á┬á┬áAdded ability to "send" to regions.ΓÇó┬á┬á┬áDocumented memLow/memAvail global properties.ΓÇó┬á┬á┬áFixed sticky buttons script.</span><span class="style9">Dec90: v1.0b3</span><span class="style3">ΓÇó┬á┬á┬áI've now got 2.5Mb of memory in my Plus! Stacks tidied up, minimal graphics added.ΓÇó┬á┬á┬áAdded new stacks to package, Picture WDEF, Sticky Buttons, Start Here. Picture MDEF and┬á┬á┬á┬á┬áeditScript XFCN stacks exist but are not written yet.ΓÇó┬á┬á┬áChanged sticky buttons to use new Sticky Buttons font. Set script editor to use Sticky Monaco.ΓÇó┬á┬á┬áAdded cursors for the edit modes.ΓÇó┬á┬á┬áAdded toggleHilite, toggleVisible and makeScript to┬ámessages which can be sent to a region. The┬á┬á┬á┬á┬ámakeScript message does not use a dialog and writes the handler to the clipboard using the region name┬á┬á┬á┬á┬áfor the handler name.ΓÇó┬á┬á┬áMade Region more robust on memory exhaustion. A non-visible region may be produced if memory runs┬á┬á┬á┬á┬áout. (Actually a window with empty content and structure regions.) However, Region may still cause┬á┬á┬á┬á┬áHyperCard to quit if memory runs out, there seems no easy way around this as the memory is sometimes┬á┬á┬á┬á┬áexhausted </span><span class="style25">within</span><span class="style3"> Quick-Draw during window operations.ΓÇó┬á┬á┬áFixed region dump ΓÇô now will correctly dump a region with return/quote characters in the handler┬á┬á┬á┬á┬áscripts.ΓÇó┬á┬á┬áAdded information on using Regions in your own stacks, thought this might be useful!</span><span class="style9">Dec90:  v1.0</span><span class="style3">ΓÇó┬á┬á┬áOut in time for Christmas. Nadolig LLawen + Blwyddyn Newydd Da to all of you!ΓÇó┬á┬á┬áAdded those missing stacks.ΓÇó┬á┬á┬áTracked down and killed the ΓÇ£ghostΓÇ¥ font. You didn't see it? Well I assure it was thereΓǪΓÇó┬á┬á┬áFixed the problem with option-tab closing the Regions stack.ΓÇó┬á┬á┬áAdded a new copyright sequence to Start Here, called ~ 1 in 3 times. Made all stacks go to Start Here┬á┬á┬á┬á┬áif opened from (Multi)Finder.</span></text>
  226.     </content>
  227.     <name>Update History</name>
  228.     <script>on openCardset the scroll of fld "Description" to 0pass openCardend openCard</script>
  229. </card>
  230.  
  231.  
  232. card_3033.xml
  233. <?xml version="1.0" encoding="utf-8" ?>
  234. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  235. <card>
  236.     <id>3033</id>
  237.     <filler1>0</filler1>
  238.     <cantDelete> <false /> </cantDelete>
  239.     <showPict> <true /> </showPict>
  240.     <dontSearch> <false /> </dontSearch>
  241.     <owner>2599</owner>
  242.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  243.     <content>
  244.         <layer>background</layer>
  245.         <id>4</id>
  246.         <text><span class="style2">egions v1.0┬á┬á┬á┬á┬á┬á┬á┬á┬á</span><span class="style33"><a href="#" class="group">┬╖┬áUpdate┬áHistory┬áΓÇÜ</a></span><span class="style1"></span><span class="style3">┬⌐ Nigel Perry, 1990. Free for personal use. No commercial, profit-making or ShareWare use without permission.</span><span class="style1"></span><span class="style3">This is a ├ƒeta release. Please report bugs, comments, suggestions to me via email np@doc.ic.ac.uk or smail: Mr N Perry, Dept of Computing, Imperial College, 180 Queens Gate, London SW7 2BZ. Thank you.</span><span class="style1"></span><span class="style12">Introduction</span><span class="style11"></span><span class="style1"></span><span class="style10">Region</span><span class="style1"> is a HyperCard 2.0 external command which implements </span><span class="style10">region objects</span><span class="style1">, normally abbreviated to just </span><span class="style10">regions</span><span class="style1">. A region is an arbitrary area, or collection of non-contiguous areas, which may contain holes; in which a picture is displayed. Before you can use regions the stack ΓÇ£Region XCMDΓÇ¥ must be ΓÇ£in useΓÇ¥ by HyperCard. This was done automatically when you opened this stack.</span><span class="style12">Some Examples</span><span class="style1">The wandering </span><span class="style9">Regions!</span><span class="style1"> to the right is a single region, with non-contiguous areas and holes. For a demonstration of a more ΓÇ£conventionalΓÇ¥ picture press: </span><span class="style33"><a href="#" class="group">┬╖┬áCamel┬áΓÇÜ</a></span><span class="style1">, and a picture of a camel should appear. If you press the button more than once you can get a whole herd of camels (with the odd strangerΓǪ). If you now press: </span><span class="style33"><a href="#" class="group">┬╖┬áClose┬áCamel┬áΓÇÜ</a></span><span class="style1"> , then the first camel drawn will be removed, you can keep pressing until the whole herd has gone.</span></text>
  247.     </content>
  248.     <name></name>
  249.     <script>on __Update_History__visual effect zoom openpush cdgo cd "Update History"end __Update_History__on __Camel__global camelVertif Camel is not in the windows thenput 0 into camelVertelseadd (10 + random(20)) to camelVertif camelVert > 250 then exit __Camel__end ifput 290+random(50) & "," & camelVert into ptif random(7) = 5 thenput "Bactrian Camel" into ctypeelseput Dromedary into ctypeend ifRegion Camel,pt,ctype,Lassoend __Camel__on __Close_Camel__if "Camel" is in the windows then close window Camelend __Close_Camel__on openCardset cursor to watchstartBannerpass openCardend openCardon closeCardstopBannerpass closeCardend closeCard</script>
  250. </card>
  251.  
  252.  
  253. card_7641.xml
  254. <?xml version="1.0" encoding="utf-8" ?>
  255. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  256. <card>
  257.     <id>7641</id>
  258.     <filler1>0</filler1>
  259.     <cantDelete> <false /> </cantDelete>
  260.     <showPict> <true /> </showPict>
  261.     <dontSearch> <false /> </dontSearch>
  262.     <owner>5931</owner>
  263.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  264.     <part>
  265.         <id>1</id>
  266.         <type>field</type>
  267.         <visible> <true /> </visible>
  268.         <dontWrap> <false /> </dontWrap>
  269.         <dontSearch> <false /> </dontSearch>
  270.         <sharedText> <false /> </sharedText>
  271.         <fixedLineHeight> <false /> </fixedLineHeight>
  272.         <autoTab> <false /> </autoTab>
  273.         <lockText> <true /> </lockText>
  274.         <rect>
  275.             <left>79</left>
  276.             <top>23</top>
  277.             <right>430</right>
  278.             <bottom>180</bottom>
  279.         </rect>
  280.         <style>shadow</style>
  281.         <autoSelect> <false /> </autoSelect>
  282.         <showLines> <false /> </showLines>
  283.         <wideMargins> <true /> </wideMargins>
  284.         <multipleLines> <false /> </multipleLines>
  285.         <reservedFamily> 0 </reservedFamily>
  286.         <titleWidth>0</titleWidth>
  287.         <icon>0</icon>
  288.         <textAlign>center</textAlign>
  289.         <font></font>
  290.         <textSize>12</textSize>
  291.         <textStyle>plain</textStyle>
  292.         <textHeight>16</textHeight>
  293.         <name></name>
  294.         <script></script>
  295.     </part>
  296.     <part>
  297.         <id>2</id>
  298.         <type>field</type>
  299.         <visible> <true /> </visible>
  300.         <dontWrap> <false /> </dontWrap>
  301.         <dontSearch> <false /> </dontSearch>
  302.         <sharedText> <false /> </sharedText>
  303.         <fixedLineHeight> <false /> </fixedLineHeight>
  304.         <autoTab> <false /> </autoTab>
  305.         <lockText> <true /> </lockText>
  306.         <rect>
  307.             <left>9</left>
  308.             <top>215</top>
  309.             <right>498</right>
  310.             <bottom>284</bottom>
  311.         </rect>
  312.         <style>rectangle</style>
  313.         <autoSelect> <false /> </autoSelect>
  314.         <showLines> <false /> </showLines>
  315.         <wideMargins> <false /> </wideMargins>
  316.         <multipleLines> <false /> </multipleLines>
  317.         <reservedFamily> 0 </reservedFamily>
  318.         <titleWidth>0</titleWidth>
  319.         <icon>0</icon>
  320.         <textAlign>left</textAlign>
  321.         <font></font>
  322.         <textSize>12</textSize>
  323.         <textStyle>plain</textStyle>
  324.         <textHeight>16</textHeight>
  325.         <name></name>
  326.         <script></script>
  327.     </part>
  328.     <part>
  329.         <id>5</id>
  330.         <type>button</type>
  331.         <visible> <true /> </visible>
  332.         <reserved5> 0 </reserved5>
  333.         <reserved4> 0 </reserved4>
  334.         <reserved3> 0 </reserved3>
  335.         <reserved2> 0 </reserved2>
  336.         <reserved1> 0 </reserved1>
  337.         <enabled> <true /> </enabled>
  338.         <rect>
  339.             <left>237</left>
  340.             <top>183</top>
  341.             <right>273</right>
  342.             <bottom>213</bottom>
  343.         </rect>
  344.         <style>transparent</style>
  345.         <showName> <false /> </showName>
  346.         <highlight> <false /> </highlight>
  347.         <autoHighlight> <false /> </autoHighlight>
  348.         <sharedHighlight> <true /> </sharedHighlight>
  349.         <family>0</family>
  350.         <titleWidth>0</titleWidth>
  351.         <icon>28023</icon>
  352.         <textAlign>center</textAlign>
  353.         <font>Chicago</font>
  354.         <textSize>12</textSize>
  355.         <textStyle>plain</textStyle>
  356.         <name>Intro</name>
  357.         <script>on mouseUpvisual effect dissolvego to cd "Gray"go to cd "Gray" of stack "Start Here"visual effect dissolvego to cd "Intro"end mouseUp</script>
  358.     </part>
  359.     <part>
  360.         <id>3</id>
  361.         <type>button</type>
  362.         <visible> <true /> </visible>
  363.         <reserved5> 0 </reserved5>
  364.         <reserved4> 0 </reserved4>
  365.         <reserved3> 0 </reserved3>
  366.         <reserved2> 0 </reserved2>
  367.         <reserved1> 0 </reserved1>
  368.         <enabled> <true /> </enabled>
  369.         <rect>
  370.             <left>279</left>
  371.             <top>183</top>
  372.             <right>315</right>
  373.             <bottom>213</bottom>
  374.         </rect>
  375.         <style>transparent</style>
  376.         <showName> <false /> </showName>
  377.         <highlight> <false /> </highlight>
  378.         <autoHighlight> <false /> </autoHighlight>
  379.         <sharedHighlight> <true /> </sharedHighlight>
  380.         <family>0</family>
  381.         <titleWidth>0</titleWidth>
  382.         <icon>26425</icon>
  383.         <textAlign>center</textAlign>
  384.         <font>Chicago</font>
  385.         <textSize>12</textSize>
  386.         <textStyle>plain</textStyle>
  387.         <name>Next</name>
  388.         <script>on mouseUpvisual effect wipe leftgo nextend mouseUp</script>
  389.     </part>
  390.     <part>
  391.         <id>4</id>
  392.         <type>button</type>
  393.         <visible> <true /> </visible>
  394.         <reserved5> 0 </reserved5>
  395.         <reserved4> 0 </reserved4>
  396.         <reserved3> 0 </reserved3>
  397.         <reserved2> 0 </reserved2>
  398.         <reserved1> 0 </reserved1>
  399.         <enabled> <true /> </enabled>
  400.         <rect>
  401.             <left>195</left>
  402.             <top>183</top>
  403.             <right>231</right>
  404.             <bottom>213</bottom>
  405.         </rect>
  406.         <style>transparent</style>
  407.         <showName> <false /> </showName>
  408.         <highlight> <false /> </highlight>
  409.         <autoHighlight> <false /> </autoHighlight>
  410.         <sharedHighlight> <true /> </sharedHighlight>
  411.         <family>0</family>
  412.         <titleWidth>0</titleWidth>
  413.         <icon>1011</icon>
  414.         <textAlign>center</textAlign>
  415.         <font>Chicago</font>
  416.         <textSize>12</textSize>
  417.         <textStyle>plain</textStyle>
  418.         <name>Home</name>
  419.         <script>on mouseUpgo homeend mouseUp</script>
  420.     </part>
  421.     <content>
  422.         <layer>card</layer>
  423.         <id>1</id>
  424.         <text><span class="style29">egions</span><span class="style1">Stack & Code Resources ┬⌐ 1990, Nigel Perry</span><span class="style3">Free for personal use and in stacks & applications which are free, provided this copyright notice is clearly displayed. May not be used for commercial or profit-making purposes or in ShareWare without permission. Code resources written in THINK C ┬⌐ Symantec.</span><span class="style1">Thanks to ├ƒeta Testers: Ruben Leon, Mark Sanderson,Olle Furburg and Duncan Langford.</span></text>
  425.     </content>
  426.     <content>
  427.         <layer>card</layer>
  428.         <id>2</id>
  429.         <text><span class="style31">arning</span><span class="style1">: Using Regions, especially complicated ones, can use a lot of memory and cause QuickDraw to run out of memory, which in turn will abort HyperCard. This type of memory exhaustion cannot currently be predicted or recovered from. The problem is particularly acute on 1Mb systems and in colour modes. Used with reason there should be no problems, just don't ask for tens of flashing butterflies or too many owls!</span></text>
  430.     </content>
  431.     <name>Intro</name>
  432.     <script>on openCardglobal introWindowsput the windows into introWindowsbuildBF1buildBF2end openCardon closeCardglobal introWindowscleanupWindows introWindowsend closeCardon buildBF1Region BF1,"-19,-18,154,111","Butterfly","Lasso"set the idle of window BF1 to "send toggleHilite to window targetRegion"set the idleTime of window BF1 to 300end buildBF1on buildBF2Region BF2,"367,73,540,202","Butterfly","Lasso"set the idle of window BF2 to "send toggleHilite to window targetRegion"set the idleTime of window BF2 to 500end buildBF2on buildBF3Region BF3,"-33,95,140,224","Butterfly","Lasso"set the idle of window BF3 to "send toggleHilite to window targetRegion"set the idleTime of window BF3 to 700end buildBF3on arrowKey whichif which is "Right" thensend mouseUp to btn "Next"elseif which is not "Left" thenpass arrowKeyend ifend ifend arrowKey</script>
  433. </card>
  434.  
  435.  
  436. card_8024.xml
  437. <?xml version="1.0" encoding="utf-8" ?>
  438. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  439. <card>
  440.     <id>8024</id>
  441.     <filler1>0</filler1>
  442.     <cantDelete> <false /> </cantDelete>
  443.     <showPict> <true /> </showPict>
  444.     <dontSearch> <false /> </dontSearch>
  445.     <owner>5931</owner>
  446.     <link rel="stylesheet" type="text/css" href="stylesheet_3093.css" />
  447.     <name>Gray</name>
  448.     <script></script>
  449. </card>
  450.  
  451.  
  452.