firemonkey

Detect when Delphi FMX ListBox is scrolled to the bottom?

坚强是说给别人听的谎言 提交于 2020-06-08 13:16:33
问题 I need to detect when the user has scrolled down to the bottom in a ListBox , so that I can fetch the next 25 items to show in the listBox, Any Tip? 回答1: Okay so let us break this down, first we go to ScrollToItem in FMX.ListBox unit procedure TCustomListBox.ScrollToItem(const Item: TListBoxItem); begin if (Item <> nil) and (Content <> nil) and (ContentLayout <> nil) then begin if VScrollBar <> nil then begin if Content.Position.Y + Item.Position.Y + Item.Margins.Top + Item.Margins.Bottom +

What the purpose of the System.StartUpCopy included in all firemonkey project?

人走茶凉 提交于 2020-05-29 09:41:36
问题 When I create a new mobile app with Delphi, I have this dpr source: program Project1; uses System.StartUpCopy, FMX.Forms, Unit1 in 'Unit1.pas' {Form1}; {$R *.res} begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end. I do not understand, what the purpose of the System.StartUpCopy in the use? With System.StartUpCopy.pas, on ios, it's look like the app will copy file from /private/var/containers/Bundle/Application/2BE5407C-4DD9-5A08-110F-C12510C42BF3/myapp

Setting Firemonkey control font programmatically in C++

别来无恙 提交于 2020-05-18 02:35:24
问题 I have a custom Firemonkey control that extends TEdit which is dynamically created on a form. I am attempting to set it's font size when it is created using: Search->Font->Size = 15; However, the font remains unchanged on the control. I have another control of the same type that is already on the form which I can change the font size programmatically. I noticed with this control, that if the Size setting is set to false in the StyledSettings properties I can change the font, whereas if the

Setting Firemonkey control font programmatically in C++

随声附和 提交于 2020-05-18 02:35:09
问题 I have a custom Firemonkey control that extends TEdit which is dynamically created on a form. I am attempting to set it's font size when it is created using: Search->Font->Size = 15; However, the font remains unchanged on the control. I have another control of the same type that is already on the form which I can change the font size programmatically. I noticed with this control, that if the Size setting is set to false in the StyledSettings properties I can change the font, whereas if the

FireMonkey tRectangle with tLabel child

最后都变了- 提交于 2020-04-30 11:12:27
问题 I am coding a custom control based on tRectangle : tMyRect = class (tRectangle) On the tMyRect Constructor , I create a tLabel : fRectLabel := tLabel.Create (Self); and then set some properties for it. At runtime, the tLabel is not showed according to the properties settings, neither responds to the speedkey. Follows the complete code: unit frmMyRect; interface uses FMX.Controls, FMX.Controls.Presentation, FMX.Forms, FMX.Layouts, FMX.Objects, FMXFMX.StdCtrls, FMX.Types,System.Classes, System

Connect via Bluetooth with Delphi XE7 using portable printer

戏子无情 提交于 2020-03-17 06:51:46
问题 I'm trying to communicate with a Sewoo LK-P32 printer via Bluetooth. For this, I am using Delphi XE7 . I made a few examples that come with Delphi and am not having success. I put the paired printer on tablet and even then I am not able to print continuously. When I print something have to restart the application, so I can print something again. Below my sources. Could someone help me? Support on this issue? My time is short to try other technologies. Method that initiates communication with

Callback from Firemonkey WebBrowser JavaScript code

我怕爱的太早我们不能终老 提交于 2020-02-07 06:44:20
问题 How to make call of Firemonkey code (callback) from JavaScript code in TTMSFMXWebBrowser? I can perform JavaScript code from Firemonkey, but how I can make a callback or call Firemonkey code/event from JavaScript? Is it possible? 回答1: So in the URL you can pass a custom string or whatever data like this: myurl://dostuff?a=b&c=d if (Copy(S, 1, 8)='myurl://') then begin // now you know it is a callback and not a real URL // if it is a callback you can cancel the load using the below code // and

Callback from Firemonkey WebBrowser JavaScript code

南楼画角 提交于 2020-02-07 06:42:17
问题 How to make call of Firemonkey code (callback) from JavaScript code in TTMSFMXWebBrowser? I can perform JavaScript code from Firemonkey, but how I can make a callback or call Firemonkey code/event from JavaScript? Is it possible? 回答1: So in the URL you can pass a custom string or whatever data like this: myurl://dostuff?a=b&c=d if (Copy(S, 1, 8)='myurl://') then begin // now you know it is a callback and not a real URL // if it is a callback you can cancel the load using the below code // and

Callback from Firemonkey WebBrowser JavaScript code

妖精的绣舞 提交于 2020-02-07 06:42:08
问题 How to make call of Firemonkey code (callback) from JavaScript code in TTMSFMXWebBrowser? I can perform JavaScript code from Firemonkey, but how I can make a callback or call Firemonkey code/event from JavaScript? Is it possible? 回答1: So in the URL you can pass a custom string or whatever data like this: myurl://dostuff?a=b&c=d if (Copy(S, 1, 8)='myurl://') then begin // now you know it is a callback and not a real URL // if it is a callback you can cancel the load using the below code // and

Firemonkey TCameraComponent quality change when reactivated

和自甴很熟 提交于 2020-02-02 13:19:53
问题 I'm building a barcode reader application in Delphi 10.1 Berlin with firemonkey for Android. Based on the CameraComponent sample and using the ZXing library, it was possible to read the barcode. To initialize the camera, I'm using this code: procedure TfrmMain.btnOpenReaderClick(Sender: TObject); begin CameraComponent.Active := False; CameraComponent.FocusMode := FMX.Media.TFocusMode.ContinuousAutoFocus; CameraComponent.Quality := TVideoCaptureQuality.MediumQuality; CameraComponent.Active :=