firemonkey

Incorrect selection of items in an FMX TListbox (Grid Metropolis UI)

情到浓时终转凉″ 提交于 2019-12-20 03:05:12
问题 I have met an issue of unproper selection of items in TListBox in my application with a HorzScrollBox in the form. The form has two (or more) TListBox on it. They are placed away from each other so that their absolute left coordinates difference is more than the width of the current device screen width. The error appears in the following sequence of user actions. An item is selected from the left TListBox The HorzScrollBox is scrolled to the right and the second TListBox becomes visible to

Incorrect selection of items in an FMX TListbox (Grid Metropolis UI)

江枫思渺然 提交于 2019-12-20 03:05:02
问题 I have met an issue of unproper selection of items in TListBox in my application with a HorzScrollBox in the form. The form has two (or more) TListBox on it. They are placed away from each other so that their absolute left coordinates difference is more than the width of the current device screen width. The error appears in the following sequence of user actions. An item is selected from the left TListBox The HorzScrollBox is scrolled to the right and the second TListBox becomes visible to

How to use animated gif in Firemonkey?

邮差的信 提交于 2019-12-20 02:35:35
问题 How can I use animated GIF in Firemonky. I can load the gif using Timage but it's not animating. I am using Delphi 10.2 tokyo. 回答1: Use TBitmapListAnimation. Place TImage on Form Place TBitmapListAnimation into TImage like on screenshot: Set properties in TBitmapListAnimation AnimationBitmap - You can use online convertorsm that split gif into frames. http://ezgif.com/split http://www.photojoiner.net/merge-photos/editor/# Set another properties: AnimationCount = 8, AnimationRowCount = 1,

Validating XML files against XSD in FireMonkey

本秂侑毒 提交于 2019-12-19 19:52:20
问题 I am developing a cross-platform application (for Windows, Mac etc.) and for 32-bit and 64-bit machines. I have lots of XML files which I need to validate against their XSD . Is there any way of doing this in Delphi XE3? I have tried DTD validation but I'm always getting a "DTD prohibited" error. I have also tried solutions mentioned on lots of websites to resolve this error, but I've had no success. Thanks in advance. Below is the code I've used... function TForm2.ValidateXML(const xmlFile :

How to make a single component support both VCL and FMX?

隐身守侯 提交于 2019-12-19 15:44:08
问题 I have a TComponent which controls some of the UI. This component is designed to support both VCL and Firemonkey by using conditionals. Such conditionals instruct my component whether to accept a VCL control or an FMX control. It's currently expected that this conditional is defined on the application level to instruct the component in run-time whether it's to manage a VCL or FMX control. I'd like to publish my component into the IDE with support for both VCL and FMX, sharing the same unit

How to make a single component support both VCL and FMX?

瘦欲@ 提交于 2019-12-19 15:43:00
问题 I have a TComponent which controls some of the UI. This component is designed to support both VCL and Firemonkey by using conditionals. Such conditionals instruct my component whether to accept a VCL control or an FMX control. It's currently expected that this conditional is defined on the application level to instruct the component in run-time whether it's to manage a VCL or FMX control. I'd like to publish my component into the IDE with support for both VCL and FMX, sharing the same unit

How to programmatically alter Font properties in Firemonkey controls

旧街凉风 提交于 2019-12-19 11:29:52
问题 I have some code that paints a set of controls laid on top of a TImage. I then grab the TImage's MakeScreenshot to save out the file. This now works perfectly. What I am now struggling with is changing the font properties of one or more labels / text style controls. No matter what I try, the label does not change. Below is my sample code :- procedure TfrmSnapshot.Process; var LRect1, LRect2, LRect3, LRect4: TRectF; X, Y, W, H: Integer; begin // X := Round(Label1.Position.X); Y := Round(Label1

C++ Builder bccarm error when calling std::vector::push_back with TObject descendant

喜欢而已 提交于 2019-12-19 11:15:11
问题 I have some simple C++ code which won't be compiled by the Clang based C++11 compiler bccaarm of C++ Builder 10.1 Berlin. This is the code: TComponent* Comp = new TComponent(this); std::vector<TComponent*> Comps; Comps.push_back(Comp); And this is the error: [bccaarm error] stl_iterator.h(963): rvalue reference to type 'value_type' (aka 'System: classes::TComponent * __strong') can not be bound to lvalue of type '__borland_class * isTObj __strong' (aka 'System::Classes::TComponent * __strong'

opening the image with the external gallery using delphi

邮差的信 提交于 2019-12-19 10:47:48
问题 I have created Android app using Delphi 10 Seattle. I have stored the image path and from there I need to open the image in the native Android Gallery. How can I implement this functionality? 回答1: The Java equivalent of what you're trying to do, looks like this (based on open-an-image-using-uri-in-androids-default-gallery-image-viwer) Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://" + "/sdcard/test.jpg"), "image/*"); startActivity

Does Delphi XE2 FireMonkey support Indy for cross-platform apps?

徘徊边缘 提交于 2019-12-19 06:05:24
问题 Looking at the new Delphi XE2 with Firemonkey. Considering that it compiles for Windows, Mac OSX and iOS, VCL components are useless in a FireMonkey application. My question is: Is there/will there be an Indy Firemonkey Edition? Cause I seriously need the IdHTTP.Post(); . If not, is there a way to do this in FireMonkey? I have been googling for quite awhile now, not finding anything. :S 回答1: VCL means Visual Component Library . There's nothing about Indy that is "visual" (meaning "seen at