Introduction to Delphi xe2 firemonkey (17)-Special Effects

Source: Internet
Author: User
When xe2 was opened, we found over 60 effects in the effects Group of the tool palette window...

Each special effect corresponds to a class from FMX. Effects and FMX. Filter. effects.
The special effects in FMX. effects belong to additional effects. The special effects in FMX. Filter. effects are just some filter effects. They are all quick applications of filters.

Each special effect has different parameters. Because it inherits teffect from FMX. types directly or indirectly, it also has functions such as trigger, enabled, and getdisablepaint.

Test: place a tpanel on the form.

{Set shadow effects for Panel1} procedure tform1.formcreate (Sender: tobject); begin with tshadoweffect. create (Self) Do begin parent: = Panel1; // The effect is also applied to the parent Object Distance: = 3.0; // The distance from direction: = 45.0; // The angle softness: = 0.3; // softening degree opacity: = 0.6; // transparency shadowcolor: = clablack; // shadow trigger: = 'ismouseover = true'; // specifies the effect-enabled event, inherited from its parent class teffect, which is not very useful now (or may not be used) end;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.