Questions tagged [delphi-xe7]

Delphi XE7 is a specific version of Delphi released in September 2014.

Delphi XE7 is a specific version of Delphi released in September 2014. It supports development of applications covering Win32, Win64, OSX, iOS, and Android. Windows applications (32bit and 64bit) may be built using either the VCL framework or the Firemonkey (FMX) framework, whereas the rest of the supported platforms are built under the Firemonkey framework.

Always use the tag alongside this tag.

909 questions
5
votes
1 answer

How to get sub folder names of a directory that also contain dots in the name?

I am trying to populate a stringlist with all the folder names inside a directory. Below is an extract of how I was able to do this: var SL: TStringList; SearchAttr: LongInt; SR: TSearchRec; begin SL := TStringList.Create; try …
Craig
  • 1,874
  • 13
  • 41
5
votes
3 answers

Resize Form even if it is borderless - Remove bevel edge

Using the following code to make a borderless form resizable works great: type TForm1 = class(TForm) protected procedure CreateParams(var Params: TCreateParams); override; end; procedure TForm1.CreateParams(var Params: TCreateParams); begin …
Marcoscdoni
  • 955
  • 2
  • 11
  • 31
5
votes
1 answer

CharInSet is much slower than IN, should I fix W1050 warning hint?

I use IN a lot in my project and I have lots of these warnings: [DCC Warning] Unit1.pas(40): W1050 WideChar reduced to byte char in set expressions. Consider using CharInSet function in SysUtils unit. I made a quick test and using CharInSet…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
5
votes
2 answers

How to hide expand/collapse button in Virtual Treeview?

I use VirtualStringTree (VST) to display data that is grouped, header-details. I need to have an option to allow user to expand, collapse headers to see details and in some cases I need to show data as static view, where they can't expand, collapse,…
Mike Torrettinni
  • 1,816
  • 2
  • 17
  • 47
5
votes
2 answers

Is there a keyboard shortcut to switch between object inspector and form designer?

You can go from the form designer to the object inspector to the source editor in a circle using the F11 key: Code -> Inspector -> Design -> Inspector -> Code -> Inspector -> ... But most of the time when designing a form I only want: Inspector <->…
Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
5
votes
3 answers

Why Delphi does not output the DCU files in the correct folder?

I have a project (C:\Test\Test.dpr) that uses a file (External.pas) belonging to library (MyLib.DPK). All files in the library are accessible via 'Search' path but I also included External.pas directly in my DPR file: program Test; uses External…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
5
votes
2 answers

What, if any, are the alignment requirements for the atomic intrinsic functions?

Atomic operations for the Delphi mobile targets are built on top of the AtomicXXX family of intrinsic functions. The documentation says: Because the Delphi mobile compilers do not support a built-in assembler, the System unit provides four atomic…
Sean B. Durkin
  • 12,659
  • 1
  • 36
  • 65
5
votes
2 answers

Writing a custom property inspector - How to handle inplace editor focus when validating values?

Overview I am trying to write my own simple property inspector but I am facing a difficult and rather confusing problem. First though let me say that my component is not meant to work with or handle component properties, instead it will allow adding…
Craig
  • 1,874
  • 13
  • 41
5
votes
3 answers

Delphi XE8. FMX. Why is different release order of CLASS VAR on Android platform?

Tested with Delphi XE7 Update 1 and Delphi XE8 Create order on Windows OS (7 SP1 x64), MACOSX (10.10.3) and Android (5.0.2): "class constructor TGlobalClass.Create;" -> "constructor TfmMain.Create;" -> "procedure TfmMain.FormCreate(Sender:…
Zam
  • 2,880
  • 1
  • 18
  • 33
5
votes
1 answer

Using the Printers Unit in Delphi

I want to access the Printers Unit in Delphi XE7. I am not able to do this, because „the Printers Unit cannot be resolved“ as shown on this image: As a beginner in Delphi, I don’t know what to do. Don’t judge me. Is there a way of adding a…
Luca Tescari
  • 162
  • 1
  • 12
5
votes
1 answer

Deploying Android App (developed in Delphi FireMonkey) to Google Play Store

I am attempting to deploy my first app to the Google Play Store. Each time I upload the APK file, I get the following message: "Upload failed You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be…
JakeSays
  • 2,048
  • 8
  • 29
  • 43
5
votes
1 answer

CreateOleObject in a 64-bit Delphi program?

In a Delphi XE7 64-bit VCL program, the unit Vcl.OleAutocannot be found: [dcc64 Fatal Error] Unit1.pas(33): F1026 File not found: 'Vcl.OleAuto.dcu' While it works without problems in a 32-bit program: uses Vcl.OleAuto; ... FSWbemLocator :=…
user1580348
  • 5,721
  • 4
  • 43
  • 105
5
votes
1 answer

Reference to class procedure

I'm have such static class procedure in my record: TRec = record class procedure Proc; stdcall; static; end; Now I need array of such class procedures in my record: TRec2 = record Procs: array of TClassProcStdcallStatic; end; This is possible…
Alex Egorov
  • 907
  • 7
  • 26
5
votes
1 answer

How to find index of a method in an interface?

How can I find index of procedure/function which is defined in Interface? Can it be done with RTTI?
John Lewis
  • 337
  • 3
  • 12
5
votes
3 answers

IDFTP DirExists and MakeDir

I am using Indy IDFTP to make a directory. I need to find a reliable way to determine if a directory exists and if it does not exist, to call MakeDir. I have tried the following code but an exception did not occur when List was called so MakeDir…
Bill
  • 2,993
  • 5
  • 37
  • 71