3,992 questions
6
votes
0
answers
118
views
Detect dark / night mode on iOS using Delphi
With Delphi 12 I use IFMXSystemAppearanceService to detect if my device is in dark mode. It works on Android and MacOS but not on iOS. I always get light value.
function TThemeNotifier.GetSystemMode:...
1
vote
0
answers
41
views
fmx override DoChange procedure (not working) to preserve the inherited code (eg: TEdit)
I want to implement a custom Tedit box and override the OnChange handler (rather than set the OnChange property). I want to do it that way so I can preserve the inherited OnChange code
I found this ...
1
vote
0
answers
148
views
How do i intercept the Back navigation button/gesture in a (Delphi 12) Android 16 app?
How can i intercept the Back navigation button/gesture in the latest Delphi and Android versions?
In the past, with Delphi 11 and Android 12 (maybe 13), i used vkHardwareBack in the Form OnKeyUp event,...
0
votes
0
answers
93
views
How to correctly call an iOS completionHandler block from Delphi without crashing?
I’m trying to implement this iOS delegate method in Delphi:
- (void)URLSession:(NSURLSession *)session
task:(NSURLSessionTask *)task willBeginDelayedRequest:(NSURLRequest *)request ...
1
vote
0
answers
117
views
Delphi FMX Form set parent HWND
I'm trying to write a CLAP plugin - a library that is used by another application. The API provides a parent HWND to embed the form of your plugin into the forms of the host application.
With VCL ...
2
votes
1
answer
115
views
What's the difference between Text and EditValue in DevExpress TcxTextEdit component?
I have been tasked to convert one of our VCL DevExpress forms over to FMX. I am now busy replacing all of the TcxTextEdit components with TEdit components.
The problem is that in some places, the code ...
1
vote
1
answer
134
views
How to remove all rows and columns in a TStringGrid?
I've tried doing:
GridRawData.ColumnCount := 0;
GridRawData.RowCount := 0;
But that fails with:
E2129 Cannot assign to a read-only property
I've also tried doing:
GridRawData.Columns.Clear;
...
0
votes
2
answers
182
views
Cannot get TList<>.Sort() to work in Delphi 11 FMX
I have been trying to sort a collection of objects. While I have seen many promising solutions, my compiler simply won’t accept them (error message in procedure GenReorderSpeciesList). I am using ...
1
vote
1
answer
145
views
How to have one axis for two series in TMS FNC Charts?
I've built the following Chart that shows temperatures. It shows the lowest and highest temperatures for each day:
The issue I have is that there are two axis on the left and bottom. I want there to ...
1
vote
0
answers
119
views
how to handle a range check error in Delphi 13 Android TNetHTTPClient.Get
My Delphi 13 Android project has Range Checking turned OFF for the Release configurations.
The project runs in Debug mode as expected.
Running the project in Release mode has the TNetHTTPClient.Get() ...
1
vote
0
answers
138
views
How to detect Samsung DeX desktop mode in a FireMonkey Android app?
I'm developing a cross-platform Delphi app using the FireMonkey (FMX) framework, and I need to optimize its layout and behavior when running on Android devices that support desktop-like environments, ...
1
vote
0
answers
93
views
How to attach a Java component to a delphi Layout
I'm working with Delphi 13, building an Android-exclusive app using FireMonkey.
With a new feature we want to add, we are looking into creating a custom WebView, as the version Delphi exposes in ...
1
vote
1
answer
147
views
How do I change my mouse icon when I hover over a TSkLabel component on Delphi in FireMonkey
I have a follow up question to one of my previous questions. I have switched over to using Skia4Delphi in my applications, but the properties are very different.
I was using TLabel and setting the ...
0
votes
7
answers
245
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
2
answers
131
views
How to know when Delphi app is run from Proton on Linux?
I have an app on Steam, and normally when I want to know what operating system I am using, then I use TOSVersion.Name from System.SysUtils.
And that works except when I run it through Steam Proton on ...