Questions tagged [delphi-xe4]

Delphi XE4 is a specific version of Delphi released in April 2013.

Delphi XE4 was released in April 2013 and is available as a standalone product or as part of RAD Studio XE4.

Delphi XE4 was preceded by Delphi XE3.

Always use the tag alongside this tag.

545 questions
27
votes
1 answer

Why is PDWord not ^DWORD?

This program {$APPTYPE CONSOLE} {$TYPEDADDRESS ON} uses Winapi.Windows; procedure Foo(P: PDWORD); begin end; procedure Bar; var dw: DWORD; begin Foo(@dw); end; begin end. compiles in XE3, but does not in XE4, XE5, XE6 and XE7. The error…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
26
votes
0 answers

XE4 Delphi TCustomListView TViewStyle 'vsSmallIcon' badly arranged Icons

I'm using TListView in my form (which inherits from TCustomListView) and when I change ListView style to "vsSmallIcon" the icons gets badly arranged. We found this issue ever since we ported our Code from Borland 2006 to XE4. Rest all "ViewStyle"s…
17
votes
2 answers

How To Set a FMX.Panel Color?

FMX controls do not have a color property. What is the FMX equivalent to VCL.TColor? FMX.Panel1.Color := clBlack
Bill
  • 2,993
  • 5
  • 37
  • 71
16
votes
1 answer

Delphi XE4 immutable strings

With Delphi XE4 for the iOS platform a new string type was introduced: Immutable zero based strings. So far Delphi had copy on write mutable strings. So the question is, what does that mean for my future programming? Are there any advantages of one…
iamjoosy
  • 3,299
  • 20
  • 30
15
votes
3 answers

How to convert variant value into integer?

Below is my code: var i : integer; ... ... if not VarIsNull(TcxLookupComboBox(Sender).EditValue) then begin i := Integer(TcxLookupComboBox(Sender).EditValue); end; I can use VarToStr to convert variant into string but there is no VarToInt…
user1556433
15
votes
2 answers

Delphi Interface Reference Counting

I ran into a strange situation while testing something today. I have a number of interfaces and objects. The code looks like this: IInterfaceZ = interface(IInterface) ['{DA003999-ADA2-47ED-A1E0-2572A00B6D75}'] procedure…
Graymatter
  • 6,529
  • 2
  • 30
  • 50
13
votes
5 answers

What Is a .vrc file, how is is generated and can you remove it using the IDE?

I am trying to install a commercial component called JamShellBrowser but it will not install. I have contacted the developer, but meanwhile I'd like to know: What is a vrc file? How is it produced? Can it be controlled or modified with the Delphi…
Bill
  • 2,993
  • 5
  • 37
  • 71
13
votes
1 answer

Delphi TThread under ARC (iOS) not being released

What is a proper way to terminate a thread using Delphi for iOS under ARC management? Take this simple example: TMyThread = class(TThread) protected procedure Execute; override; public destructor Destroy; override; end; TForm2 =…
Eric
  • 552
  • 3
  • 14
13
votes
2 answers

Strange "inaccessible value" in debugger

Could anyone explain this screen: As you can see I have simple array - debugger shows values of its elements when I use A[0], A1... but I cannot get elements with local variable A[i] (but value of "i" is shown correctly). Project settings: …
rafal chlopek
  • 558
  • 5
  • 12
13
votes
4 answers

Delphi Unicode String Length in Bytes

I'm working on porting some Delphi 7 code to XE4, so, unicode is the subject here. I have a method where a string gets written to a TMemoryStream, so according to this embarcadero article, I should multiply the length of the string (in characters)…
Jessica Brown
  • 8,222
  • 7
  • 46
  • 82
12
votes
1 answer

Delphi XE - TObjectList Sorting

I have a list like this: FMyScheduleList: TObjectList; It has a property: property ADate: TDate read FDate write FDate; How can I sort the list by this property?
Marcoscdoni
  • 955
  • 2
  • 11
  • 31
11
votes
1 answer

Why do TObject.AfterConstruction and BeforeConstruction have public visibility?

Today, one very simple question came to my mind when I had to override TObject's BeforeConstruction method: Why do TObject methods AfterConstruction and BeforeConstruction have public visibility? I expected them to be protected. What is the reason…
René Hoffmann
  • 2,766
  • 2
  • 20
  • 43
10
votes
2 answers

Delphi TRegEx backreference broken?

I have a problem using TRegEx.replace: var Value, Pattern, Replace: string; begin Value := 'my_replace_string(4)=my_replace_string(5)'; Pattern := 'my_replace_string\((\d+)\)'; Replace := 'new_value(\1)'; Value := TRegEx.Replace(Value,…
Imanuel
  • 3,596
  • 4
  • 24
  • 46
9
votes
1 answer

TRect.Intersect and TRect.IntersectsWith Inconsistencies

I am hoping that I am confused in some way. I am getting some inconsistent behavior with TRect.Intersect and TRect.IntersectsWith. Here is some code that demonstrates the problem. program RectCheck; {$APPTYPE CONSOLE} {$R *.res} uses …
Graymatter
  • 6,529
  • 2
  • 30
  • 50
9
votes
2 answers

How to get the Forms background color with VCL.Styles

Some components paint their color with the Color property setting even when vcl,styles are used. So when using a Metro dark style (nearly black) and a components color is set to clWindow the components color does not match the style. Is there a way…
Bill
  • 2,993
  • 5
  • 37
  • 71
1
2 3
36 37