Question:
Can a 3D effect be applied to a Rectangle so that it imitates a button’s behavior whenever it is clicked?
Solution:
Yes. To do so, go to E3Studio, select the Rectangle, and follow these procedures:
- Change Effect3D property to 1-Raised.
- In MouseDown event, create a script passing value 2 to Effect3D property. Example: Effect3D = 2.
- In MouseUp event, create a script passing value 1 to Effect3D property. Example: Effect3D = 1.
No further settings are required.
NOTE: attached to this article is a sample application illustrating the points above.