52,553 questions
2
votes
0
answers
116
views
Delphi Open Tools API: how to get "Debug" build configuration name?
I am enumerating project's build configurations. I want to get the "Debug" build configuration. I do realize it is not something hardcoded and can be removed by user, or another ...
1
vote
1
answer
119
views
how to restore the selectedrows after sorting in dbgrid and clientdataset
My DBGrid is connected to a Datasource / ClientDataset / Provider / ADOQuery
I sort the grid with this code, which seems to work well
procedure TDataModuleBase.SortClientDataSet(AscendingFields, ...
2
votes
0
answers
111
views
Intermittent icons with black background - 2 different versions on comctl32.dll loaded
Delphi 10.4.2 32-bit app(s) I work on will intermittently load icons with black backgrounds (no transparency). It can happen several times a day, but is not reliably reproducible. Usually, I have to ...
5
votes
0
answers
115
views
TTouchKeyboard in Delphi steals focus from TChromium control after KB5060829/KB5062553 update
We ran into an issue on systems that have installed the Windows 11 updates that we released early July with our application that uses a combination of TChromium and Delphi's TTouchKeyboard.
Problem ...
0
votes
0
answers
96
views
How to print a long product receipt using a thermal printer with quick report using Delphi Tokyo 10.2?
I have a problem when printing a long product receipt using a thermal printer. I use Delphi Tokyo 10.2 and Quick Report version 6. Despite activating all features, including continuous, and taking ...
1
vote
2
answers
224
views
How to make different width and color only for a specific horizontal grid line with Steema TeeChart?
In my programs, I use the Steema TeeChart Delphi VCL library (Standard Edition without source code).
I need to highlight the horizontal zero-value grid line in my chart, i.e., display it in a ...
-3
votes
1
answer
255
views
better and faster (and secure) way to manage a LOG text file
I wrote an application (a management program) that performs numerous processes, numerous cycles in which other procedures are called, ..., and to keep track of what the program does (in order to have ...
0
votes
1
answer
175
views
How can I completely hide the mouse cursor when hovering on a component in Delphi? [closed]
I always kind of thought/assumed there would be a crNone option under the Cursor property on components.
But when browsing through the Cursor list in the object inspector, I don't see a crNone option. ...
2
votes
2
answers
134
views
How do I make the corners rounded on TRectangle in Delphi FireMonkey?
I'm making a game in Delphi with FireMonkey and I'm trying to make a button with rounded corners using a TRectangle. It is the play button in the photo below:
Is this possible? How can it be done?
I'...
-1
votes
1
answer
155
views
Unexpected behaviour of Trunc() function [duplicate]
I am experiencing an unexpected result from the Trunc() function, due to the lack of precision of floating-point numbers, when the float value stored is just below the positive integer value:
var
u1, ...
1
vote
1
answer
145
views
How to extract strings from RCDATA?
I'm using a RC file with images and strings , like this :
splash RCDATA splash.png
ilogo RCDATA ilogo.png
site RCDATA { "https://www.example.com" }
I then compile this file with BRCC32 and ...
1
vote
0
answers
104
views
source\rtl\posix\linux\StdLibTypes.inc is missing const EXIT_SUCCESS
The EXIT_SUCCESS constant and some others are present in StdLibTypes.inc for Android and OSX:
$(BDS)\source\rtl\posix\android\StdLibTypes.inc
$(BDS)\source\rtl\posix\osx\StdLibTypes.inc
const
...
1
vote
0
answers
282
views
Problems following installation of Delphi 12 Community Edition
Having recently downloaded and installed Embarcadero Delphi 12 Community Edition, after successfully using Delphi 11.3 CE and Delphi 10.4 CE, I am encountering numerous problems. These include:
Help ...
0
votes
1
answer
85
views
TText in Rectangle (FMX render) - rotated rectangle and rotated Text
I have an issue with TText in TRectangle with both rotated
the same rectangle when created dynamically, shows the number outside the box,
yet when I paste the rectangle and text (by converting them ...
1
vote
2
answers
89
views
Delphi Find which TDBGrid cell is selected
I have a TDBGrid on a dataset with multiple text blob fields on each row. I want to be able to dbl-click on each blob field to pop up an edit dialog. How do I tell, in the grid's DblClick event, ...
0
votes
0
answers
128
views
TShadowEffect renders incorrectly after moving Layout between parents
Scenario:
In a new FMX project (no StyleBook), I have two layouts: Layout1 and Layout2.
Inside Layout1, there's a TButton with a TShadowEffect attached.
At runtime, I move Layout1 into Layout2 like ...
0
votes
1
answer
81
views
How to throw exeption from ReconcileError in Delphi's ClientDataSet
It's been a long time since I had to write this in Delphi, I need a little help here.
I have a ClientDataSet, that has a DataSetProvider that is connected to a ADOQuery.
Retrieving rows works fine, ...
0
votes
1
answer
136
views
How to increase column header height in StringGrid for Delphi FMX?
I have a simple TStringGrid on my form, but my column header height isn't large enough for the text to fit as can be seen here:
I'm simply trying to change the height of that column header, but I'm ...
0
votes
2
answers
192
views
Input rendered in TWebBrowser using Edge keeps unfocusing when clicked
In my FMX application I have a webpage that I'm rendering inside a TWebBrowser. The webpage has a simple <input>, but on Windows if I click the input it focuses and immediately unfocuses. After ...
1
vote
1
answer
134
views
{dcc64 Error} E2042 Write error on '.\Win64\Debug\MyApp.exe' in Delphi IDE when compiling
Every time I try to compile and/or run my app I get this error:
[dcc64 Error] E2042 Write error on '.\Win64\Debug\MyApp.exe'
According to the Embarcadero docwiki the issue is:
The compiler ...
1
vote
1
answer
128
views
How to load a RES file in runtime?
I know how to read a RES file embedded in EXE file and extract data from it : images, strings etc. But for this to work, i need to include a RES file before compiling my EXE, like so :
{$R myfile.res}
...
2
votes
1
answer
92
views
Delphi 10 How to capture a TScrollBox Horizontal and Vertical Positions
I have code to get the Horizontal and Vertical Bar Positions of a TScrollBox when the user moves the bars but the scroll bar resets to its original position what I believe is due to not being able to ...
1
vote
1
answer
214
views
Project raised exception class 'External: SIGSEGV' with blank Lazarus App
I see that other people have gotten similar errors in both Delphi (#1, #2) and Lazarus (#1, #2, #3, #4) on StackOverflow, but none of them have it using just a new blank app.
I have a completely brand ...
0
votes
0
answers
65
views
C# Entity Framework COM Object accessed from Delphi Error [duplicate]
After installing Windows 11 Update 24H2, I have not been able to work with a COM Library developed with C# and accessed from Delphi. The failure occurs when I do a Where filter using a numeric ...
1
vote
2
answers
181
views
How to create a constant generic array of strings with other constants in Delphi? (Error: Constant expression expected)
This answer shows that you can create a constant generic array of strings. So this code works:
const AllTestJSON: TArray<String> = [
'''
[
{'Computer Webcam', TAlphaColors.Aliceblue},...