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

In which uses can I find SharedActivityContext?

SharedActivityContext exist in uses FMX.Helpers.Android for XE6 But for XE7 I can't find SharedActivityContext in uses FMX.Helpers.Android. Is there another methode of is it moved into another uses?
Ravaut123
  • 2,764
  • 31
  • 46
6
votes
2 answers

Allow user to copy text from a password field

In my application there is a TEdit with PasswordChar = '*'. When the user presses Ctrl + C a hint appears. Translated: Not Allowed You cannot copy text from a password field. And obviously, the Copy item in the drop-down menu is disabled Is…
Fabrizio
  • 7,603
  • 6
  • 44
  • 104
6
votes
2 answers

changing the initialization order of the unit in Delphi

I'm using Delphi XE7 for developing windows 32 bit application. My application contains many units, which has an initialization section. I need to initialize one particular initialization section at first. Is it possible to set the priority? I…
test12345
  • 367
  • 1
  • 21
6
votes
2 answers

How to set default value to record in delphi

I am using RAD XE7. In my Delphi application I want to set default values for fields of Records. I tried following code, but it does not compile, I know it is wrong. I there any another way? TDtcData = record TableFormat : TExtTableFormat =…
Ankush
  • 89
  • 1
  • 1
  • 8
6
votes
3 answers

How to create a form before the MainForm?

I want to create a splash screen (before the main form) that will be shown for x seconds but I don't want to delay the creation of the main form with x seconds. So, I create the splash screen form, create the main form then after x seconds I close…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
6
votes
1 answer

Why does TEdit.OnChange trigger when Ctrl+A is pressed?

I am running a Delphi XE7 VCL app on Windows 7. I have observed that the TEdit.OnChange event triggers when Ctrl+A (select all) is pressed. Why is that? I need to reliably trigger the OnChange event only when the text in the TEdit really changes.…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
6
votes
2 answers

Insert colored line at the top of TRichEdit

I'm using a TRichEdit in order to show the last operations that have been done in my application. The first line of my TRichEdit should be the last operation. If the operation failed, I would like to put this line in red. My problem is that I am…
Aleph0
  • 470
  • 2
  • 10
  • 27
6
votes
1 answer

Usage for LiveBinding

I don't understand LiveBinding's purpose. I would like to know which are the cases in which LiveBinding is most valuable. Embarcadero's manual describes it: "LiveBindings is a data-binding feature supported by both the VCL and FireMonkey frameworks…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
6
votes
3 answers

Which is the best way to load a string (HTML code) in TWebBrowser?

I have a string var 'HTMLCode' that contains HTML code. I want to load this code into the browser. This is Embarcadero's code: procedure THTMLEdit.EditText(CONST HTMLCode: string); {VAR Doc: IHTMLDocument2; TempFile: string; } begin TempFile…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
6
votes
2 answers

How can I use a hlp file for context sensitive help in my application?

I have a .hlp file that goes with the application. Because the functionality has not changed since I last wrote the app the hlp (written in 2003) is still valid. However when I compile the app in Delphi XE7 I cannot get the application to recognose…
Johan
  • 74,508
  • 24
  • 191
  • 319
6
votes
1 answer

Converting Delphi Objects to JSON

I am using Delphi XE7 and I am having trouble converting objects into JSON. I can get some object to give back what I think is proper JSON, eg…
John
  • 507
  • 3
  • 13
6
votes
4 answers

How to remove all duplicates from a list?

Consider this test app: function RemoveDuplicates(const Input: IEnumerable): IEnumerable; begin // How to implement this function? end; var Enumerable: IEnumerable; UniqueEnumerable: IEnumerable; begin …
Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
6
votes
2 answers

How to correctly respond to focus messages in a custom control?

I need to create my own panel which will be derived from TCustomPanel - Here I will be doing my own custom painting on the panel such as drawing a header at the top. One of the requirements I need is that I need to be able to draw two different…
Craig
  • 1,874
  • 13
  • 41
6
votes
1 answer

What does Opt.out mean?

Looking at the call stack I just noticed this: Notice the Opt.out at the top. Just curious, what does Opt.out mean? Here's the snippet that I'm stepping through: function BinaryEquals(Left, Right: pointer; Size: integer): boolean; .... {$IFDEF…
Johan
  • 74,508
  • 24
  • 191
  • 319
6
votes
1 answer

Why does Delphi XE7 change PNG image on every FMX form save?

I have a form with many custom firemonkey components where each contain multiple bitmaps (loaded from PNG image files). Every time the form is saved, the binary data of the PNG images change in the FMX file! This messes up my version control log…
Hans
  • 2,220
  • 13
  • 33