home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / multimedia / scala / HELP / CONTROL2.SCA < prev    next >
Encoding:
Text File  |  1996-05-14  |  2.5 KB  |  96 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,271,"scala:\help\graphics\control2.gif");
  18. pagename="Element Control menu";
  19. pagedescr="Lets you turn an element on or off, and allows you to change its name. ";
  20. descr="Click a button to get information about it!";
  21. title="";
  22. Button(Normal(Box(620,390,19,25,Style(Norm))),Highlight(Box(620,390,19,25,Style(High))),Select(Box(620,390,19,25,Style(Sel)),Use(infobutton)));
  23. Button(Normal(Box(4,420,97,25,Style(Norm))),Highlight(Box(4,420,97,25,Style(High))),Select(Box(4,420,97,25,Style(Sel)),Use(activebutton)));
  24. Button(Normal(Box(106,420,529,25,Style(Norm))),Highlight(Box(106,420,529,25,Style(High))),Select(Box(106,420,529,25,Style(Sel)),Use(nametext)));
  25. 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)));
  26. 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)));
  27. Wait();
  28. Sequence:
  29. Use(SetUp);
  30. Use(DrawBox);
  31. Button(Wipe("BlindsFantasy3",Speed(7),Direction(90)),Normal(Box(BoxX+BoxW+10,BoxY,115,(BoxH/2),Style(Info))));
  32. Text(BoxX+BoxW+20,BoxY+10,"This screen ^nhas 2 layouts",Style(Mid),Wrap(Off,Auto(340)));
  33. Button(MatchSize(On),Normal(Text(BoxX+BoxW+38,BoxY+45,"Page",Style(Layout1))),Highlight(Text(BoxX+BoxW+38,BoxY+45,"Page",Style(Layout2))),Select(Text(BoxX+BoxW+38,BoxY+45,"Page",Style(Layout3)),goto(sub1)));
  34. Text(BoxX+BoxW+38,BoxY+60,"Element",Style(LayoutText));
  35. Resources:
  36. :infobutton
  37. {
  38. title="Information button";
  39. text[1]="Switches Scala into Help mode. ";
  40. descr=text[1];
  41. block=1;
  42. max=1;
  43. Use(SetPos);
  44. }
  45. :activebutton
  46. {
  47. title="Active? button";
  48. text[1]="Turns the element on or off.";
  49. descr=text[1];
  50. block=1;
  51. max=1;
  52. Use(SetPos);
  53. }
  54. :nametext
  55. {
  56. title="Name: text";
  57. text[1]="Changes the element name.";
  58. descr=text[1];
  59. block=1;
  60. max=1;
  61. Use(SetPos);
  62. }
  63. :okbutton
  64. {
  65. title="OK";
  66. text[1]="Accepts changes and exits the Element Control menu.";
  67. descr=text[1];
  68. block=1;
  69. max=1;
  70. Use(SetPos);
  71. }
  72. :cancelbutton
  73. {
  74. title="Cancel";
  75. text[1]="Returns to the Design List menu without applying changes.";
  76. descr=text[1];
  77. block=1;
  78. max=1;
  79. Use(SetPos);
  80. }
  81. }
  82. Resources:
  83. :sub1
  84. {
  85. Group:
  86. SubNum="1";
  87. Quit(1);
  88. }
  89. :sub2
  90. {
  91. Group:
  92. SubNum="2";
  93. Quit(1);
  94. }
  95. }
  96.