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
11
votes
1 answer

Pixel Shader model > 2.0 in FireMonkey

To start with my main question: Can I use pixel shader model 3, 4 or 5 in my FireMonkey applications? I want to be able to dynamically create pixel shaders in my FireMonkey program. To do that, I now compile a pixel shader using fxc.exe that comes…
Wouter van Nifterick
  • 23,603
  • 7
  • 78
  • 122
10
votes
4 answers

Any way to guess the mime type on Delphi XE2?

I need to guess the mime type with the purpose of fill the "Content-Type" header for some file uploads. I fail to found a solution for it. I wish to call something like: GetMimeType('C:File.jpg') and get back image/jpg. Best if is multiplataform…
mamcx
  • 15,916
  • 26
  • 101
  • 189
10
votes
4 answers

How to auto-save in XE2?

Is there any way that I can have the Delphi IDE auto-save all opened projects every X minutes, or just before compilatilation? I looked in XE2 and in Gexperts and didn't see anything, but that means nothing as I am thick.
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
10
votes
1 answer

Delphi XE2: empty application weighs 7 Mb

Why does it happen? An empty project (application, *.exe) size is 7 Mb, why?
maxfax
  • 4,281
  • 12
  • 74
  • 120
10
votes
3 answers

What databases for Mac are directly supported by the FireMonkey framework in Delphi XE2?

Confronted with the task to develop a database application for a company working in a pure Mac environment, what are my options for a central database server to be used by a Delphi FMX application (except the obvious setting up a Windows or Linux…
Uwe Raabe
  • 45,288
  • 3
  • 82
  • 130
10
votes
3 answers

How to calculate sunrise and sunset time for current date with Delphi

I need to determine sunrise and sunset times (local time) for the current day given a specific latitude and longitude and using Delphi (I am using XE2). I've found this article and used the SysTools library but the results do not agree with…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
10
votes
2 answers

Delphi XE2 TLabel glowsize causes graphic issue on top left corner of the screen

Ever since porting an app from XE to XE2 I noticed a strange bug, just opening the form in the ide or running the app, a white square box is drawn on the top left corner of the screen (out of the form), which goes away upon hovering the mouse or a…
hikari
  • 3,393
  • 1
  • 33
  • 72
10
votes
3 answers

how to make a transparent form when a VCL Style is enabled?

I'm using the following code to make a form transparent, but when the application has a VCL style enabled the form is paint with the background color of the VCL style instead of be transparent. uses Winapi.Windows, Winapi.Messages,…
Salvador
  • 16,132
  • 33
  • 143
  • 245
10
votes
3 answers

Creating an interface implementer instance at runtime

First, a little explanation about my situation: I have a sample interface which is implemented by different classes, and these classes might not always have a shared ancestor: IMyInterface = interface …
vcldeveloper
  • 7,399
  • 2
  • 33
  • 39
10
votes
1 answer

LiveBindings - TList bound to TStringGrid

I have the following example set of code, how can I bind the Data list elements to the TStringGrid using LiveBindings. I need bi-directional updates so that when the column in the grid is changed it can update the underlying TPerson. I have seen…
Robert Love
  • 12,447
  • 2
  • 48
  • 80
10
votes
3 answers

Delphi XE2 and LiveBindings between controls

Is it possible to do LiveBinding between controls, i.e. take 2 edit boxes and get the result of adding their contents together into a label. I'm sure it is, I just don't know where to start Thanks
mmmm
  • 2,431
  • 2
  • 35
  • 56
10
votes
6 answers

Floating point support in 64-bit compiler

What should we expect from the floating point support in 64-bit Delphi compiler? Will 64-bit compiler use SSE to implement floating point arithmetic? Will 64-bit compiler support the current 80-bit floating type (Extended)? These questions are…
kludg
  • 27,213
  • 5
  • 67
  • 118
10
votes
3 answers

StrUtils.SplitString not working as expected

I use the StrUtils in to split a string into a TStringDynArray, but the output was not as expected. I will try to explain the issue: I have a string str: 'a'; 'b'; 'c' Now I called StrUtils.SplitString(str, '; '); to split the string and I…
Obl Tobl
  • 5,604
  • 8
  • 41
  • 65
10
votes
6 answers

Can I define an array type of different types?

I'd like to define an array type which consists of different types, such as String, Integer, Boolean, Double, etc. but no objects, structures, or anything of that nature. Then I'd like to use this type as a function argument, for example... type …
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
10
votes
2 answers

How to force a Client DataSet to recalculate calculated and internal calculated fields?

I have a ClientDatSet with a few fkInternalCalc fields. The CDS is not linked to any provider; instead it's filled on the fly. How can I force CDS to recalculate all the "calculable" fields? I can not call Refresh() because there is no provider to…
iMan Biglari
  • 4,674
  • 1
  • 38
  • 83