Questions tagged [delphi-xe5]

Delphi XE5 is a specific version of Delphi released in September 2013. Always use the [delphi] tag alongside this tag.

Delphi XE5 is a specific version of Delphi.

Delphi XE5 was released on September 12, 2013 and is available as a standalone product or as part of RAD Studio XE5.

Delphi XE5 is compiler version 26, directive symbol VER260.

Notable new features of Delphi XE5 are:

Delphi XE5 was preceded by Delphi XE4.

Always use the tag alongside this tag.

880 questions
11
votes
2 answers

delphi - local variable and array of TPair - strange behavior of memory allocation

i have following code example compiled in delphi xe5 update 2. procedure TForm1.FormCreate(Sender: TObject); var i,t:Integer; buf: array [0..20] of TPair; begin t := 0; for i := Low(buf) to High(buf) do begin …
linluk
  • 1,650
  • 16
  • 33
11
votes
1 answer

What does an asterisk in the Object Inspector mean?

In Delphi's object inspector, I see an asterisk behind a property name (ConnectionName*): How does it get there, and above all: what does it mean? In the sourcecode for TMySQLConnection I don't see anything special, so I guess it's some design-time…
Wouter van Nifterick
  • 23,603
  • 7
  • 78
  • 122
11
votes
1 answer

Generic Threadsafe Property

I have created this "threadsafe" generic property, that i can use between the main thread and a background Thread. I made it because i was tired of creating Lock-Objects for all my properties and variables. TLockedProp = class private …
r_j
  • 1,348
  • 15
  • 35
10
votes
2 answers

How can I get the number of elements of any variable of type set?

AFAIK there's no built-in function for that. Searching the web I found this function and it works for me, but I prefer not to use it since it's assembly and I can't understand what it is doing. So I wrote this function that also works: function…
saastn
  • 5,717
  • 8
  • 47
  • 78
10
votes
1 answer

Links to games created by Windows when delphi projects create exes with specific names

I have a Delphi project called VR that produces an executable named VR.exe. To my dismay I discovered Windows (I am running Window 7 64 bit Ultimate) has added links to the start menu and under games: Search & Rescue: Vietnam MED+EVAC. The icons for…
boggy
  • 3,674
  • 3
  • 33
  • 56
10
votes
2 answers

Change the font and background colours of a TMemo in FireMonkey

I am writing a memo component that needs to look like an old fashioned terminal session. This should be really simple, but the way FireMonkey styles work seem to make it unbelievably complex. In a non mobile FireMonkey app I can right click a…
norgepaul
  • 6,013
  • 4
  • 43
  • 76
10
votes
2 answers

How do I open URLs, PDFs, etc. with the default apps?

I am developing an Android application with Delphi XE5, and I would like to know how I can open a URL in the default browser, and a PDF file with the default reader. Developing for Windows, I used ShellExecute, but for Android and iOS what should I…
user2791639
  • 103
  • 1
  • 4
9
votes
1 answer

How to use TCharHelper?

The next code: function get_symbol (var s: String): String; var c: Char; p: Int32; begin // ... some more code ... c := upcase (s [p]); if IsDigit (c) then causes the following error message: [dcc32 Warning]…
Arnold
  • 4,578
  • 6
  • 52
  • 91
9
votes
3 answers

Firemonkey: Adding a font from resource to memory and using it

In VCL, I could load a font from resource and without saving it I could use it from memory. Here is the code I use and it works in VCL: procedure TForm1.Button1Click(Sender: TObject); var ResStream : tResourceStream; FontsCount :…
Sky
  • 4,244
  • 7
  • 54
  • 83
9
votes
1 answer

Taking pictures on Android from Delphi Firemonkey XE5 app

Has anyone been able to take pictures from camera on Android from within the app written in Delphi Firemonkey XE5? How about the video capture? This is believed to be either a bug in a framework or just something with missing documentation about…
That Marc
  • 1,134
  • 3
  • 19
  • 42
9
votes
1 answer

How to use OnNotify of generic TList

I want to use the OnNotify event of a generic TList. Assigning a procedure to OnNotify yields the error message: E2010 Incompatible types: 'System.Generics.Collections.TCollectionNotification' and 'System.Classes.TCollectionNotification' I am…
Arnold
  • 4,578
  • 6
  • 52
  • 91
8
votes
1 answer

In Delphi, what's the keyword for the maximal value for a floating point type?

Note: This question has been edited because my issue became something completely different. You'll find the direct answer to the question What's the keyword for the maximal value for a floating point type? in MBo's answer - use System.Math's…
Pimgd
  • 5,983
  • 1
  • 30
  • 45
8
votes
4 answers

How to programmatically change the FontColor of a Tlabel

When I put a TLabel on a form, I can change the color of its text by changing the FontColor property. However, when I do this in my program by Label1.FontColor := TAlphaColors.Aquamarine; this doesn't work. Any idea what's wrong?
Arnold
  • 4,578
  • 6
  • 52
  • 91
8
votes
4 answers

Constant string parameters and the Delphi XE5 compiler for Android

Hopefully I'm just missing something obvious, but I seem to be finding constant string arguments getting corrupted when using the Delphi XE5 Android compiler. Test code: 1) Create a new blank mobile application project. 2) Add a TButton to the form,…
Chris Rolliston
  • 4,788
  • 1
  • 16
  • 20
8
votes
1 answer

Where did EraNames go in Delphi XE5?

The unit SysUtils (System.SysUtils) no longer has an EraNames or FormatSettings.EraNames. What is its replacement and where did it go? i.e: for I := Low(SysUtils.EraNames) to High(SysUtils.EraNames) do begin .. end;
Warren P
  • 65,725
  • 40
  • 181
  • 316
1
2
3
58 59