GUI component interaction: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1,764: | Line 1,764: | ||
For this problem, you will need to open up Maple, go to the Components tab on the left, and insert a Text Area, and 2 Buttons. By right clicking each button, and clicking Component Properties, change one to Increase, and the other to Random. Then, click on 'Edit Content Changed Action". In the one labeled increase, type: |
For this problem, you will need to open up Maple, go to the Components tab on the left, and insert a Text Area, and 2 Buttons. By right clicking each button, and clicking Component Properties, change one to Increase, and the other to Random. Then, click on 'Edit Content Changed Action". In the one labeled increase, type: |
||
<lang Maple> |
|||
Increase(); |
Increase(); |
||
</lang> |
|||
In the one labeled Random, type: |
In the one labeled Random, type: |
||
<lang Maple> |
|||
Random(); |
Random(); |
||
</lang> |
|||
Then, by clicking the 2 gears and opening up the start-up commands, enter this: |
Then, by clicking the 2 gears and opening up the start-up commands, enter this: |
||
Line 1,787: | Line 1,791: | ||
end proc; |
end proc; |
||
</lang> |
</lang> |
||
=={{header|Mathematica}} / {{header|Wolfram Language}}== |
=={{header|Mathematica}} / {{header|Wolfram Language}}== |