KB-30866: 3D effect in a Rectangle.

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.

Attachments:

Rectangle3D.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *