firemonkey

How to take a screenshot with FireMonkey (multi-platforms)

别等时光非礼了梦想. 提交于 2019-12-01 04:34:53
I haven't find a function to get a screenshot in FMX.Platform (anyway, nowhere else...). With the VCL, there are many answers (stackoverflow, google, ...). But how to get a screenshot in an image(bitmap or whatever) for Windows and Mac OS X? Regards, W. Update: The link from Tipiweb gives a good solution for OS X. Regarding the Windows part: I have coded this, but I don't like to use the VCL, and a Stream to achieve it... Any better suggestion, comments? Thanks. W. uses ..., FMX.Types, Winapi.Windows, Vcl.Graphics; ... function DesktopLeft: Integer; begin Result := GetSystemMetrics(SM

FireMonkey/Rad Studio XE2: How can I show the SaveDialog filter on OS X?

倖福魔咒の 提交于 2019-12-01 04:13:21
I created an (Delphi XE2) Firemonkey sample program which contains a TButton and a TSavedialog with two different filters. (The TSaveDialog component supports the Win32/Win64 and OS X platform.) It works fine on Win32/Win64, but I don't now why it does not show the Savedialog filters on OS X (VirtualBox/OS X 10.7.x). How can I get it to work on OS X ? procedure TForm1.Button_SaveClick(Sender: TObject); begin SaveDialog.Filter:='Format_1 (*.fmt1)|*.fmt1|Format_2 (*.fmt2)|*.fmt2'; If Savedialog.Execute Then ShowMessage(SaveDialog.FileName+#13+'Selected filterindex: '+Inttostr(SaveDialog

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

怎甘沉沦 提交于 2019-12-01 03:56:37
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 VCL means Visual Component Library . There's nothing about Indy that is "visual" (meaning "seen at runtime"), meaning that "VCL components are useless in a FireMonkey application" has no relevance to Indy . You

Bidi Right to Left Language in Firemonkey Mobile

送分小仙女□ 提交于 2019-12-01 03:51:25
How can show any string in right to left languages such as Persian or Arabic in Android or iOS with FireMonkey? I Use Embarcadero Rad Studio XE6 (Delphi) and when I put a TLabel or TEdit and set its text to "سلام" (Hello in Persian) everything is OK in Windows and Mac but in Mobile platform that is wrong display, in Android shows "م ا ل س" and in iOS does not show anything but space. The problem still exists in Delphi XE7. As per LURD's suggestions. Download and use D.P.F Delphi Android Native Components and/or D.P.F Delphi iOS Native Components . That will fix the problem in XE7 and prior.

Firemonkey and large amounts of data

徘徊边缘 提交于 2019-12-01 03:02:36
I just had a look at Firemonkey's grid implementation and it turns out that it is a very simple implementation (only 1800 lines which seems not much for a grid implementation). It does almost no custom painting but does instead aggregate a lot of other controls - which seems to be the Firemonkey style of doing things. For example, each column keeps an array of controls - one for each cell. For a normal text column with 1,000,000 rows, the grid would keep 1,000,000 edit controls in memory - which seems a little crazy to me. ( EDIT: not so sure now if that assumption is right. It seems to take

How to get current modifier states with FireMonkey on OSX?

我是研究僧i 提交于 2019-12-01 03:01:34
问题 With Delphi for Windows, I usually use this code: function isCtrlDown : Boolean; var ksCurrent : TKeyboardState; begin GetKeyboardState(ksCurrent); Result := ((ksCurrent[VK_CONTROL] and 128) <> 0); end; How can I achieve this with FireMonkey on Mac OSX? I have found this, but I don't know how to manage it with FireMonkey/Delphi (which uses, ...): void PlatformKeyboardEvent::getCurrentModifierState(bool& shiftKey, bool& ctrlKey, bool& altKey, bool& metaKey) { UInt32 currentModifiers =

How to take a screenshot with FireMonkey (multi-platforms)

南笙酒味 提交于 2019-12-01 02:54:10
问题 I haven't find a function to get a screenshot in FMX.Platform (anyway, nowhere else...). With the VCL, there are many answers (stackoverflow, google, ...). But how to get a screenshot in an image(bitmap or whatever) for Windows and Mac OS X? Regards, W. Update: The link from Tipiweb gives a good solution for OS X. Regarding the Windows part: I have coded this, but I don't like to use the VCL, and a Stream to achieve it... Any better suggestion, comments? Thanks. W. uses ..., FMX.Types, Winapi

Minimum requirements to deploy FireMonkey on Windows

假装没事ソ 提交于 2019-12-01 02:51:18
问题 What are the minimum requirements for a Windows machine to run an application developed in FireMonkey? Can it run any machine that can run a VCL applications? Specifically can it run on XP? 回答1: From the documentation Windows Requirements The GPU must support Pixel Shader 2.0, part of DirectX 9.0, which first appeared from various vendors in these products: ATI (now AMD) Radeon 9500-X600 series, introduced in 2002. Intel GMA 900, introduced in 2004. NVIDIA GeForce FX (or GeForce 5) series,

Cleartype font / text rendering in Firemonkey

岁酱吖の 提交于 2019-12-01 02:45:18
问题 Here is a sample VCL application containing just a TEdit control. If you compile a similar Firemonkey (FMX) application you will notice this: (The small L letter is jumping around like crazy) On my research i found this G+ post which results in: As you can see the result is better. The jumping is gone. However the TCircle isn't rendered very nicely. After some more research i found out that using initialization GlobalUseDX := False; has a better output: Occasionally there is still some

Bidi Right to Left Language in Firemonkey Mobile

帅比萌擦擦* 提交于 2019-12-01 01:40:14
问题 How can show any string in right to left languages such as Persian or Arabic in Android or iOS with FireMonkey? I Use Embarcadero Rad Studio XE6 (Delphi) and when I put a TLabel or TEdit and set its text to "سلام" (Hello in Persian) everything is OK in Windows and Mac but in Mobile platform that is wrong display, in Android shows "م ا ل س" and in iOS does not show anything but space. The problem still exists in Delphi XE7. 回答1: As per LURD's suggestions. Download and use D.P.F Delphi Android