home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / multimedia / scala / HELP / BACKGRO2.SCA < prev    next >
Text File  |  1996-05-14  |  7KB  |  184 lines

  1. !ScalaScript
  2. {
  3. Sequence:
  4. :"SubScript"
  5. {
  6. Group:
  7. BoxX.1=139;
  8. BoxY.1=71;
  9. BoxX.2=0;
  10. BoxY.2=0;
  11. BoxX=BoxX.1;
  12. BoxY=BoxY.1;
  13. BoxW=360;
  14. BoxH=249;
  15. Descr="Click a button to get information about it!";
  16. Display(Size(640,480),Face(RGB(170)),UserPalette(RGBPen(1,0,16777215,12632256,5592405,8553090,11184810,10066329)));
  17. Clip(0,330,"scala:\help\graphics\backgro2.gif",transparent(off));
  18. pagename="Design Background menu";
  19. pagedescr="Lets you control options related to the background image of a page.";
  20. descr="Click a button to get information about it!";
  21. title="";
  22. Button(Normal(Box(0,330,639,26,Style(Norm))),Highlight(Box(0,330,639,26,Style(High))),Select(Box(0,330,639,26,Style(Sel)),Use(titlebar)));
  23. Button(Normal(Box(620,330,19,25,Style(Norm))),Highlight(Box(620,330,19,25,Style(High))),Select(Box(620,330,19,25,Style(Sel)),Use(infobutton)));
  24. Button(Normal(Box(4,360,313,25,Style(Norm))),Highlight(Box(4,360,313,25,Style(High))),Select(Box(4,360,313,25,Style(Sel)),Use(background)));
  25. Button(Normal(Box(322,390,313,25,Style(Norm))),Highlight(Box(322,390,313,25,Style(High))),Select(Box(322,390,313,25,Style(Sel)),Use(custsize)));
  26. Button(Normal(Box(322,420,313,25,Style(Norm))),Highlight(Box(322,420,313,25,Style(High))),Select(Box(322,420,313,25,Style(Sel)),Use(pageres)));
  27. Button(Normal(Box(4,390,313,25,Style(Norm))),Highlight(Box(4,390,313,25,Style(High))),Select(Box(4,390,313,25,Style(Sel)),Use(croppos)));
  28. Button(Normal(Box(4,420,313,25,Style(Norm))),Highlight(Box(4,420,313,25,Style(High))),Select(Box(4,420,313,25,Style(Sel)),Use(cropsize)));
  29. Button(Normal(Box(322,360,313,25,Style(Norm))),Highlight(Box(322,360,313,25,Style(High))),Select(Box(322,360,313,25,Style(Sel)),Use(dither)));
  30. Button(Normal(Box(110,450,101,25,Style(Norm))),Highlight(Box(110,450,101,25,Style(High))),Select(Box(110,450,101,25,Style(Sel)),Use(editpopup)));
  31. Button(Normal(Box(4,450,101,25,Style(Norm))),Highlight(Box(4,450,101,25,Style(High))),Select(Box(4,450,101,25,Style(Sel)),Use(preview)));
  32. Button(Normal(Box(216,450,207,25,Style(Norm))),Highlight(Box(216,450,207,25,Style(High))),Select(Box(216,450,207,25,Style(Sel)),Use(designpopup)));
  33. Button(Normal(Box(428,450,101,25,Style(Norm))),Highlight(Box(428,450,101,25,Style(High))),Select(Box(428,450,101,25,Style(Sel)),Use(okbutton)));
  34. Button(Normal(Box(534,450,101,25,Style(Norm))),Highlight(Box(534,450,101,25,Style(High))),Select(Box(534,450,101,25,Style(Sel)),Use(cancelbutton)));
  35. Wait();
  36. Sequence:
  37. Use(SetUp);
  38. Use(DrawBox);
  39. Button(Wipe("BlindsFantasy3",Speed(7),Direction(90)),Normal(Box(BoxX+BoxW+10,BoxY,115,(BoxH/2),Style(Info))));
  40. Text(BoxX+BoxW+18,BoxY+10,"This screen^nhas 3 layouts",Style(Mid),Wrap(Off,Auto(340)));
  41. Button(MatchSize(On),Normal(Text(BoxX+BoxW+30,BoxY+45,"Plain",Style(Layout1))),Highlight(Text(BoxX+BoxW+30,BoxY+45,"Plain",Style(Layout2))),Select(Text(BoxX+BoxW+30,BoxY+45,"Plain",Style(Layout3)),goto(sub1)));
  42. Text(BoxX+BoxW+30,BoxY+60,"Picture",Style(LayoutText));
  43. Button(MatchSize(On),Normal(Text(BoxX+BoxW+30,BoxY+75,"Animation",Style(Layout1))),Highlight(Text(BoxX+BoxW+30,BoxY+75,"Animation",Style(Layout2))),Select(Text(BoxX+BoxW+30,BoxY+75,"Animation",Style(Layout3)),goto(sub3)));
  44. Resources:
  45. :titlebar
  46. {
  47. title="Background menu title bar";
  48. text[1]="Displays the name of the current page. Use the Page Switcher to move to other pages in the script without exiting the Background menu. All changes made to the current page are automatically confirmed when you move.";
  49. descr=text[1];
  50. block=1;
  51. max=1;
  52. Use(SetPos);
  53. }
  54. :infobutton
  55. {
  56. title="Information button";
  57. text[1]="Switches Scala into Help mode. ";
  58. descr=text[1];
  59. block=1;
  60. max=1;
  61. Use(SetPos);
  62. }
  63. :background
  64. {
  65. title="Background";
  66. text[1]="Indicates the current background type and, if not a plain background, the name of the picture or animation file. Clicking on this button takes you to the File menu where you can select another background.";
  67. descr=text[1];
  68. block=1;
  69. max=1;
  70. Use(SetPos);
  71. }
  72. :custsize
  73. {
  74. title="Custom Size?";
  75. text[1]="With a picture or plain background, shows the width and height of the background in pixels. Click to allow setting a custom size. This turns the size display into a value control you can use to stretch or squeeze the image.";
  76. descr=text[1];
  77. block=1;
  78. max=1;
  79. Use(SetPos);
  80. }
  81. :pageres
  82. {
  83. title="Page Resolution...";
  84. text[1]="Lets you change the page resolution. Brings up a dialog showing the available resolutions.";
  85. descr=text[1];
  86. block=1;
  87. max=1;
  88. Use(SetPos);
  89. }
  90. :croppos
  91. {
  92. title="Crop Position";
  93. text[1]="Sets the upper left corner of the crop area. The first value is the distance from the left side of the original image, the second value is the distance from the top of the original image. ";
  94. descr=text[1];
  95. block=1;
  96. max=1;
  97. Use(SetPos);
  98. }
  99. :cropsize
  100. {
  101. title="Crop Size";
  102. text[1]="Defines the size of the area visible after cropping. The first value is the crop area width, and the second is its height. ";
  103. descr=text[1];
  104. block=1;
  105. max=1;
  106. Use(SetPos);
  107. }
  108. :dither
  109. {
  110. title="Dither?";
  111. text[1]="Applies Floyd-Steinberg dithering to a picture background, which simulates additional colors to improve color shading without changing the palette.";
  112. descr=text[1];
  113. block=1;
  114. max=1;
  115. Use(SetPos);
  116. }
  117. :editpopup
  118. {
  119. title="Edit pop-up";
  120. text[1]="Provides basic editing functions with the following options:^n^nImport: loads a file. Brings up the File menu for you to load a clip file.^n^nExport: saves a background to a file, with any sizing, cropping, and other changes you have made. A dialog asks if you want to replace the current background with the version you saved, including any elements you saved as part of the background image with Export All?.";
  121. text[2]="Copy: copies a background to the Scala clipboard.^n^nPaste: inserts the most recently copied elememt from the Scala clipboard onto the page.";
  122. descr=text[1];
  123. block=1;
  124. max=2;
  125. Use(SetPos);
  126. }
  127. :preview
  128. {
  129. title="Preview";
  130. text[1]="Lets you view the current page, showing element wipes.";
  131. descr=text[1];
  132. block=1;
  133. max=1;
  134. Use(SetPos);
  135. }
  136. :designpopup
  137. {
  138. title="Design pop-up";
  139. text[1]="Lets you choose another Design menu to continue composing or refining a page.";
  140. descr=text[1];
  141. block=1;
  142. max=1;
  143. Use(SetPos);
  144. }
  145. :okbutton
  146. {
  147. title="OK";
  148. text[1]="Accepts editing changes to the current page and brings up the OK dialog box.";
  149. descr=text[1];
  150. block=1;
  151. max=1;
  152. Use(SetPos);
  153. }
  154. :cancelbutton
  155. {
  156. title="Cancel";
  157. text[1]="Closes the Design menu and returns to the Main menu without saving any changes to the current page.";
  158. descr=text[1];
  159. block=1;
  160. max=1;
  161. Use(SetPos);
  162. }
  163. }
  164. Resources:
  165. :sub1
  166. {
  167. Group:
  168. SubNum="1";
  169. Quit(1);
  170. }
  171. :sub2
  172. {
  173. Group:
  174. SubNum="2";
  175. Quit(1);
  176. }
  177. :sub3
  178. {
  179. Group:
  180. SubNum="3";
  181. Quit(1);
  182. }
  183. }
  184.