delphi-xe4

Delphi XE4 with iOS addon - how to embed files

别等时光非礼了梦想. 提交于 2021-01-29 03:03:09
问题 On Android / Eclipse, I can place files in e.g. assets folder. Can I do something similar in Delphi XE4 for iOS? i.e. create a folder where data and image files can placed and automatically built into app? I know I can have images, txt etc. in the form file, but is not what I want if I can avoid it. ... If I include res.zip in Delphi > Project > Deployment my following code returns false in simulator: FileExists(GetHomePath + PathDelim + 'res.zip') FileExists(GetHomePath + PathDelim +

Delphi XE4 with iOS addon - how to embed files

六月ゝ 毕业季﹏ 提交于 2021-01-29 03:02:56
问题 On Android / Eclipse, I can place files in e.g. assets folder. Can I do something similar in Delphi XE4 for iOS? i.e. create a folder where data and image files can placed and automatically built into app? I know I can have images, txt etc. in the form file, but is not what I want if I can avoid it. ... If I include res.zip in Delphi > Project > Deployment my following code returns false in simulator: FileExists(GetHomePath + PathDelim + 'res.zip') FileExists(GetHomePath + PathDelim +

ShortDateFormat vs FormatSettings.ShortDateFormat?

旧城冷巷雨未停 提交于 2020-01-13 19:48:06
问题 In trying to get Log4D to compile in XE4, I was seeing [dcc32 Error] Log4D.pas(2139): E2003 Undeclared identifier: 'ShortDateFormat' on this line: SetOption(DateFormatOpt, ShortDateFormat); A bit of googling led me to the solution of changing ShortDateFormat to FormatSettings.ShortDateFormat , which led to the following compiling code on XE4: SetOption(DateFormatOpt, FormatSettings.ShortDateFormat); However, I don't really understand why that fixes things why it's needed to specify

XE4/FireDAC uADStanCipher not found error

痴心易碎 提交于 2020-01-03 03:07:08
问题 When I try to compile my XE4/FireDAC project I receive the following error: [dcc32 Fatal Error] uADPhysSQLiteCli.pas(992): F1026 File not found: '<project path>\uADStanCipher.dcu' I have searched for solutions and it seems that the file is not distributed with the standard FireDAC installer due to export restrictions. Some Google results refer to the link http://cc.embarcadero.com/item/29376. It appears that the link should allow you to download the correct file. Unfortunately I receive an

How to change Edit control background color in FireMonkey?

半城伤御伤魂 提交于 2020-01-02 06:21:27
问题 I just can't find a way of changing background color of Edit control in my mobile FireMonkey application. 回答1: I dont know about FMX for mobile, but in FMX for Mac/Win you should do following steps: Right click on TEdit and select Edit Custom Style In Structure window, expand editstyle (TLayout) Put a TRectangle on content (TRectangle becomes child of content) Change Rectangle.HitTest to False Change Rectangle.Align to alClient Change Rectangle.Fill.Color to a custom color Change Rectangle

JvMail (JEDI) component not sending mail

你。 提交于 2019-12-31 03:43:29
问题 JvMail component is not functioning right or I am messing something up. procedure TForm1.RzURLLabel1Click(Sender: TObject); begin if cxLookUpComboBox1.Text ='' then abort else with JvMail1.SimpleMAPI do begin JvMail1.Clear; JvMail1.Recipient.AddRecipient('smtp:mymail@gmail.com'); JvMail1.Subject := 'Password lost '; JvMail1.Body.Text := 'Request password :' +#13#10+ cxLookUpComboBox1.Text +#13#10+ AdvOfficeStatusBar1.Panels[4].Text ; JvMail1.SendMail; end end; My mail does not get sent unless

WWW server reports error after POST Request by Internet Direct components in Delphi

老子叫甜甜 提交于 2019-12-28 02:16:08
问题 I'm using Delphi XE4 and i usually use Indy with IdHttp.POST to POST request to websites, This time, whenever i try to POST the request i get Error: Your browser is not sending the correct data. I'm very sure that I'm POSTing the right data, and i'm using the IOHandler and CookieManager. Been dealing with this for days(literally) Here is the code(the site in the code): procedure TForm1.Button1Click(Sender: TObject); var s, lge, Kf1, Kf2, Kf3, Kf4 : String; lParam : TStringList; begin S :=

Using Format in a livebindings CustomFormat

我们两清 提交于 2019-12-24 13:03:39
问题 I'm trying to use LiveBindings to format a number for display in a TEdit on a FireMonkey form. I'm trying to use the Format method in the CustomFormat of the binding to format the number with two decimal places. I can 'hard code' the output: Format("Hello", %s) which is working, but I can't work out what formatting string to use. If I try a standard formatting string such as, Format("%.2f", %s) I get a runtime error "Format invalid or incompatible with argument". Indeed I get an error

Problems with converting Java code to delphi

混江龙づ霸主 提交于 2019-12-24 03:28:03
问题 I have a method that must return a generic interface. Have tried to make the method in delphi. But are unsure on how it should be written? Is there anyone who can help me? Here's an example I've made in Java that works: public < T extends StandardDataProvider<?>> T GetDataProvider(String dataProviderName) { if (dataproviders == null) buildDataProviderMap(); if (dataproviders.containsKey(dataProviderName)) { return (T) dataproviders.get(dataProviderName); } else return null; } Then tried to do

What API Is Needed To Run A Delphi App from the Start Screen Rather Than The Desktop

泪湿孤枕 提交于 2019-12-24 00:58:24
问题 When you compile and run a Delphi "Metro" app it runs from the Desktop in Windows 8. What Windows 8 API can make a Delphi app run from the Start Screen? I am not referring to Windows RT. 回答1: That's not possible. Delphi cannot produce WinRT applications. 来源: https://stackoverflow.com/questions/21125783/what-api-is-needed-to-run-a-delphi-app-from-the-start-screen-rather-than-the-des