559 questions
1
vote
0
answers
123
views
How to export TGS frames to PNG using Skia4Delphi?
I'm trying to use Skia4Delphi in a VCL Delphi project to convert a .tgs (Telegram animated sticker) file into a sequence of PNG frames.
I know that TSkAnimatedImage can directly load .tgs files, and I'...
1
vote
2
answers
247
views
How to hide items in ListView in Delphi?
I'm working on a VCL application in Delphi 10.3.3 and need to temporarily hide some rows (TListItem) in a TListView. Instead of deleting and re-adding the items, I want to make them invisible while ...
1
vote
0
answers
95
views
Issue with memory pointers in class mapping for simplified SELECT queries
I'm working on improving the SELECT functionality in my application by mapping a class and storing relevant information into a record. Here is an example of my class properties:
[Field('ID'), PK, ...
2
votes
0
answers
88
views
How to avoid deprecation warnings in Data.DB module
In Delphi 10.3 Rio, when I add any modules inherited from TDataSet into my project , it causes a bunch of warnings during compilation, like:
[dcc32 Warning] Data.DB.pas(2508): W1000 Symbol '...
-2
votes
1
answer
157
views
Delphi RTTI Property on memory [closed]
After iterating my list of properties in the class using RTTI, I save it in a variable FMap: TDictionary<TRttiProperty, TMappedField>, and I also save a variable FPropertyPK: TRttiProperty - I ...
0
votes
0
answers
128
views
how to convert a python array to a delphi array and access this array in Keras 4 Delphi
In Keras4Delphi I succesfully stored the output of a neural network into a variable. Now I want to simply read it from a Delphi array (in Delphi 10.3 Rio), not in string format but in a Double array ...
2
votes
0
answers
93
views
Delphi 11.3 compiler directives for "Development" and "Application store" modes
Please tell me the Delphi 11.3 compiler directives for development modes and the application store,
if they exist.
A switch is needed for different logic.
Development is carried out in the FireMonkey ...
1
vote
1
answer
584
views
How to fix "Cannot assign a TSkGraphic to a TBitmap"
I use Skia4Delphi in my VCL application. I have an Image1 (TImage) component. It supports loading webp image files thanks to Skia4Delphi. However I get "Cannot assign a TSkGraphic to a TBitmap&...
0
votes
1
answer
665
views
Delphi TNetEncoding.Base64 works but data are cutted
I have this code, in which I want to convert a file to Base64 format using TNetEncoding.Base64. It works, but it cuts my data to a few lines. My question is why? Delphi's String can contains approx ...
1
vote
0
answers
41
views
Numbering of the entries in the STRINGTABLE of an .exe
In Delphi, the entries in the STRINGTABLE resource in the .exe file are created automatically. The numbering (resource-id) of the entries is managed by Delphi itself, and this cannot be changed.
Is ...
0
votes
0
answers
139
views
I cannot replace ResourceStrings when my app uses GnuGetText
I'm replacing some Delphi default ResourceStrings to localize those error messages. It works fine on a new blank application, this code raises an exception correctly translated:
implementation
uses ...
2
votes
2
answers
122
views
Constant array from set
I have the following code for creating superscript versions of the digits '0' to '9' and the signs '+' and '-'
const
Digits = ['0' .. '9'];
Signs = ['+', '-'];
DigitsAndSigns = Digits + Signs;
...
2
votes
1
answer
279
views
When is it safe to Dispose a nil pointer?
In the following example:
program DisposeProblem;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils;
type
Person = record
name: string;
age: Integer;
end;
var
p: ^Person;
begin
...
0
votes
1
answer
113
views
What's equivalent of C# NetworkInterface in Delphi? [duplicate]
What's equivalent of NetworkInterface in Delphi, where i can build a program like
Network-Bandwidth-Meter
?
There some way to use this class on Delphi?
0
votes
0
answers
246
views
How to write a txt file to an explicit FTP TLS with Delphi 10.3 on Android?
I have this code that works perfectly on Windows, but when running the application on Android, the connection to FTP is successful, but when writing the file, the app stays paused without doing ...
0
votes
0
answers
102
views
TServerClientThread: How handle text and image in only 1 TServerSocket?
I found these 2 working code example to receive data from android:
TWinSocketStream.Read(): Read error 6, The handle is invalid
Error to receive file on socket inside a thread
where seems that is ...
0
votes
0
answers
67
views
Delphi overloaded version of BytesToString [duplicate]
There is no overloaded version of "bytestostring" that can be called with these arguments
Error documentation
What am I doing wrong?
function BytesToString(ABytes: TByteArray): string; ...
1
vote
1
answer
105
views
Is there a way to find where an object of a certain type is being destroyed?
When working on a big codebase, it's hard to keep track of where an object is being destroyed, especially if you didn't write the code yourself. Is there a way to search through a project and find all ...
0
votes
1
answer
768
views
Trouble with poDoNotEncode option in TRESTRequest.AddParameter() method
I'm having trouble using the poDoNotEncode option in the TRESTRequest.AddParameter() method. I need to be able to post a request with a j_token header with a value that includes the '/' characters or ...
0
votes
1
answer
319
views
Why I can't display some site with TWebBrowser
I use Delphi Rio (Windows Desktop App) and need to display in a TWebBrowser some webpages.
I ran into a problem with this WooCommerce site, https://merletdance.com/eshop.
When I ask for this one, I ...
0
votes
0
answers
183
views
How access webcam that's running in a separated thread?
I have this class to handle my webcam and want know how can stop the webcam started in a separated thread. Camera.Destroy not is working and the camera keep on.
type
TForm1 = class(TForm)
...
-1
votes
1
answer
647
views
How capture continuos frames from camera?
I'm using the following code to capture the camera:
unit Webcam;
interface
uses
Windows, Messages, SysUtils, Graphics, ExtCtrls, Classes, VFW {https://drkb.ru/multimedia/audio/extract_track/...
1
vote
1
answer
408
views
How to highlight mouse pointer position using Delphi [closed]
I want to create a simple mouse pointer highlighter. A circle centered at the mouse pointer. It must be semi-transparent and visible everywhere (in and out of my application).
Any idea is appreciated.
...
0
votes
0
answers
334
views
How to enable/disable Block Completion without using Delphi Options
I'm using Delphi 10.3.3. "Block Completion" doesn't work properly for some of my projects, because of an IDE bug fixed in later Delphi versions.
Anyway, I have to use Delphi 10.3.3 and ...
0
votes
1
answer
738
views
Getting custom sized system icons
I want to update my applications to be fully scalable, so every image in the app must be resized when the user chooses another scale. The icons for the user interface buttons I keep them as multi-size ...