delphi-10.1-berlin

How to change small icon image in notification on Android device with DELPHI

旧巷老猫 提交于 2019-12-23 01:13:42
问题 Is there any way to change the small icon image (default used application icon) in the notification in the Android application with Delphi? The standard way to easily create a notification is: var aNotification: TNotification; begin aNotification:= aNotificationCenter.CreateNotification; try aNotification.Name:= 'Notification Name'; aNotification.Title:= 'Notification Title'; aNotification.AlertBody:= 'Notification Alert Body'; aNotification.EnableSound:= False; aWorkNotification.Number:= 1;

Developing new TEditButton types requires dclfmxstd package which does not exist as dcp

核能气质少年 提交于 2019-12-20 06:29:07
问题 I am using Delphi Berlin Enterprise and I need to extend some functionalities of the TClearEditButton and TDropDownEditButton. So I developed my own TMEClearEditButton and TMEDropDownListEditButton. They are subclasses of the standard FireMonkey ones, so I used the FMX.Edit unit. I did some test by creating the buttons by code and had no problems up to here. Problems started when I decided to build a designtime only package to have the possibility to add the buttons to edits directly in the

Property “ofOverwritePrompt” for TSaveDialog does not work when VCL Styles are used in Delphi 10.1 Berlin

[亡魂溺海] 提交于 2019-12-19 05:53:05
问题 Create a new VCL Forms application On the main form add a Tbutton and a TSaveDialog Set "ofOverwritePrompt" to True in properties for the SaveDialog1 Use: procedure TForm1.Button1Click(Sender: TObject); begin SaveDialog1.Execute(); end; Run the app. Press the button to execute the save dialog. Try to save to a file that already exists. A message box appears if you want to replace the file. Press cancel. All fine so far. Close the app. Go to Project/Options/Application/Appearance and select a

ODBC Excel Driver: Unexpected error from external database driver

怎甘沉沦 提交于 2019-12-18 04:17:45
问题 Since the Windows update from October 10, the ODBC Excel drivers have stopped working. We get the following error when trying to read a file: "Unexpected error from external database driver (1)" We open Excel files in Delphi using an ADO connection with the following connection string: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1"; I can get it to work by switching to Microsoft.ACE.OLEDB.12.0, but for that to work, all our customers

(Delphi) How to use DosCommand Component? [closed]

半世苍凉 提交于 2019-12-14 03:33:32
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I have Installed https://github.com/TurboPack/DOSCommand on Rad Studio Berlin 10 update 2 but I cannot find out how to use it. I have tried playing around with it and I have searched through google looking for examples but I can't find any. 回答1: Unfortunately your question does

Delphi RAD Studio 10.1 - From Debug to Release

℡╲_俬逩灬. 提交于 2019-12-14 03:25:47
问题 After working pretty hard on a personal project, it is now time to release the application and distribute it. And suddenly, I realize that all my resources (images, sqlite database etc...) are located in the debug folder... and I fear this was a mistake from the start :) As you can see on the following screenshot, here is my folder hierarchy: Pretty wrong isn't it ? My questions : what should I do ? Is there a way out of this ? Where should I have put my resources in the first place ? Because

Get xsuperobject to parse unnamed array to tobject structure

淺唱寂寞╮ 提交于 2019-12-13 00:18:37
问题 I am using Delphi 10.1 Berlin Update 2, and am trying to use XSuperObject / XSuperJSON to take a JSON response from a 3rd party provider and parse it into an object structure. Here is the JSON: [ { "yardNumber": 10, "links": [ { "rel": "yardSaleList", "href": "<url address>" } ], "yardName": "Yard A", "auctionDate": "1/25/17" }, { "yardNumber": 10, "links": [ { "rel": "yardSaleList", "href": "<url>" } ], "yardName": "Yard B", "auctionDate": "1/25/17" } ] My code is something like this:

Disable the scroll temporarily ,of a TvertScrollBox component in Delphi?

我的梦境 提交于 2019-12-12 23:05:21
问题 I am making an application for IOS and Android devices in Delphi Rad Studio XE10.1 Berlin, and I have a problem. In a form, I have a TvertScrollbox , and within it, there is many components to display, and one of them is a Tlistview . The problem is, when I make a scroll in the Tlistview , because there is more data that shows, also makes a scroll in the TvertScrollbox , which in the end is impossible to visualize the data correctly. Is there any way to disable the scroll of the

No mapping for the Unicode character exists in the target multi-byte code page

旧时模样 提交于 2019-12-12 18:17:44
问题 i have a soap builded with Delphi 2007 and it work! After a conversion in Delphi 10.1 Berlin i have a lot of exceptions: No mapping for the Unicode character exists in the target multi-byte code page the cause seem, when webbroker HttpApp parsing the request parameters, it raise this exception if request has some url encoded chars in the query string, eg.: http://localhost/soap/soap.dll/action?param=%E0 in fact if i call URL.Decode() with %E0 ( à url encoded): TNetEncoding.URL.Decode('%E0');

TColorProperty Delphi Berlin 10.1.2?

◇◆丶佛笑我妖孽 提交于 2019-12-12 13:23:31
问题 I'm trying to convert a component from Delphi 7 to Delphi Berlin (flatstyle component: https://sourceforge.net/projects/flatstyle/) After many changes in the source, i´m stuck in TColorPorperty See below: type TRxColorProperty = class(TColorProperty) public function GetValue: string; override; procedure GetValues (Proc: TGetStrProc); override; procedure SetValue (const Value: string); override; In Delphi 7, this class is in VCLEditors unit. But i can´t find in Delphi Berlin. Someone can tell