firemonkey

Rad Studio, Firemonkey ios TWebBrowser seems above all objects

五迷三道 提交于 2019-12-13 04:26:27
问题 I'm using Firmonkey (Rad Studio) for an IOS app. I'm using a TWebBrowser object but this seems to stay above all objects. I tried to right-click the TWebBrowser object and click Send to Back, but it did not. Does anyone know any solution? 回答1: Unfortunately, There are no solution for it. Because TWebBrowser is a native component, which is always on top of all controls. Thank you 来源: https://stackoverflow.com/questions/21352847/rad-studio-firemonkey-ios-twebbrowser-seems-above-all-objects

Problem on PhoneStateListener to listen to OnCellInfoChanged in delphi firemonkey

爱⌒轻易说出口 提交于 2019-12-13 04:01:22
问题 It will be appreciated if help me. i am writing a program with delphi firemonkey that show mobile cell informations. i need to listen on cell info changes with JPhoneStateListener class. At First i write a class for implement main class as below : type TPL = class(TJavaGenericImport<JPhoneStateListenerClass, JPhoneStateListener>) public constructor create; Destructor Destroy; Override; procedure onCallForwardingIndicatorChanged(cfi: Boolean); cdecl; procedure onCallStateChanged(state: Integer

Transparent Form in firemonkey with a stylebook

萝らか妹 提交于 2019-12-13 03:56:53
问题 I have a application with multiple stylebooks containing styles from delphistyles.com. I want to add a trackbar to allow the user to change the transparency of the form at runtime like you can do in VCL with alphablend. This post: AlphaBlend in FireMonkey says the following: To make your form background semitransparent you should set form Transparency property to true and use Fill.Color with alpha value like $AAFFFFFF(with Fill.Kind = bkSolid). in this case form border becomes invisible (at

How to index a created file in Android sdcard Delphi

喜你入骨 提交于 2019-12-13 03:15:49
问题 In my code I create a .TXT file and store it in the shared folder "Download" like this: procedure TF_start.Button2Click(Sender: TObject); var path_file output_text: string; begin path_file := TPath.Combine(System.IOUtils.TPath.GetSharedDownloadsPath, 'Folder_app'); output_text := 'test'; if not TDirectory.Exists(path_file) then TDirectory.CreateDirectory(path_file); try TFile.WriteAllText(TPath.Combine(path_file, Nome_Arquivo), Arquivo_saida); except ShowMessage('An error occurred while

Hide empty space behind invisible list box items

人盡茶涼 提交于 2019-12-13 02:39:36
问题 I can see other people have had this issue, and the proposed solution is not working for me. I have a list box with a number of static items populated in design-time, and in run-time, some list box items have their visibility changed. However, those items which are not visible leave an empty space in the list box where that item belongs. It's proposed to set the invisible item height to 0, and it's apparently worked for people, but it's not working for me. This is a common function I wrote to

Is it possible to read the notifications of other applications on android with delphi?

丶灬走出姿态 提交于 2019-12-13 02:33:53
问题 I'm trying to read notifications from other applications on an application made in Rad Studio XE7 for android. Looking up, I saw that in java, you can access the NotificationListenerService, but not if with delphi could access this service. Can it be done? 回答1: You can read the notifications of other Apps with the use of the NotificationListenerService , and here is how Step 1 : Getting everything ready In your project folder create a folder called Java Now inside that folder create a folder

Font Color on a StringGrid with firemonkey

爱⌒轻易说出口 提交于 2019-12-13 02:14:17
问题 I'm changing the background color based on the data but it makes my text hard to read so I need to change the font color (to white if I have a darker color) but I can't find a way to do it, I'm using Delphi XE8. if not (isSelected) then begin case StrToInt((Sender as TStringGrid).Cells[0, Row]) of 0: begin //TTextCell(CellCtrl).StyledSettings := []; TTextCell(CellCtrl).FontColor := Cores[3 - auxCor - 1]; RowColor.Color := Cores[auxCor-1]; end; 1: begin //TTextCell(CellCtrl).StyledSettings :=

Accessing Photo File

丶灬走出姿态 提交于 2019-12-13 02:05:07
问题 I use the standard TTakePhotoFromCameraAction in my application in order to take a photo. What I would like to do, is when the user closes the application and then open it again, the last taken photo to be uploaded. I know how to use SharedPreference in delphi, but I don't know what is the filename & path of the photo it self! Any clues? 回答1: The TTakePhotoFromCameraAction.OnDidFinishTaking event gives you a Bitmap of the taken photo. It is then your responsibility to save it where and how

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

Minimize form in Firemonkey application

拥有回忆 提交于 2019-12-12 20:25:51
问题 I use this: Application.Minimize; in Vcl delphi application, but in Firemonkey I've got Undeclared identifire error. How can I minimize my firemonkey form? 回答1: Try using the WindowState property like so WindowState := TWindowState.wsMinimized; 来源: https://stackoverflow.com/questions/15198531/minimize-form-in-firemonkey-application