Delphi

How to load custom styles at runtime

During my session at CodeRage, I briefly talked about how to load custom styles at runtime. I wanted to elaborate on this topic and provide some detailed steps. In this example, we are creating a mobile app for iOS and Android that uses the ‘Jet’ Premium Style.I added both styles via the resources dialog in the IDE and used the TStyleManager.LoadFromResource method to load either…
Read more
Delphi

Are you asking about app size? (by Delphi for Android)

Author: Vsevolod L1433 You’re asking about app size? Not a news. Since Delphi 1 people’re asking “why Windows calculator is 33 kb, while Delphi version of the same exe is 300 kb”? Then and now it’s a question not about technology. Are you asking about the technology? Technology is so, that some additional megabytes give you cross-platform development tools, and…
Read more
Delphi

Playing Audio Clips on Android

I have been working with our R&D team on the samples and snippets for RAD Studio XE5. Our mobile snippets are designed to showcase key functionality with just a couple of lines of code. Today I thought I would highlight our AudioPlayBack snippet. This snippet consists of…
Delphi

Opening a file with the default program on Windows and Mac

I’ve been using the windows API call ShellExec for years to pass in the file name of a file I want to launch programatically with the default application on Windows; but I am now creating an application for use on Windows and Mac with FireMonkey for the upcoming season of Developer Direct LIVE Mobile Summer School (starting Tuesday 16th July) and I need to implement the same functionality on…
Read more
Delphi

Clone FireMonkey objects

Author: Vsevolod L1433 I’ve got a task of cloning FireMonkey objects. Let it be “chess”. An object is created as an aggregate in design-time. Look at the picture in the Structure pane. I have made the composite pawn model and start thinking of make 15…
Delphi

Delphi Labs: DataSnap code samples updated to XE3

Author: Pawe Gowacki It seems that it is my very first post in the New Year 2013, so I wish You all the best and great time writing all kinds of programs. I’m sure it is going to be a great year for Delphi and Marco is predicting it as well, especially that next month Delphi is going to become adult! Two years ago I have put together a serie of Delphi DataSnap tutorials called “Delphi…
Read more