delphi-10-seattle

Library platform keeps switching to 64-bit Windows in Delphi Seattle

房东的猫 提交于 2019-12-24 00:55:59
问题 I have just installed Delphi Seattle Upgrade 1. If I go to menu Tools\Options\Environment options\Delphi options\Library the Selected platform dropdown keeps reverting to 64-bit Windows. After installing a lot of 3rd party packages with manual updates of the Library path, it is not funny to find out I put them all in the wrong place ;-( I run Win32 code on a Win64 Windows 7. Only once did I build a 64-bit package, but it's been 32-bit ever since. Anything I can/should do to fix this? Edited

Delphi 10 Seattle Android service (TAndroidService) receiving GCM

被刻印的时光 ゝ 提交于 2019-12-24 00:26:05
问题 Is it possible possible to receive Google Cloud Messages within an android service (TAndroidService)? It works fine in an application, but when I try to do the same in an android service (local service) I always get the same error... I have tried it with TKinveyProvider and TPushServiceConnection, but when I debug it, I get an "Activity not found, maybe you are in a service" error. 来源: https://stackoverflow.com/questions/36546294/delphi-10-seattle-android-service-tandroidservice-receiving-gcm

Click events being caught by list view parent item

…衆ロ難τιáo~ 提交于 2019-12-23 17:25:09
问题 I'm writing a custom switch object to be used in Firemonkey's TListView control per item. Everything works as expected, except for one strange glitch. When the user clicks on one of the items, but not on the particular switch object, it toggles the switch anyway. I'm assuming the MouseDown event is triggered when the user clicks on the list item, and not necessarily my particular "control" drawn on it. How do I restrict the click event to only apply when the user clicks the actual switch? JD

Deleting an FMXobject inside its event handler

二次信任 提交于 2019-12-20 05:44:28
问题 I have the following components, tncrdragdata ( tframedscrollbox ) tdragdata ( tgroupbox ) The main Idea is to combine them and use them as a list box (I need it this way). The groupbox contains five tedit , one tcombobox and one tbutton . The problem is when I try to free the tdragdata inside its event handler. I use the FreeNotification method to relocate the group boxes in the framedscrollbox . The problem is that the overridden notification method is executed twice for some reason I don't

opening the image with the external gallery using delphi

邮差的信 提交于 2019-12-19 10:47:48
问题 I have created Android app using Delphi 10 Seattle. I have stored the image path and from there I need to open the image in the native Android Gallery. How can I implement this functionality? 回答1: The Java equivalent of what you're trying to do, looks like this (based on open-an-image-using-uri-in-androids-default-gallery-image-viwer) Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://" + "/sdcard/test.jpg"), "image/*"); startActivity

Delphi android application is raising issue in Lennova A5000 mobile

三世轮回 提交于 2019-12-18 05:07:12
问题 I'm using Delphi 10 Seattle trail version for developing mobile application. And I tried to create new android mobile application which contains only TEditBox. And then compiled by setting the option as "Release". Then, generated the .apk file and then provided the file to the user. And when the user tried to click the edit box, the application raises the error message that " The Appname is not responding ". The user is using the Lennova A5000 and the Os is Android 5.0.2. And the same

How “crop” a area behind of a screen locker Form on Windows 8/10 without locker Form appear on final result?

老子叫甜甜 提交于 2019-12-14 04:00:10
问题 I have a Remote Administration Tool where i have difficulties to "crop" a determinated area behind a screen locker Form on Windows 8/10 without locker Form appear on final result ( that in my case is a image file (.bmp) that will be showed to client later). On Windows Vista/7 works fine. Then i want know why on Windows 8/10 instead of "cropped" area be the website (behind screen locker Form), this area is the locker Form? Eg (note that all gray area is the screen locker Form): Here is

How to autorun application with background service in Delphi?

ε祈祈猫儿з 提交于 2019-12-13 12:45:59
问题 Is there a possibility to create an android application (with background service) in Delphi 10 Seattle that will automatically start after boot android device? I found one solution (Auto start Delphi XE5 Android App after boot), but it is for the version Delphi XE5 and there is no option to automatically start the background service. Any of you tried to solve this problem? If so sharing with us your solution? UPDATED: I do not know what's wrong. Add BroadcastReceiver to uses Registration

Delphi - Google Firebase - HTTP

两盒软妹~` 提交于 2019-12-13 07:29:41
问题 I'm trying to send a POST request at Firebase via HTTP, either in code or with the REST Debugger, but it returns an error: HTTP/1.1 401 The request was missing an Authentification Key (FCM Token). Please, refer to section "Authentification" of the FCM documentation, at https=//firebase.google.com/docs Using the Postman extension from Chrome, it works. This is the code: uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX

What is the use of NEXTGEN compiler conditional?

て烟熏妆下的殇ゞ 提交于 2019-12-13 07:05:04
问题 While working on a project we were having 4000+ warnings. To remove some of those I found one compiler Directive as NEXTGEN . After Using this directive I found that there is a much more minimize in the warnings to 257. I want to know if we have any issues in using the compiler directive. Are there any drawback of this directive for my windows application. I am using Delphi 10 . on Site of Embarcadero I found very less information. Can anyone tell me something about the same? 回答1: Delphi's