C ++ Builder XE2 casual Learning (2) & gt; Preparation

Source: Internet
Author: User

New Features of RAD Studio XE2: multi-platform support, native iOS and Android, HD and 3D animation, and cloud

RAD Studio XE2 has many new features. The most important feature is its support for cross-platform development, Windows 64-bit, Amazon Cloud API, Native Android and iOS, and HD and 3D animation.

For a long time, many Windows developers have been using Delphi and C ++ Builder to create applications for the Microsoft platform, but now they are also looking at Mac OS X. Its IDE does not run on Mac, but the library generated by the compiler can be installed and run on the Mac computer through the network, so that the same set of source files will have two application libraries. Delphi supports 64-bit Windows, including a debugger and Deployment Manager.

Delphi and C ++ Builder also have FireMonkey, a new platform for creating HD and 3D animations for Windows, Mac OS X, and iOS. These native applications use the CPU and GPU to draw animations and can connect to any data type through LiveBindings.

The Delphi and C ++ Builder applications can be deployed on Amazon EC2 and Windows Azure. They also support Amazon Simple Storage Service APIs, Queue Service, and SimpleDB.

RADPHP is now targeted at iOS and Android devices and can visually display the appearance of applications on various mobile devices. Developers can also generate native applications for these platforms from PHP. RADPHP uses the jQuery Mobile control to design the interface.

In addition to the enhancement of the original features, Delphi Prism also adds many new features, as shown below:

New Oxygene Compiler 5.0

The editor displays error details, ranges, and descriptions.

The Code Editor displays compilation errors instantly.

Support for fixing selected new errors

Soft language interface and duck type

Anonymous interface implementation

Enhanced Oxidizer Integration

There are too many things, and there are a lot of terms. First, start with what you are interested in: FireMonkey. After learning about it, you can learn the next thing. I will review this introduction later.

OK, FireMonkey. What are you?

Take a look at The official introduction (http://www.embarcadero.com/images/FireMonkey_datasheet.pdf): FireMonkey-The next generation business application platform, actually rose to this height? There are too many new features.

 

 

 

 

 

Let's start with the help document.

After installing C ++ Builder XE2, go to help

 

 

Why? A prompt box will pop up for each link

 

Isn't that annoying?

Try entering the URL directly into the IE address bar:

Ms-help: // embarcadero. rs_xe2/rad/what's_new_in_delphi_and_c?#builder_xe2.html

Aha, no longer prompts

 

 

First look at FireMonkey Application Platform

Cangtian, VCL Is Incompatible with FireMonkey. Actually, FireMonkey Is Incompatible with VCL,Caution: FireMonkey (FMX)AndVisual Component Library (VCL)Are not compatible and cannot be used in the same project or application. That is, an application must be exclusively one or the other, eitherFireMonkeyOrVCL. The incompatibility is caused by framework differencesFireMonkey (FMX)AndVCL.

My FutureGraph is all based on VCL. Can I use FireMonkey to implement it again? This is a big problem. It is not decided for the moment.

Oh, three major class libraries are provided: FMX, VCL, and RTL. The relationship between them, alas, is still in the tangle between VCL and FireMonkey. I don't know much about it, so I won't study it anymore.

It's too early to draw a conclusion. Grab the FireMonkey first and check it out.

Oh, one thing is necessary. Does FireMonkey have special requirements for computers? Check FireMonkey Platform Prerequisites.

Well, the Support Platform has 32-bit and 64-bit Windows. For other platforms, let alone.

The most important concern is whether the GPU needs video card support. It seems that my graphics card does not support GPU, so I don't have to buy another computer.

The GPU must support Pixel Shader 2.0, part of DirectX 9.0, which first appeared from varous vendors in these products:

  • ATI (now AMD) Radeon 9500-X600 series and introduced in 2002.
  • Intel GMA 900, introduced in 2004.
  • NVIDIA GeForce FX (or GeForce 5) series, introduced in 2003.

Ah? My video card is ATI Radeon 3650. Is it supported? You have to find a test program.

 

 

The worst case is that my graphics card does not support GPUs.

Oh, there are also Virtual machines. I use Virtual Box, where C ++ Builder XE2 has been installed, which seems to be available.

OK. It's basically ready. Create a project today.

You can create a FireMonkey project in either of the two ways, and the dialog box is more comprehensive.

3D is easy to understand. It means 3D. What does HD mean? It seems like 2D, but why not 2D? I searched the internet for HD stands for High Definition, but I still don't quite understand it. It seems that HD in a movie means HD, but there is still a guy who explains it a bit:

The relationship between VCL and FireMonkey HD is similar to the relationship between ordinary TV and hd TV. Both can complete 2D Applications, but VCL cannot complete 3D Applications, vector graphics engine, and GPU. Well, let's understand it first.

 

 

 

The main window of the default project is similar to the previous RAD, and the color turns black.

 

However, it works normally after running, but the icon is different from the previous one.

 

Go back to IDE and try the F11 shortcut.

Modify attributes in the property browser. Well, most attributes are still known. However, there are many new features, such as Fill, Stylebook, and StyleName.

 

First, use Fill to solve the problem. Ha, to achieve the effect, of course, Gradient is used. However, the appreciation level is too low, and it cannot be beautiful. When can I see a dazzling interface, I will try again.

I tried it for five minutes. I had a basic understanding of the function of the Brush Designer. It was too trembling to write it out. I tried it myself.

 

 

I'm not quite comfortable with it. I don't have a button. How can I go back if I try to break it down? Maybe I have thought too much about it. However, if I am a generation with poor art skills, I am not easy to be satisfied with myself, so I am afraid to do it easily?

Another strange phenomenon was found: After I modified the Fill attribute again, the following results were achieved:

 

But after running, it is still the previous interface

 

Even Project> Clean and Build again won't work, won't it.

After trying N for a long time, find a method:

Modify WindowState. This is not a BUG!

 

Let's take a look at this aesthetic level.

 

Continue! If you are interested, join the group 208894875 for in-depth communication and study and make progress together.

Column of the author ArWen

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.