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

  1. !ScalaScript
  2. {
  3. Sequence:
  4. :"SubScript"
  5. {
  6. Group:
  7. BoxX.1=139;
  8. BoxY.1=40;
  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,288,"scala:\help\graphics\styles2.gif",transparent(off));
  18. Clip(20,20,"scala:\help\graphics\Clip-gfx.gif");
  19. pagename="Design Styles menu";
  20. pagedescr="Lets you control style options related to the various elements on the page.";
  21. descr="Click a button to get information about it!";
  22. title="";
  23. Button(Normal(Box(0,288,639,25,Style(Norm))),Highlight(Box(0,288,639,25,Style(High))),Select(Box(0,288,639,25,Style(Sel)),Use(titlebar)));
  24. Button(Normal(Box(620,288,19,25,Style(Norm))),Highlight(Box(620,288,19,25,Style(High))),Select(Box(620,288,19,25,Style(Sel)),Use(infobutton)));
  25. Button(Normal(Box(467,336,18,109,Style(Norm))),Highlight(Box(467,336,18,109,Style(High))),Select(Box(467,336,18,109,Style(Sel)),Use(scrollbar)));
  26. Button(Normal(Box(104,336,358,109,Style(Norm))),Highlight(Box(104,336,358,109,Style(High))),Select(Box(104,336,358,109,Style(Sel)),Use(clipattrs)));
  27. Button(Normal(Box(489,396,146,25,Style(Norm))),Highlight(Box(489,396,146,25,Style(High))),Select(Box(489,396,146,25,Style(Sel)),Use(snaptogrid)));
  28. 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)));
  29. 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)));
  30. 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)));
  31. 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)));
  32. 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)));
  33. Button(Normal(Box(489,336,146,25,Style(Norm))),Highlight(Box(489,336,146,25,Style(High))),Select(Box(489,336,146,25,Style(Sel)),Use(saveasdefs)));
  34. Button(Normal(Box(489,366,146,25,Style(Norm))),Highlight(Box(489,366,146,25,Style(High))),Select(Box(489,366,146,25,Style(Sel)),Use(restoredefs)));
  35. Button(Normal(Box(4,350,96,96,Style(Norm))),Highlight(Box(4,350,96,96,Style(High))),Select(Box(4,350,96,96,Style(Sel)),Use(shadowbutton)));
  36. Wait();
  37. Sequence:
  38. Use(SetUp);
  39. Use(DrawBox);
  40. Button(Wipe("BlindsFantasy3",Speed(7),Direction(90)),Normal(Box(BoxX+BoxW+10,BoxY,115,(BoxH/2),Style(Info))));
  41. Text(BoxX+BoxW+18,BoxY+10,"This screen^nhas 2 layouts",Style(Mid),Wrap(Off,Auto(340)));
  42. Button(MatchSize(On),Normal(Text(BoxX+BoxW+23,BoxY+45,"Text Attributes",Style(Layout1))),Highlight(Text(BoxX+BoxW+23,BoxY+45,"Text Attributes",Style(Layout2))),Select(Text(BoxX+BoxW+23,BoxY+45,"Text Attributes",Style(Layout3)),goto(sub1)));
  43. Text(BoxX+BoxW+23,BoxY+60,"Clip Attributes",Style(LayoutText));
  44. Resources:
  45. :titlebar
  46. {
  47. title="Styles 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 Styles menu. All changes made to a page are automatically confirmed before moving.";
  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. :scrollbar
  64. {
  65. title="Scroll bar";
  66. text[1]="Lets you scroll through the list of styles.";
  67. descr=text[1];
  68. block=1;
  69. max=1;
  70. Use(SetPos);
  71. }
  72. :clipattrs
  73. {
  74. title="Styles attributes for clips";
  75. text[1]="Position^nAdjusts the placement of an element on the screen, in pixels horizontally and vertically from the top left corner of the screen (0,0).^n^nShadow Depth^nAdjusts the shadow position. Increasing the values moves the shadow down and to the right of the text or clip. You can also drag the control in the Shadow box to the new position.^n^nOutline Thickness^nAdjusts the thickness of the Outline style, in pixels.";
  76. text[2]="Bevel Thickness^nAdjusts the width of the edges of boxes with the Bevel style, in pixels.^n^nBorder Width^nLets you increase the width of a Backdrop box. You can adjust the additional space on the left and the right, in pixels.^n^nBorder Height^nLets you increase the height of a Backdrop box. You can adjust the additional space on the top and the bottom, in pixels.";
  77. text[3]="Grid Size^nLets you adjust the grid spacing. Use the value controls to increase or decrease horizontal and vertical spacing of grid lines, in pixels, between 2 and 64.^n^nSize^nSets the width and height of a clip in pixels. Use the value controls to modify the size. The clip is stretched or squeezed to fit these dimensions. You can also size a clip by dragging its graphic handles.";
  78. text[4]="Crop Position^nSets the top left corner position of the crop area of a clip. Use the value controls to change the position, in pixels of the original image. The size of the clip on screen does not change.^n^nCrop Size^nSets the width and height of the crop area of a clip. Use the value controls to change the size, in pixels. The size of the clip on screen does not change.";
  79. text[5]="Dither?^nDithers (simulates additional colors) to improve color shading in the clip without changing the current palette.^n^nFlip Horizontal?^nRotates a clip 180 degrees around a central vertical axis.";
  80. text[6]="Flip Vertical?^nRotates a clip 180 degrees around a central horizontal axis.^n^nRotate Angle^nLets you rotate a clip in one degree increments, from 0 to 359 degrees. Use the value control to adjust the angle.";
  81. descr=text[1];
  82. block=1;
  83. max=6;
  84. Use(SetPos);
  85. }
  86. :snaptogrid
  87. {
  88. title="Snap to Grid?";
  89. text[1]="Lets you easily position elements on a page so that they line up. When on, items can be positioned and sized only in increments determined by the Grid Size.";
  90. descr=text[1];
  91. block=1;
  92. max=1;
  93. Use(SetPos);
  94. }
  95. :preview
  96. {
  97. title="Preview";
  98. text[1]="Lets you view the current page, showing element wipes.";
  99. descr=text[1];
  100. block=1;
  101. max=1;
  102. Use(SetPos);
  103. }
  104. :editpopup
  105. {
  106. title="Edit pop-up";
  107. text[1]="Provides basic editing functions. In addition to Cut, Copy, Paste, Delete and Select All, the Styles menu Edit pop-up has the following options:^n^nImport: loads a file. Brings up the File menu for you to load a clip file.^n^nBring Forward: brings a selected, partially covered element to the front of an element covering it.^n^nSend Backward: sends a selected element behind an element it covers.";
  108. descr=text[1];
  109. block=1;
  110. max=1;
  111. Use(SetPos);
  112. }
  113. :designpopup
  114. {
  115. title="Design pop-up";
  116. text[1]="Lets you choose another Design menu to continue composing or refining a page.";
  117. descr=text[1];
  118. block=1;
  119. max=1;
  120. Use(SetPos);
  121. }
  122. :okbutton
  123. {
  124. title="OK";
  125. text[1]="Accepts editing changes to the current page and brings up the OK dialog box.";
  126. descr=text[1];
  127. block=1;
  128. max=1;
  129. Use(SetPos);
  130. }
  131. :cancelbutton
  132. {
  133. title="Cancel";
  134. text[1]="Closes the Design menu and returns to the Main menu without saving any changes to the current page.";
  135. descr=text[1];
  136. block=1;
  137. max=1;
  138. Use(SetPos);
  139. }
  140. :saveasdefs
  141. {
  142. title="Save as Defaults";
  143. text[1]="Lets you save the current attributes from the Design Text and Styles menus as the defaults for new pages.";
  144. descr=text[1];
  145. block=1;
  146. max=1;
  147. Use(SetPos);
  148. }
  149. :restoredefs
  150. {
  151. title="Restore Defaults";
  152. text[1]="Restores Scala's default settings for new pages.";
  153. descr=text[1];
  154. block=1;
  155. max=1;
  156. Use(SetPos);
  157. }
  158. :ShadowButton
  159. {
  160. title="Shadow Depth Control";
  161. text[1]="Allows you to control the direction the drop shadow is cast.^nAs you move the control the settings on the shadow depth button change accordingly.";
  162. descr=text[1];
  163. block=1;
  164. max=1;
  165. Use(SetPos);
  166. }
  167. }
  168. Resources:
  169. :sub1
  170. {
  171. Group:
  172. SubNum="1";
  173. Quit(1);
  174. }
  175. :sub2
  176. {
  177. Group:
  178. SubNum="2";
  179. Quit(1);
  180. }
  181. }
  182.