fmx | full text search engine based on compact data structures | Search Engine library
kandi X-RAY | fmx Summary
kandi X-RAY | fmx Summary
full text search engine based on compact data structures
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fmx
fmx Key Features
fmx Examples and Code Snippets
Community Discussions
Trending Discussions on fmx
QUESTION
I would like to load png images from the web, but with the code below not all images do get correctly into the stream (while posting the url in a webbrowser, e.g. edge, does give the image correctly). For example, the first url in the code gives a loading bitmap failed error (in the stream FSize is only 14?), while the second url does not give a problem. Does anyone know how to download the first url correctly?
For this piece of code to work, a TButton and a TImage was put on a form.
System.Net.HttpClientComponent was added in the uses. I am using Delphi 10.3.3. fmx.
Thanks, Gerard
...ANSWER
Answered 2021-May-30 at 06:24When operating on HTTP you have to check if the HTTP server can satisfy your request (status code 200, as per RFC7231, § 6.3.1) or any error occured. In your case requesting that URI and making sure to see what comes from the server can be done with i.e. wget:
QUESTION
I'm trying to send events from my mobile application to Google analytics.
External library connected:
com-google-android-gms.play-services-analytics-impl.16.0.8.jar
Androidapi.JNI.PlayServices
After launching the application, I get the following.
...ANSWER
Answered 2021-Apr-23 at 13:32After digging around in the documentation. GoogleAnalytics I found this.
This code is used for universal analytics not GA4 so if you are trying to use this to send data to GA4 its not going to work.
QUESTION
Note: Although question is duplicate, but current answers lacks details, so I wanted to post another one.
I'm using C++Builder developed by Embarcadero.
For Windows, it compiles fine.
For Android, it shows the following error:
...ANSWER
Answered 2021-May-17 at 14:10my bet is that you need to use "Preprocessor directives" in your code and indicate platforms
QUESTION
Update:
Indeed, the issue was fixed since 10.2.
I compared the FMX.Platform.Win
from 10.4, the fix is in the function TWinDropTarget.GetDataObject: TDragObject;
I've implemented the answer for
Drag and drop with TTreeView in Firemonkey to drag&drop TTreeViewItem
s in a Delphi 10.2 FMX Windows application.
Everything is working perfectly within the same app, however when the user suddenly drops an item to another copy of the same app, it hangs or even shuts down with c0000374 external error
.
When trying to debug in the IDE, the source app stops with this system call stack:
I don't actually need the ability to drag between applications (although, it would be perfect). I'm just asking, how to avoid such errors?
According to the comment below, I've added a minimal example. Create a Win32 FMX app and add a TLabel
to it:
ANSWER
Answered 2021-May-17 at 19:39There is a bug in Delphi 10.2 which has been fixed in Delphi 10.4.2. All you have to do is to update to the latest Delphi version.
QUESTION
Hi I have a multidevice APP based on FMX.
The synch database process takes longer time, I need a AniIndicator1 enabled to tell user to wait.
Following code tested in n android phone, sometime works, sometime only finish the first synch DB function, sometimes finish first 3 and then exited. Sometimes none of the sychDB function was taken place.
...ANSWER
Answered 2021-Mar-28 at 04:48You can't directly access UI controls from within a worker thread, like you are doing. You MUST synchronize that access to the main UI thread.
QUESTION
I have created a basic Android64 app, with just one button and managed to build it. After installing it on my device (sideloaded), I see the app in the startmenu but once I start it it shows a splashscreen and then closes. I never get to see the button...
...ANSWER
Answered 2021-Apr-08 at 16:25Have you tried with 32Bits ?
Same behavior occurs with a datamodule and SQLlite connection active .
QUESTION
A new Delphi 10.4.2 macOS project attempts to record microphone audio but gets this error message in a pop up window:
"Unauthorized to record audio."
How does a Delphi app get authorization to record audio?
I started with blank project so...
Project | Options | Application | Version Info | Key NSMicrophoneUsageDescription is set to the default string of "The reason for accessing the microphone"
The exception is being raised here in FMX.Media.AVFoundation:
...ANSWER
Answered 2021-Apr-19 at 02:45Adding the call to RequestPermission worked.
QUESTION
Has anyone found a way to detect the mouse back and forward buttons in a Delphi FMX form in Windows (and only Windows)?
I understand this works fine in a VCL application, using
...ANSWER
Answered 2021-Apr-18 at 22:18FMX heavily filters window messages, only dispatching the few messages it actually uses for itself. WM_APPCOMMAND
is not one of them, which is why a simple message
handler does not work in FMX, like it does in VCL.
So, you are going to have to manually subclass the TForm
's Win32 HWND
directly, via SetWindowLongPtr(GWLP_WNDPROC)
or SetWindowSubclass()
, in order to intercept window messages before FMX sees them. See Subclassing controls.
An ideal place to do that subclassing is to override the TForm.CreateHandle()
method. You can use FMX's FormToHWND()
function to get the TForm
's HWND
after it has been created.
QUESTION
for an app, I have a stringgrid with objects. now it is the intention that the objects are selected in the string grid by means of the checkbox. so for every row, there must be a column with a checkbox. what is the best way for this on an FMX platform? Or is there a way you can add a column in the SQL database with checkboxes?
...ANSWER
Answered 2021-Apr-02 at 09:20I solved the problem and did it like this. First, I added a column in SQL with a bit value. In Delphi a linked it to a memtable with the boolean value. Now I bind the string grid visually to the memtable so the string grid filled with the SQL data. when you right-click on string grid you see 'columns editor..' click on that and you see the columns from the SQL. now click on the boolean column and change the column type to Tcheckcolumn.
QUESTION
I'm developing an Android application with Embarcadero RAD Studio 10.2 to deploy on a Zebra TC25. I'm trying to activate the scanner by clicking a button on a screen. (Like pressing the yellow buttons on the sides of the pad)
...ANSWER
Answered 2021-Apr-01 at 14:30This works fine with Delphi 10.3 and the Zebra TC56/TC55 devices tested. The AndroidManifest remains untouched without any aditional entry needed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fmx
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page