Questions tagged [delphi-xe2]

Delphi XE2 is a specific version of Delphi. Delphi XE2 was released on September 1, 2011 and is available as a standalone product or as part of RAD Studio XE2.

Delphi XE2 is a specific version of released on September 1, 2011.

Notable new features of Delphi XE2 are:

  • Support for 64 bit applications (on Windows only);
  • Inclusion of a new framework called that allows for cross platform development;
  • Cross platform development for Mac OS X and iOS(*) (in addition to Windows);
  • Live bindings, a new data binding concept for VCL and FireMonkey that supersedes data-awareness of controls.

*iOS projects require an extra development step using Xcode and the Free Pascal compiler on a Mac, but do deliver native iOS code.

Delphi XE2 was preceded by .

Always use the tag alongside this tag.

2598 questions
23
votes
1 answer

With FireMonkey and its cross-platforms, where should I store my application data?

Usually, with Windows, I save my application's data in the user folder (%appdata%). For that, I use the function ExpandEnvironmentStrings which is linked to Windows to get the folder I need, and I store inside a subfolder my inifile. Is there any…
Whiler
  • 7,998
  • 4
  • 32
  • 56
23
votes
7 answers

How to count number of occurrences of a certain char in string?

How can I count the number of occurrences of a certain character in a string in Delphi? For instance, assume that I have the following string and would like to count the number of commas in it: S := '1,2,3'; Then I would like to obtain 2 as the…
user1556433
23
votes
2 answers

What can I do about maximized, styled windows, which show their borders on adjacent monitors?

On a multi-monitor system, a "blank" VCL application maximizes fine, but the same application with styles enabled (and one chosen as default) maximizes incorrectly. What I'm seeing is the right-hand edge of the window extend onto the 2nd monitor (my…
DaveS_Lifeway
  • 375
  • 3
  • 9
21
votes
4 answers

What does "Packed Now Forces Byte Alignment of Records" mean?

The What's New for Delphi XE2 contains the following. Packed Now Forces Byte Alignment of Records If you have legacy code that uses the packed record type and you want to link with an external DLL or with C++, you need to remove the word …
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
21
votes
1 answer

How can a designer design a firemonkey style

Firemonkey brings us the ability to add styles, vector graphics, bitmaps, effects, animations etc to our apps. But I'm no designer, so I'll need to hire one to do the fancy work. But as far as I can see all the design work is done within the IDE. Is…
Mike Sutton
  • 4,191
  • 4
  • 29
  • 42
21
votes
5 answers

Is there an easier way to do boolean conversions?

I have used this scenario many times in nearly all my projects, when I'm doing some sort of data conversion, when it comes to booleans, I kinda get a little lost when it comes to making it simple. This statement below sticks out like a sore thumb…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
21
votes
1 answer

How do I change the way the RAD Studio (2010 and later) IDE formats my code?

How do I configure the RAD Studio IDE to format my code with begin on either the same or next line when I use the Format Source option? One of the most commonly debated preferences is the position of begin - on the same line or a line of its own.…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
20
votes
1 answer

Need bidirectional LiveBindings between a control and an object

In Delphi XE2 LiveBindings, I need to bind a VCL control of any type to a property of any type on an arbitrary (non-component) object. I can do this unidirectionally. But I need to do it bidirectionally. Let's say I want to bind a…
Phil Gilmore
  • 1,286
  • 8
  • 15
20
votes
2 answers

Delphi XE2: Is it possible to create Mac GUI applications without FireMonkey?

Using Delphi XE2, is it possible to create a Mac GUI application without using FireMonkey for the GUI? If so, what could be used and how would one go about it?
Shannon Matthews
  • 9,649
  • 7
  • 44
  • 75
20
votes
6 answers

Reduce exe file

Using Delphi (or in general any tools, if exist of course), is it possible to reduce size of an exe file, removing all code that not is used but that is present there? (for example, a function or procedure that is present but is never called). I…
Marcello Impastato
  • 2,263
  • 5
  • 30
  • 52
20
votes
6 answers

How to convert Local time to UTC time in Delphi? and how to convert it back from UTC to local time?

I'm using Delphi and I'm trying to store records using UTC datetime in my database and then restore it back when a client reads it in his local datetime ? any idea how to do this forth back conversion ?
Dreamer64
  • 923
  • 2
  • 13
  • 30
20
votes
3 answers

How to define application version in one place for multiple applications?

We have a system which consists of numerous applications. All applications have their version changed at the same time. Currently, when we release a new version, we have to manually open the project options of each application and change the version…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
20
votes
1 answer

Why cannot take address to a nested local function in 64 bit Delphi?

AS. since closing related questions - more examples added below. The below simple code (which finds a top-level Ie window and enumerates its children) works Ok with a '32-bit Windows' target platform. There's no problem with earlier versions of…
Sertac Akyuz
  • 54,131
  • 4
  • 102
  • 169
19
votes
7 answers

Setting up a large software system in Delphi

We have a software package which is about 16 years old. It's gone through just about every version of Delphi (besides .NET ones). Over the years, things have become very confusing when it comes to cross-referencing and keeping proper setup for…
19
votes
3 answers

How to disable VCL styles in Delphi

I am using the new VCL styles system in Delphi XE2. It works great, but I wish to disable it for a particular form that has a number of images on it (a splash/about form). Problem is I can't seem to find a property of the form that associates it…
Alan Clark
  • 2,017
  • 21
  • 28