Let's share the knowledge with your friends











84 Shares

FireMonkey is going to be a whole new world of possibilities for Delphi and C++Builder developers. The platform itself is flexible, customizable and multi-platform, all components behave the same on Windows and Mac. In this post I will give you a general idea of some very powerful concepts related with components in FireMonkey, during the RAD Studio XE2 World Tour you will see much more.

Components in FireMonkey are containers; it means you can embed any component inside any other component. Just to give you an idea, the Button component is composed of 9 components. When together, they look and behave like a Button, let’s see how it works.

[ilink style=”tick”]Starts with a TLayout component, which helps to organize all of the controls[/ilink]

[ilink style=”tick”]Three TRectangle are responsible for the button look and feel, like: border, background and foreground color[/ilink]

[ilink style=”tick”]A Label represents the Button text[/ilink]

[ilink style=”tick”]And ends with four components, two for animation and other two for effects. Why effects and animations? Animations will happen when you move the mouse over/out the button, effects will happen when button is pressed or has a focus, the glow effect is responsible for that.[/ilink]

As you can see, a number of different features has been used to create a button, this is what happen with all of FireMonkey components.

And one more think, components’ look and feel can be changed and reused using Styles. Imagine a web page that use CSS, you change the web page look and feel just updating the CSS, right? In FireMonkey is the same, instead CSS you will use Styles to change the application look and feel.

Apps and components look and work properly on the respective native platform, but you can also style them to look or behave differently. below an example.

More to come, stay tuned to this blog, other Embarcadero blogs and Embarcadero web site.

[button link=”http://www.embarcadero.com/world-tour” size=”large” style=”note” color=”red” border=”white” text=”light” window=”yes”]Register today for the RAD Studio XE2 World Tour[/button]