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

558 questions
7
votes
3 answers

Delphi 10.2.3 hangs when starting (with debugging) a 32 bit application

Update: as noted by some, this is a problem brought about by NOD32. An issue item for this in their system is: https://forum.eset.com/topic/16237-probleme-debug-delphi-with-eset-11249/ Delphi 10.2.1 and 10.2.3 hang when starting (with debugging)…
X-Ray
  • 2,816
  • 1
  • 37
  • 66
7
votes
1 answer

Strange behaviour of TypeInfo by anonymous methods

For a piece of code that needs the type "family" of a generic type, I try to use the TypeInfo to retrieve the required information. class function GetTypeKind:TTypeKind; For most types I can figure this out. But the anonymous method type behaves…
Toon Krijthe
  • 52,876
  • 38
  • 145
  • 202
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,643
  • 8
  • 35
  • 49
6
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,975
  • 4
  • 51
  • 158
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
  • 44,714
  • 32
  • 161
  • 320
6
votes
1 answer

How can we connect with a website? Getting SSL error 1409442E

I am using Delphi 10.2 Tokyo, trying to download some information from a web server. I pass the command URL https://poloniex.com/public?command=returnCurrencies through this function using Indy 10.6.2.5366 (the command works if I paste it in a…
MarkAurelius
  • 1,203
  • 1
  • 14
  • 27
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
  • 909
  • 1
  • 9
  • 20
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
  • 760
  • 1
  • 7
  • 16
5
votes
1 answer

How to auto include files when Delphi VCL design time package is put onto the form

I built a wrapper around the TWebBrowser in Delphi. The wrapper aims at implementing multiple web browsers (edge chromium, chrome etc) into a single wrapper that auto detects which browser to use. After I completed the class I turned said class into…
Matt
  • 151
  • 1
  • 5
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
  • 1,411
  • 3
  • 17
  • 39
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,550
  • 2
  • 18
  • 36
5
votes
1 answer

Handling very large text files using TStreamReader and TStringList

I am using Embarcadero's Rad Studio Delphi (10.2.3) and have encountered a memory issue while reading in very large text files (7 million lines+, every line is different, lines can be 1 to ~200 characters in length, etc.). I am fairly new at Delphi…
Ric Crooks
  • 91
  • 1
  • 9
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
1 answer

How to access nested style control

I have custom styled FireMonkey control. Its style contains several levels of nested controls. I need to access those controls and change some style properties at run-time. To do that I am using FindStyleResource method. I have no problem in…
Dalija Prasnikar
  • 27,212
  • 44
  • 82
  • 159
1
2
3
37 38