Questions tagged [delphi-10.2-tokyo]

Delphi 10.2 Tokyo is a specific version of Delphi released in March 2017.

Delphi 10.2 Tokyo supports development of applications covering 32-bit and 64-bit, 32-bit, server 64-bit, 32-bit and 64-bit, and 32-bit. Windows applications may be built using either the framework or the (FMX) framework, whereas the Mac and mobile platforms are built under the Firemonkey framework only.

Always use the tag alongside this tag.

References

540 questions
6
votes
1 answer

Delphi/Indy 10 - Sending a text or HTML email with attachments adds an attachment for the text (body) itself

For years, we've been using Indy 10 to send emails (text, not HTML) with one or more PDF attached to it and we never had any problem. Recently (maybe since Tokyo release 3 ?), our customers noticed that the text part of the email (body) is now an…
Phanault
  • 61
  • 3
6
votes
1 answer

How to add design time icon for FireMonkey component?

I have read this article by Paweł Głowacki and I have been able to display an icon for my component. The result is the following: I can see the image in the Tool Palette and in the structure view. By the way in the designer I see the default…
Alberto Miola
  • 4,066
  • 8
  • 31
  • 45
6
votes
1 answer

Custom drawing of TCustomListbox items

I'm rewriting a VCL component showing a customized TCustomListbox to Firemonkey in Delphi 10.2. The customization used an overridden DrawItem, basically adding some indentation and setting the text color depending on the item text and…
maaartinus
  • 40,991
  • 25
  • 130
  • 292
6
votes
0 answers

Delphi FMX - Virtual Keyboard in Android covers control (invalid keyboard height)

I have created a simple FMX form (in Delphi Tokyo 10.2.1) with 3 controls on it: TLayout (LayoutKbd) - aligned to the bottom of the screen. Height 1. TRectangle - aligned to bottom (above the TLayout). Height 5. TMemo - aligned to client. In the…
Rohit
  • 839
  • 1
  • 9
  • 19
6
votes
1 answer

Course of action when Delphi detects recoverable files?

My Delphi Tokyo 10.2.1 IDE just crashed. On restart I get the prompt: RAD Studio has recovered the following files. Save the ones you wish to keep. A file compare shows that at that moment the file in __recovery is indeed the latest version, but…
Jan Doggen
  • 8,154
  • 13
  • 56
  • 117
6
votes
1 answer

Why is there two sequential move to EAX under optimization build?

I looked at the ASM code of a release build with all optimizations turned on, and here is one of the inlined function I came across: 0061F854 mov eax,[$00630bec] 0061F859 mov eax,[$00630e3c] 0061F85E mov edx,$00000001 0061F863 mov…
Eric Fortier
  • 710
  • 1
  • 7
  • 15
5
votes
1 answer

Delphi 10.2 - How to remove the Upcoming Events panel from the Welcom Page?

Is there a way to customize the Welcom Page? In particular I'd like to hide the Upcoming Events panel. Here are a fiew questions about hiding the Welcome Page altogether, and I'd prefer to just remove the Upcoming Events panel if it's possible.
Zurab-D
  • 1,027
  • 2
  • 13
  • 30
5
votes
1 answer

Why are source file creation timestamps updated upon saving?

When you save a form or a unit, the form or unit's creation date is updated to the time of modification. The date modified changes, as expected, but the date created also changes. Why is the modification time not updated exclusively?
FJSpillane
  • 51
  • 1
5
votes
2 answers

Why I can't pass 'Child' class instance when switching parameter type from 'const' to 'var' in 'overloaded' method

MCVE: The following code does not compile with error when switching the parameter type from const to var or out in the overloaded method Train of the class TAnimalTrainer but it compiles if non is specified. [dcc32 Error] Project14.dpr(41): E2250…
Nasreddine Galfout
  • 2,288
  • 2
  • 12
  • 32
5
votes
1 answer

Can not assign char array to string in Delphi 10.2

I have the following variable declarations: arrChar_1: array[0..2] of Char; arrChar_2: array[0..2] of Char; str: string; Then I made the assignment: str := arrChar_1 + arrChar_2; This assignment works normally on Delphi 6. But error occurs when I…
5
votes
2 answers

How do I get the version number of the current project using ToolsAPI in Delphi 10.2

In Delphi 2007 I can easily get the version information of the current project using the following ToolsAPI calls: procedure Test; var ProjectOptions: IOTAProjectOptions; Project: IOTAProject; Major: Variant; Minor: Variant; Release:…
dummzeuch
  • 10,406
  • 2
  • 47
  • 146
5
votes
2 answers

How do I setup an ODBC connection to Oracle using FireDAC?

I can succesfully connect to Oracle through the native drivers, but cannot get an ODBC connection to work. The Oracle 11g client software is installed on my Windows 7 64 bit machine, as well as the 32-bit ODBC drivers downloaded from Instant Client…
Jan Doggen
  • 8,154
  • 13
  • 56
  • 117
5
votes
2 answers

Delphi Android app API level 26?

I got my app into Google Play's app store but I also got this warning: Your app currently targets API level 14 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance. From August…
Mike at Bookup
  • 998
  • 10
  • 20
5
votes
1 answer

Dynamically making indy use TLSv1.2

GitHub has stopped supporting TLS v1.0 and v1.1 (https://githubengineering.com/crypto-deprecation-notice/), so my code no longer wants to download from it. I have checked and it seems I need to make Indy use TLS v1.2, as stated here: Using Indy 10…
Adriaan Boshoff
  • 304
  • 4
  • 17
5
votes
0 answers

(delphi) how to add property to child controls?

In the Delphi IDE, some components in Delphi have the ability to "add" properties to the child controls they contain in the property editor. How can I achieve the same thing with my own TCustomPanel descendant? Some more details: What I want to…
Stephane
  • 2,721
  • 3
  • 24
  • 39
1
2
3
35 36