52,553 questions
3
votes
0
answers
182
views
How to implement Microsoft Entra ID authentication and group checks in a Delphi XE3 VCL application? [closed]
I am tasked with updating a legacy Windows VCL application, built in Delphi XE3, to change its authentication method. Currently, it uses direct LDAP queries against an on-premise Active Directory to ...
0
votes
7
answers
236
views
How to split camelCase or PascalCase strings into readable labels in Delphi?
I'm working on a Delphi mobile app and want to convert camelCase or PascalCase identifiers into space-separated, human-readable labels.
For example this is my array:
const
ReadableIdentifiers: array[...
1
vote
0
answers
76
views
How to implement IGlyph Interface in custom FMX control?
I'm developing a new custom FMX control displaying a collection of TSpeedButton controls. That's fairly easy with TCollection and TCollectionItem using the standard property editor to manage buttons ...
0
votes
0
answers
130
views
Delphi TWebBrowser Android: display cached website in offline mode
I have a project that requires me to convert a web app into an Android application.
My solution was that instead of recreating the app from scratch, I proposed making a Delphi FireMonkey Android ...
0
votes
2
answers
278
views
How can I generate 10 visually distinct random colors in Delphi FMX?
I'm working on a Delphi FMX project where I need to generate a set of 10 random colors for use in a UI. The problem is that when I use TAlphaColorRec with random RGB values, many of the colors end up ...
2
votes
0
answers
189
views
How to make Delphi LSP search at least inside the current source file?
It's Delphi 12.3 and a quite large project with a few thousand source files.
It's default debug configuration compiler options and 32 bit.
Ctrl+Click does not work even for symbols inside the source ...
3
votes
3
answers
318
views
Should I use FileExists(Path) or TFile.Exists(Path) in Delphi?
I'm always working on the latest Delphi and so I have TFile.Exists(Path) available to me, but currently at my company, all of our code uses the older FileExists(Path) method.
What are the differences ...
3
votes
1
answer
123
views
Does GlobalUseSkia activate Skia for everything or only Skia components in Delphi FMX?
I found that I can do GlobalUseSkia := True to use Skia that is a lot better for performance, but is this for everything on my form or only Skia components?
Will my TPaintBox and other standard ...
1
vote
1
answer
78
views
How can I remove everything from TPaintBox in FMX?
I have made a drawing on an FMX TPaintBox and I want to remove/delete the drawing from the TPaintBox when I click on a button, but how?
I have tried things like this to set the canvas to empty, but it'...
2
votes
0
answers
98
views
E1030 Invalid compiler directive: 'private' in Delphi FMX
I have the next code that works and compiled. The app runs with no errors, but the IDE shows a red stripe and hover popup:
E1030 Invalid compiler directive: 'private'
on code:
type
TForm1 = class(...
0
votes
1
answer
166
views
Printing and previewing simple drawing in Delphi
I am writing a set of routines to print my visual component (TStringGrid descendant) with an ability to see its print preview. The preview is done using TPaintBox. I want that drawing utilized my ...
-4
votes
1
answer
121
views
How to bring to front MDI Child form created under a mdiform(main) [closed]
I have a project that have a main form as mdichild with a menu. Each item of that menu create a mdichild form.
In that main form i have components, like panel, stringgrid etc
The problem is: when that ...
3
votes
1
answer
185
views
Delphi tstringlist encoding default
I have noticed recently (maybe a change in recent Delphi) that if I load an ASCII format txt file into a tstringlist, edit a line with file.lines[10]:='blah', and then save it again the file is now ...
2
votes
1
answer
148
views
Unexpected SQLite SELECT statement results within Delphi
I am receiving unexpected results from an SQL SELECT statement in my Delphi 12.3 app. I believe the SQL statement is properly formatted, however, I get no records.
I tested the following SQL ...
0
votes
1
answer
156
views
Delphi FireDAC connect to different Firebird ODS version FDBs concurrently
I have several Firebird databases, some created with Firebird v2.5.9 (ODS 11.2) and some with Firebird 5.0.3 (ODS 13.1.) Both Firebird versions are installed on my VM using different ports, and using ...
0
votes
1
answer
148
views
Media Foundation COM classes IMFAttributes & IMFActivate - How to use them in a Delphi program?
Goal: Try to get Camera enumeration and image capture to work with a Delphi program.
This means the need to use COM classes from the 2 DLLs: mf.dll and mfplat.dll, since Microsoft implemented Media ...
2
votes
1
answer
132
views
Delphi ClientDataset.RefreshRecord keeps causing error "field cannot be modified"
When I do ClientDataset.RefreshRecord, I get a runtime exception
Project DeMijn.exe raised exception class EDatabaseError with message 'Field 'MemberID' cannot be modified'.
The setup is
AdoQuery =&...
0
votes
1
answer
250
views
What is the actual implementation of delphi helpers?
type
TTestHelper = class helper for TStringList
procedure Test;
end;
What is the actual implementation of Delphi class helpers? In the System unit, I can find the define of TClassHelperBase. ...
1
vote
2
answers
154
views
Best Way to Select a Single Row with TDBGrid in Delphi
I have an application that uses an SQLite database. The form has 14 different fields to display a single record for adding/editing and a TDBGrid to show all records. It appears that TDBGrid does not ...
2
votes
1
answer
138
views
Indy TCP server MaxConnections occasionally being ignored
I have a TWebModule (THireTrack_NX_API_Handler) that is being created via an Indy TIdHTTPWebBrokerBridge.
All seems to work as expected, only FWebBrokerBridge.MaxConnections seems to get ignored.
...
0
votes
1
answer
170
views
Required package 'ibxpress' not found error in Delphi 12 CE when compiling
Sometimes when I compile my project in Delphi 12 CE, then I get the following error:
[dcc32 Fatal Error] E2202 Required package 'ibxpress' not found
The weird thing is that I'm not using ibx or ...
1
vote
0
answers
137
views
TStream.Read fails if file is located on a cloud-mapped drive
A simple TFileStream.Read or TFileStream.Write repeatedly fails if the file is located on a cloud-mapped drive. Do I need to repeat each read and write operation for a while to make sure it works?
2
votes
1
answer
191
views
What component is used in the Delphi IDE for the main menu?
The Delphi IDE's main menu seems superior compared to TMainMenu.
For example it handles too long sub-menus by adding a "More" submenu automatically and correctly calculated depending on the ...
5
votes
0
answers
87
views
Removing read-only attribute from sandboxed folders in Delphi iOS apps
My Delphi 12.3 iOS app deploys a folder in its documents called, "Chess Openings Wizard 2016" and iTunes for Windows allows users to copy that folder to and from their Windows machines.
(I ...
2
votes
1
answer
413
views
How to programmatically detect if Microsoft Copilot is installed in Windows using Delphi?
I am running Windows 11 Pro 64-bit 24H2. When I press WIN+C (the shortcut to show Copilot), I get this screen asking me to sign in Copilot.
This IMO shows that Copilot is installed on my machine.
Now ...