Questions tagged [delphi-10.4-sydney]
Delphi 10.4 Sydney is a specific version of Delphi released in May 2020.
318
questions
0
votes
1
answer
39
views
Embarcader : which version of Turbopower Async Pro is compatible for XE10
I need to install Turbopower Async Pro. So my question is which version of Turbopower Async Pro is compatible for XE10.4 (RAD Studio Sydney).
I have AsyncPro Release 5.0.0. Will it work with XE10.4 (...
0
votes
1
answer
105
views
Delphi 10.4 compiler error: "Types of actual and formal var parameters must be identical"
I'm new to programming. I'm using Delphi 10.4 Community Edition. I'm trying to run the BassPlayer demo project, but I get an error when trying to compile and run it. It happens in a file named wa_ipc....
0
votes
1
answer
108
views
Delphi - socket error 10038 at startup. How solve it?
I get socket error 10038 at startup.
How solve this error?
0
votes
1
answer
48
views
Generating OVH SHA1 signature
I'm trying to utilize the OVH API in Delphi using the REST client. For this OVH requires me to generate a signature, but their documentation does not provide much info on this other than:
"$1$&...
0
votes
0
answers
51
views
Socket ReceiveText is always empty under Windows 11?
I have a thread where I am opening a socket, and executing it, waiting to receive strings from the other side.
It is working fine compiled on Delphi 7 on all Windows version, yet compiled with Delphi ...
0
votes
1
answer
87
views
Why does a published event on my form not show in the editor
I have added a published event to my main form, expeecting it would show up in the editor, but it doesn't.
Am I doing something wrong, or is this just not the case?
THIFISongEndEvent = procedure(...
1
vote
1
answer
178
views
How can i run a loop procedure in background?
I created a procedure to update an SQLite DB. The procedure runs in a loop until the list is finished. The problem is, when I run the procedure, the program stops responding
How can I run this ...
0
votes
0
answers
93
views
How to change ListView TTextObjectAppearance Font in Mobile, Delphi Sydney 10.4 FMX?
I want to change the default Font in Listview TTextObjectAppearance, when I run it on windows it works fine but when I run it mobile it does not show the Font I select.
.fmx
object Form1: TForm1
...
1
vote
1
answer
107
views
Select all child controls at once?
In the Delphi IDE, is it possible to select e.g. all controls placed on a TPanel?
I want to shift all these down so that I can add a new control at the top of the panel.
Currently I Shift-Click all ...
0
votes
1
answer
99
views
How to Show images in ListView depends on the date
I'm Using Delphi Sydney 10.4 FMX, I have a ListView connected to a Database with liveBinding, ImageList that has 3 images.
In the ListView, I Have 3 Fields: Image, Expiry, Domain.
The Expiry and ...
2
votes
2
answers
151
views
How to parse multiples lines from StringList
I want to copy specific lines from a StringList,
I want to copy all lines that have 'Domain Status:' into memo.lines.text
I used the code below, but the problem is it copies only the first line, I ...
0
votes
1
answer
57
views
Failure to Initialize SUSI API dll
I'm attempting to use the SUSI api dll that was provided to me. The first step according to their documentation is to call SusiLibInitialize. When calling it I seem to only get the failure result from ...
0
votes
1
answer
223
views
Handle custom Error message on Bad request
I'm developing an Android app (Client). The server works with C#. When I make some request specifically some Posts, I'm getting an error message on bad request such as 'HTTP/1.1 404 Not Found' which ...
0
votes
0
answers
166
views
Exited with code 9009 when building for Android
When I try to build my first Android application (even on a blank multi-device project) it returns an exited with code 9009 error.
[Exec Error] The command "PATH \bin;C:\Program Files
(x86)\...
1
vote
0
answers
67
views
Port windows API's from advapi32.dll to Linux in delphi
I am having legacy code written in delphi over windows Platform which is now being migrated to Linux using delphi itself.
There the issue is in porting few functionalities from advapi32.dll to Linux ...
0
votes
0
answers
93
views
Delphi BatchMoveTextReader with Umlauts
I have the following problem: I have this .CSV file, let's say we have headers like this:
id;demo;ä;ö;ü
1;text;umlauts1;umlauts2;umlauts3
.
.
.
When I use FormatGuessing to load this file at design ...
0
votes
1
answer
138
views
How to show a universal data label for any type of chart series?
I'm using the TeeChart (TChart) which is distributed with Delphi 10.4 to display data. Different types of data are displayed in different types of chart series. More specifically, I support 4 ...
0
votes
1
answer
65
views
How to safely move ancestor form without breaking many inherited references?
I have a project with many forms. Most of those forms are inherited from one common base form. As new inherited forms are added, it became necessary to start arranging those forms inside ...
2
votes
2
answers
115
views
Is there a StringHelper for TCaptions?
Is there a unit I can add to provide a StringHelper for TCaption?
Using Edit1.Text.Trim, Edit1.Text.ToInteger, etc is much neater than Trim(Edit1.Text), StrToInt(Edit1.Text), etc.
0
votes
0
answers
71
views
Delphi IDE Structure View - default to collapsed
The Delphi IDE: sometime after Delphi 7:
The Structure Viewer defaults to expanding all the nodes:
Which makes it inherently non-useful for viewing the structure.
Does anyone know of a way to ...
1
vote
2
answers
131
views
Delphi 10.4 Packages: "Add getit. getit contains implicit unit(s) %s."
I'm trying to install packages in Delphi 10.4.
When I try to build one of the packages, i get the familiar warning dialog that Delphi needs to do something:
Normally we don't care about this dialog.
...
1
vote
1
answer
117
views
TMapView not showing the current location at the beginning
I'm trying to create an application where the user clicks on a button and a TMapView appears. I just want that the current location of the user to appear to the map at the beginning and not the zero ...
0
votes
1
answer
67
views
Firemonkey Form always restores to wsNormal
I don't know if this could be a BUG or just some configuration.
By setting the form to WndowState = wsMaximized and pressing Windows+D (Show Desktop), when the form is restored from the taskbar the ...
0
votes
2
answers
136
views
How to extract domain suffix?
How can I extract domain suffix without entering http:// or https://?
For example, if I enter stackoverflow.com, I want to get the result of com.
I have this function, but I must enter http:// to get ...
-2
votes
1
answer
134
views
Inherited frames - missing properties
I have a project which consists of numerous different frames. Some of those frames are inherited from each other. Here's the basic setup:
TBaseFrame
TFrame1
TFrame1A
TFrame1B
TFrame2
TFrame2A
......
1
vote
2
answers
147
views
Are System.Generics.Collections TList<record> subject to memory fragmentation in Delphi?
In Delphi 10.4, I have a record that I use like this in a TList (System.Generics.Collections):
uses
System.Generics.Collections;
type
TSomething = record
Name: String;
Foo: ...
0
votes
0
answers
117
views
How can I create a fake integer property?
I'm trying to create a fake or pseudo property for child controls, and have tried to follow this article: https://edn.embarcadero.com/article/33448
However, that was written some years ago, so I don't ...
3
votes
1
answer
151
views
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 ...
0
votes
1
answer
168
views
How to provide developer and signing information for Delphi 10.4 Sydney Android app? There are no relevant project options. Option Set must be used?
I am using (trying to use) Delphi 10.4 Sydney for Android app development.
I have heard and I see that Android app shold contain the information about developer. E.g. my Android devices gives the ...
2
votes
1
answer
239
views
What's the fastest way to list all the exe files in a huge directory in Delphi?
At the moment I'm doing something like this:
var
Files: TArray<String>;
if IncludeSubDirs then
Files := TDirectory.GetFiles(Path, '*.exe', TSearchOption.soAllDirectories)
else
Files ...
0
votes
0
answers
66
views
TDBGrid to show buttons on all rows for the columns with ButtonStyle cbsEllips
I want a grid to have buttons on certain columns, so I set their ButtonStyle property to cbsEllipsis. But this only shows their button when you enter that cell, is there a way to make those buttons ...
0
votes
3
answers
148
views
How to adjust visual components that don't scale correctly in a high DPI aware Windows application made in Delphi?
In a previous question I managed to adjust the "padding" between components using Monitor.PixelsPerInch.
Now I have a different problem: I have a "..." (browse) TButton at the left ...
1
vote
1
answer
209
views
How to prevent mouse from turning on monitor?
The following code is able to lock mouse events successfully. This was my attempt to prevent the mouse from turning on the monitor when it is off, but the monitor always turns on when executing any ...
0
votes
1
answer
148
views
Is it possible to filter a TIBQuery?
Using Delphi 10.4.1
I'm not having success filtering a TIBQuery, and I'm wondering where I'm going wrong. Hopefully you can point me in the right direction.
Using Interbase 2020, I'm creating these ...
0
votes
0
answers
98
views
EAccessViolation directly after service install
On/in one specific Win10 VMWare image running Windows Server 2019 Standard, my service gives an
Exception EAccessViolation in module TTSvcScheduler at 00005DAF
Access violation at address 00405DAF in ...
2
votes
1
answer
362
views
Delphi 10.4.2 FMX How to make a head up notification?
When creating notification using TNotificationCenter and TNotification, it only appear in the notification drawer, it won't have pop up mini floating box like WhatsApp msg notification for examples. ...
0
votes
1
answer
65
views
Delphi 10.4.2 FMX How to put address in String into TCivicAddress?
What is the way to initialize TCivicAddress and put address info into it? I even tried to set everything separately, it still encounter errors.
var cAddr: TCivicAddress;
cAddr.FeatureName := '10';
...
0
votes
0
answers
125
views
Reading and validating REG_BINARY where REG_QWORD is expected
According to Block untrusted fonts in an enterprise the MitigationOptions key should be a REG_QWORD filled with (hex) values 1000000000000, 2000000000000 or 3000000000000.
However, the ...
0
votes
0
answers
24
views
How change UserAgent in EdgeBrowser? [duplicate]
How change UserAgent in Edge Browser in Delphi 10.4?
0
votes
1
answer
286
views
Delphi 10.4.2 FMX: How to write the case where the user press return button on android phone instead of choice in message dialog box?
MessageDlg('Please turn on your gps', TMsgDlgType.mtConfirmation,
[
TMsgDlgBtn.mbYes,
TMsgDlgBtn.mbNo,
TMsgDlgBtn.mbClose
], 0,
procedure(const AResult: TModalResult)
...
0
votes
0
answers
44
views
Saving bitmaps to an imagelist and unable to retrieve that image to display in a Timage [duplicate]
procedure TForm1.TwainTwainAcquire(Sender: TObject; const Index: Integer;
Image: TBitmap; var Cancel: Boolean);
var
btBitmap : TBitmap;
begin
ImgHolder.Picture.Assign(Image);
btBitmap := ...
0
votes
0
answers
81
views
Is there a way to use the Active X controllers TimgEdit, TimgOCR, and Timgscan with Delphi 10.4?
Trying to upgrade an application from Delphi 7 to Delphi 10 and this is the only roadblock. I have tried importing components but they don't show under the active x palette. Is there an alternative or ...
2
votes
1
answer
124
views
How change shortcut path without update your icon?
I have the following code that changes path of one shortcut. Happens that when path is changed, the icon also is updated to icon of new application.
How change path wihout update icon of shortcut?
...
0
votes
2
answers
97
views
FMX: Modal forms not staying on top (Windows)
There are several cases where forms or dialogs that should be modal are not staying on top. I'm building for Windows using 10.4. Here's a simple example involving two forms and a TSaveDialog.
To ...
3
votes
1
answer
162
views
Is AtomicCmpExchange() broken?
If you make a new multi-device application project, set Project > Option > Compiling > Optimization : True, and then copy the code below to unit1.pas:
unit Unit1;
interface
uses
System....
1
vote
1
answer
131
views
Why does the service OnCreate get called multiple times?
The code below, via...
procedure TTimetellServiceServerMonitor.ServiceDebugLog(const AMsg: String);
const cDebugLogFile = 'd:\temp\service.log';
... outputs this debug info showing that we go through ...
2
votes
0
answers
201
views
Showing on windows taskbar thumbnail/preview of a modal form
I'm working on modernizing an old Delphi 7 app for a customer. I already successfully migrated it to Delphi Sydney but the code I'm working with has a ground problem which is all the forms (nearly 200)...
7
votes
1
answer
318
views
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
...
1
vote
0
answers
65
views
Firemonkey ignores the Font.Size indicated when creating labels at runtime [duplicate]
I'm trying Firemonkey for the first time, and I'm finding problems creating labels at runtime.
I'm drawing rectangles at runtime with description labels inside, but those labels are always drawn at ...
0
votes
1
answer
188
views
Autorunning Delphi Programm runs in C:\windows\system32
I've written an application that should be run while starting windows.
I used this code to use a checkbox to decide whether it runs while startup or not:
// d('randomString'); -> this is a function ...