Questions tagged [delphi-10.4-sydney]

Delphi 10.4 Sydney is a specific version of Delphi released in May 2020.

363 questions
12
votes
1 answer

Android's TMemo (Firemonkey) Issue and strange behaviour

Using Tmemo in my application, to allow the user to enter notes, I found that when editing the text or using the backspace key, very strange things happen. For example, it's not possible to move the cursor to the end of the text, or deleting some…
Gianluca Colombo
  • 717
  • 17
  • 38
7
votes
1 answer

Delphi - socket error 10038 at startup. How solve it?

I get socket error 10038 at startup. How solve this error?
user13239154
7
votes
1 answer

Delphi record assignment bug

I've encountered some strange behaviour of delphi XE3 compiler (i compile for x86 architecture). Imagine i have class with one field - custom record with several field of simple types: TPage = class type TParagraph = record public …
loltrol
  • 103
  • 5
7
votes
2 answers

Why are some properties repeated when TRttiContext.GetType is called on a VCL Control?

Why are some properties repeated (such as Action and Align) where others are not (AlignWithMargins) when TRttiContext.GetType is called on a VCL Control? uses System.RTTI, System.Generics.Collections, …
Alister
  • 6,527
  • 4
  • 46
  • 70
6
votes
1 answer

Dynamically insert number on Delphi app's icon

I'm on Delphi 10.4. I'm looking for a way to dynamically insert a number on the app's icon on the taskbar, so the user can know about how many tasks the apps has done so far. This would be dynamically, as soon as the app does a new task, it will…
delphirules
  • 6,443
  • 17
  • 59
  • 108
6
votes
1 answer

What Unicode characters can be used in Delphi Source Code?

I've noticed that some emoji and special characters are supported as variable names in Delphi such as var ❤ : string; ⅖ : double; begin ❤ := 'My heart'; ShowMessage(❤); ⅖ := 0.4; ShowMessage(⅖.ToString); end; Does anyone know a complete…
Alister
  • 6,527
  • 4
  • 46
  • 70
5
votes
1 answer

How can I implement themes support in my own component?

I'm trying to make my own component that will be themed the same as the rest of application (the theme is set in Project > Options > Application > Appearance). The control is derived from TWinControl (in the red frame below). How can I apply the…
Pshemas
  • 146
  • 4
5
votes
2 answers

What does "Reference to" do exactly in Delphi?

While reading the documentation at Anonymous Methods in Delphi I started to wonder. I've always used something like this: type TMathFn = Function(A, B: Integer): Integer; var fn: TMathFn; Always worked for me. But this document tells me to use this…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
4
votes
1 answer

Height of TButton with Multiline caption does not fit its caption-text

In a Delphi 10.4.2 Win32 VCL Application on Windows 10, I have a TButton with WordWrap = True and Caption = 'SAVE TO INTERNET BOOKMARKS FOLDER...': As you can see from the screenshot, the height of the button does not automatically fit its Caption…
user1580348
  • 5,721
  • 4
  • 43
  • 105
4
votes
1 answer

Programmatically create a Shortcut STRING for the DELETE key?

In a Delphi 10.4.2 Win32 VCL Application in Windows 10 x64, I use this code to programmatically create a Shortcut STRING for the DELETE key on a popup menu item: mGalleryDeleteSelected.Caption := mGalleryDeleteSelected.Caption + #9 +…
user1580348
  • 5,721
  • 4
  • 43
  • 105
4
votes
1 answer

Delphi compiling to Linux ld-linux.exe: error: cannot find bplrtl270.so

After upgrading to Delphi 10.4.1 , I installed PAServer on Linux Ubunto 18.04.5 and updated SDK Local File Cache , there were no errors in these processes. However when I converted my existing applications or tried to create a new one for Linux-64 I…
JRG
  • 513
  • 9
  • 23
4
votes
2 answers

Delphi Component Custom property not to be saved on the DFM files

I have a property on a custom component that I don't want to be saved on the DFM files. I have overrided the DefineProperties method to provide no ReadData and WriteData procedures, expecting that it won't save its value, but it still…
Marc Guillot
  • 6,090
  • 1
  • 15
  • 42
4
votes
1 answer

Winapi.ShLwApi.StrFormatByteSize64 treats my app as a DLL

In Delphi 10.4, When trying to use Winapi.ShLwApi.StrFormatByteSize64 to convert an Int64 file-size value into a formatted string I get a runtime error: var ThisSize: Int64; pszBuf: PWideChar; cchBuf:…
user1580348
  • 5,721
  • 4
  • 43
  • 105
4
votes
1 answer

Cannot load sqlite libraries in Android with Delphi 10.4

With Delphi 10.4 I get an error in my Android App (same error for both 32bit and 64bit). [FireDAC][Phys][SQLite]-314. Cannot load vendor library [libsqlite.so or libdb_sql.so]. Hint: check it is in the PATH or application EXE directories, and has…
3
votes
1 answer

What's the correct way in Delphi to check if a non-Suspended created TThread with FreeOnTerminate = True is still executing?

So I created a class: TWorkerThread = class(TThread). In the TWorkerThread Constructor I set FreeOnTerminate := True. I then added a private Worker variable to my TForm. When I instantiate TWorkerThread for Worker, I always use CreateSuspended :=…
AlexV
  • 22,658
  • 18
  • 85
  • 122
1
2 3
24 25