delphi-xe8

How to get app resume state on iOS and Android?

一曲冷凌霜 提交于 2019-12-06 05:36:43
问题 Is there something that can be checked from code point of view when an App is resumed on iOS and Android ? e.g. when an app gets minimized and restored (app is still running in background of device). 回答1: You need to use IFMXApplicationEventService to register a callback where the application will be notified: uses FMX.Types, FMX.Platform; function TForm1.HandleAppEvent(AAppEvent: TApplicationEvent; AContext: TObject): Boolean; begin case AAppEvent of TApplicationEvent.FinishedLaunching: Log

Application written Delphi XE8 touch in edit boxes keyboard not appear in Windows 10

浪尽此生 提交于 2019-12-05 02:27:16
问题 I have Win 32 bit desktop app written in Delphi XE8 with subscription update 1. Windows 10 is set to tablet mode. When I touch edit boxes or memo boxes on my app, keyboard does not appear. It only appears if I touch a password field e.g. edit control with password char set to * or editable combobox. When I run notepad.exe and touch it, keyboard appears, but not for any editable controls on my app ... except for password fields... What is the trick here? 来源: https://stackoverflow.com/questions

Using custom styles shows invalid characters when right-clicking a file in TOpenDialog

北战南征 提交于 2019-12-05 01:33:04
See steps below to reproduce. Works well in XE2 but not XE8. Create a new VCL Forms Application - Delphi Place a TButton and a TOpenDialog on the form In the button OnClick event call OpenDialog1.Execute Run the program, open the file dialog, and right-click on a text file => shows menu items ok Go to Project/Options/Application/Appearance. Enable and choose a custom style (such as "Ruby Graphite") and recompile Run the program, open the file dialog, and right-click a text file => does not show menu items correctly (invalid characters are shown) Tested with XE8 Subscription Update 1 (and

Delphi: Making a component visible to live binding

£可爱£侵袭症+ 提交于 2019-12-04 12:39:15
I have been trying to make a test object that has a string property visible to the visual binding form. The component is registered with the appropriate properties. Using XE8 and Firemonkey. I can get it to show on the visual binder by selecting it using the hide show elements, however I cannot get it to bind the Foo string to a TEdit text property, the readonly (which does nothing yet) will bind to the Text Property. how do I get it show in it with default class visibility why doesn't the Foo string bind to the text property The help files are a little thin on this. I guessing I'm missing

How to get app resume state on iOS and Android?

折月煮酒 提交于 2019-12-04 11:11:11
Is there something that can be checked from code point of view when an App is resumed on iOS and Android ? e.g. when an app gets minimized and restored (app is still running in background of device). You need to use IFMXApplicationEventService to register a callback where the application will be notified: uses FMX.Types, FMX.Platform; function TForm1.HandleAppEvent(AAppEvent: TApplicationEvent; AContext: TObject): Boolean; begin case AAppEvent of TApplicationEvent.FinishedLaunching: Log.d('Launched.'); TApplicationEvent.BecameActive: Log.d('Gained focus.'); TApplicationEvent.EnteredBackground:

Application written Delphi XE8 touch in edit boxes keyboard not appear in Windows 10

风流意气都作罢 提交于 2019-12-03 20:45:32
I have Win 32 bit desktop app written in Delphi XE8 with subscription update 1. Windows 10 is set to tablet mode. When I touch edit boxes or memo boxes on my app, keyboard does not appear. It only appears if I touch a password field e.g. edit control with password char set to * or editable combobox. When I run notepad.exe and touch it, keyboard appears, but not for any editable controls on my app ... except for password fields... What is the trick here? 来源: https://stackoverflow.com/questions/32370944/application-written-delphi-xe8-touch-in-edit-boxes-keyboard-not-appear-in-window

posting a file as part of a form

走远了吗. 提交于 2019-12-02 19:39:29
问题 I am trying to post a file and some other data to a website in an App that I am writing using Delphi XE8 but it is not working. When I monitor the network traffic using "Microsoft Network Monitor 3.4", the file is only partially sent and none of the other data is sent. I have tried both Indy 10 and the new TNetHTTPClient and got the same result which tells me I am doing something wrong. please help. Indy Way procedure TMyClass.SendFile(aUrl: String); var mCookies: TIdCookieManager; pHttp:

¿How can I send and recieve strings from tidtcpclient and tidtcpserver and to create a chat?

孤街浪徒 提交于 2019-12-02 08:34:31
im new at delphi languaje and im using Rad Studio to make apps work on every device with oune single programming. Right now Im supposed to make a chat using sockets, I made a chat for windows only using tclientsocket and tserversocket using the next code, what Im trying to do is make the exact thing but using tidtcpclient and tidtcpserver instead of tclientsocket and tserversocket Server: unit Server; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Win.ScktComp, Vcl.StdCtrls; type

Detect where ListViewItem has been clicked/pressed

╄→尐↘猪︶ㄣ 提交于 2019-12-02 07:55:54
问题 In Delphi XE8 using a Firemonkey TListView. I have a ListView with about 5 items in it. Each item has an image within them. How would one detect when the image is clicked/pressed?. I've been looking at the procedure: OnItemClickEx But I do not understand how to use it. Wasn't sure if this is what I need to use or not. Any help would be great. Thanks, 回答1: Set Listview item image object properties.... procedure TForm1.OnFormCreate(Sender:TObject) begin ListView1.ItemAppearanceObjects

how to internationalize my application in Delphi XE?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 02:04:23
I am using the Translation Manager Included in Delphi (xe8, but should be the same in older version) I go to Projet->langages->add (choose english). Then I translate the texts(here the button) I update it all and compile it all: I got the .exe and .enu file and it is french. When I go to Projet->languages->set Active and I choose english, I compile it all and my application is now in english (button says hello ) That's great. However my goal is that my application AUTOMATICALLY swicthes from french->english when computer config changes ex : I change my PC settings to english: (I do the same