RAD-in-Action Webinar – Unit Testing in Delphi

RAD-in-Action Webinar  - Unit Testing in Delphi

You’re invited to join Embarcadero and Delphi programming expert and author, Nick Hodges, for an in-depth look at unit testing in Delphi.

Without unit tests your code is fragile, hard to change, and unreliable. Unit testing is the only way that you can be sure that your code does what it is supposed to do.

In this webinar, Nick discusses the basics of Unit Testing as well as providing a demo that illustrates the points at hand using the new DUnitX framework. This will lead to a discussion of stubs and mocks, and the use of the DelphiMocks framework to ensure that all your classes are tested in isolation.

Click on the image to join

Treinamento Delphi Android Essentials

Treinamento Delphi Android Essentials

Precisamos acompanhar as tendências, e elas nos dizem que aplicativos para dispositivos móveis são o futuro, na verdade é nosso presente, é uma necessidade de toda empresa
Não perca a chance de se atualizar e evitar ficar fora do mercado de trabalho.
Mais informações pelo e-mail: rboaro@uppertraining.com.br

Yes!! RAD Studio C ++ in testThis time we’re going to perform a similar set of tests for Windows.

Yes!! RAD Studio C ++ in testThis time we're going to perform a similar set of tests for Windows.

This time we’re going to perform a similar set of tests for Windows.
One notable aspect of using C++ on Windows is you’re typically encouraged to use an IDE such as Microsoft Visual Studio, or else a competing-style IDE such as one from Embarcadero called RAD Studio (which came up from the ashes of the old Borland products, Delphi and C++ Builder). Although it can also be used in a standalone fashion, the Intel compiler integrates into Visual Studio (but not the free Express versions of Visual Studio); there are also some very nice, free IDEs such as CodeLite and Code::Blocks. But to perform tests of the compilers themselves, I removed the IDE variable in favor of focusing only on the command line.

full article click on the image

Delphi XE5 HotFix 4 has new reFind

Delphi XE5 HotFix 4 has new reFind

Embarcadero has released hotfix 4 for Delphi, C++Builder and RAD Studio XE5 Update 2. It contains the updated reFind that was supposed to ship in Update 2.
Embarcadero has released hotfix 4 for Delphi, C++Builder and RAD Studio XE5 Update 2. It contains the updated reFind that was supposed to ship in Update 2.

Form the readme: “This Hotfix provides an updated reFind.exe which can be found in the bin folder. This version of reFind.exe is 2.5. Additional features include unit names replacements, required by the BDE conversion demo script included among XE5 Update 2 demos.”

Click on the image and download

Sharing images and data on mobile

Sharing images and data on mobile

I recently got a question on my blog on how to use the ShareSheet implementation on iOS and Android in code instead of using the built-in actions.

Using the built-in ShareSheet action, it only takes one line of code to share an image (or text) in your FireMonkey mobile app.

Here is a simple example using actions. You can download the code snippet here.

procedure TShareSheetForm.ShowShareSheetAction1BeforeExecute(Sender: TObject);
{ show the share sheet }

Here is how you can use ShareSheet to share images or text in your application without using the built-in actions:

unit MainFrm;


System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Layouts, FMX.Objects, FMX.Edit;

TForm1 = class(TForm)
Edit1: TEdit;
Image1: TImage;
SwitchSendText: TSwitch;
SwitchSendImage: TSwitch;
Button1: TButton;
Layout1: TLayout;
Layout2: TLayout;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
{ Private declarations }
{ Public declarations }

Form1: TForm1;


FMX.Platform, FMX.MediaLibrary;

{$R *.fmx}

procedure TForm1.Button1Click(Sender: TObject);
ShareSheetService: IFMXShareSheetActionsService;
SharedText: string;
SharedImage: TBitmap;
if TPlatformServices.Current.SupportsPlatformService(IFMXShareSheetActionsService, IInterface(ShareSheetService)) then
if SwitchSendText.IsChecked then
SharedText := Edit1.Text
SharedText := ‘ ‘;

if SwitchSendImage.IsChecked then
SharedImage := Image1.Bitmap
SharedImage := nil;

{ Share Data}
ShareSheetService.Share(Button1, SharedText, SharedImage);

Free Online Conference: CodeRage 8 C++

Free Online Conference: CodeRage 8 C++

Pre-registration is available now and we will email you when you can sign up. CodeRage C++ Conference topics include… Multi-device development for Windows, Mac and mobile, tips, tricks and techniques for VCL and the FM platform, database connectivity, development best practices, success stories
… and much much more!
25-26 February 2014

Fun with FireMonkey Gradients

Fun with FireMonkey Gradients

Everybody loves colours. Great apps should use colours in clever and original ways. I have been recently spending a lot time using Delphi XE5 for designing screens for mobile apps and must admit that I really like the way how iOS 7 is using colours and gradients. There are a lot of interesting information about iOS user interface design best practices at “iOS 7 Design Resources – iOS Human Interface Guidelines”.

Gradients look especially cool. It is so easy to use C++ or Delphi with FireMonkey framework to build great apps that are using gradients. Before going into the details let’s get started with something super simple.

Start Delphi XE5. File, New, “FireMonkey Mobile Application – Delphi”. Select “Blank Application” template. Click OK and then “Save All”.
Drop “TRectangle” on the form and align it to occupy the whole screen by setting its “Align” property in the Object Inspector to “alClient”.
Expand “Fill” property of the rectangle and change its “Kind” subproperty to “bkGradient”.
Here we are. We have a nice grey gradient in our mobile Delphi FireMonkey app!

Click on the image and see all article.