firemonkey

Why am I getting “Connection reset by peer” with Indy only on a HTTPS (SSL) site?

自古美人都是妖i 提交于 2019-12-01 10:32:46
问题 I am trying to use Indy HTTP (Delphi Seattle) to get the contents of a https webpage and I always seem to get Error 10054 - Connection reset by peer. Other sites seem to work just fine. The website in cause is https://www.adultwork.com . I have added the SSL, Cookie and Compressor components, but maybe I'm missing something, some settings, IDK... If anybody could help, it would be greatly appreciated. 回答1: I was able to reproduce the issue, and it is due to Indy's TIdIOHandlerSocketOpenSSL

how to show the availble files in Android memory with Firemonkey

流过昼夜 提交于 2019-12-01 09:50:53
In Delphi for Windows one has the TOpenDialog and the commands such as FindFirst . In Firemonky/Android there is no TOpenDialog , but according to many forums FindFirst` should exist. However there are more who have problems with it, but no solution: In Windows the following functions properly: var iResult,n:integer; Filenaam,s:string; sr: TSearchRec; begin with form1 do begin L_toonactie.Text:='start file list'; M_filelist.lines.Clear; Filenaam:= System.IOUtils.tpath.GetDocumentsPath+'\assets\internal\'+'*.*'; iResult:=FindFirst(Filenaam,faAnyFile,sr); str(iresult,s);L_toonactie.Text:=

Missing .bpl files

血红的双手。 提交于 2019-12-01 09:47:21
问题 After compiling a FireMonkey project and executing the app on another PC I've encountered an error - "rtl190.bpl is missing". So I searched google and I found the "solution" which didn't work for me. It said that I should uncheck "Link with Dynamic RTL" and "Link with Delphi runtime...". Indeed after compiling, the executable is bigger, but still I'm encountering the exact same error. I must copy "rtl190.bpl" and "fmx190.bpl" manually to exe's directory in order to make it work. How can I fix

Create run time TTabItem , firemonkey

☆樱花仙子☆ 提交于 2019-12-01 08:54:34
问题 Seems like i need some help with a project. I have a routine , that constructs run time multiple TabItems on to a page control in firemonkey, and i want to have a close button on the tab. The new tab has a checkbox for the close button loading from the styler of the tabitems. The page has a default tab, and within some button, i am adding run time the new tab items. I have managed to apply the event for closing the default tab page, but doesn't work within the run time created tab pages. Any

TFileOpenDialog in FireMonkey Application

百般思念 提交于 2019-12-01 06:44:46
I'm using FireMonkey and want the user to select a directory using the interface supplied by a TFileOpenDialog (I find the SelectDirectory interface outdated at best - yes, even with the sdNewUI option). Firstly, Is it bad practice to include the VCL.Dialogs unit (to use a TFileOpenDialog) in a FireMonkey application? Secondly, this is still only possible with Windows Vista and above. Is this the correct way to check for a compatible Windows versions? {IFDEF WIN32 or WIN64} if Win32MajorVersion >= 6 then // Create TOpenFileDialog with fdoPickFolders option For future reference, use of

How to get current modifier states with FireMonkey on OSX?

纵饮孤独 提交于 2019-12-01 06:30:59
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 = GetCurrentKeyModifiers(); shiftKey = currentModifiers & ::shiftKey; ctrlKey = currentModifiers & ::controlKey;

Allowing keyboard input to a FireMonkey TEdit nested inside a FireMonkey TPopup

流过昼夜 提交于 2019-12-01 06:20:28
问题 I'm struggling to get a FireMonkey TEdit nested inside a FireMonkey TPopup to receive keyboard input. Happens both for desktop and mobile projects, though it's the latter I'm interested in: Create a new FMX project. Add a TButton and a TPopup to the form, and a TEdit to the TPopup . Set the popup's Placement property to plCenter and its PlacementTarget to Button1 . Handle the button's OnClick event by setting the popup's IsOpen property to True . Run the project, click/tap the button, and try

Animated GIF in Firemonkey

风流意气都作罢 提交于 2019-12-01 05:29:23
问题 I'm trying to display an animated GIF in a Firemonkey HD form using TImage but I do not see any methods for animation. Using Vcl.Imaging.gifImg is not an option because types differ. Can someone suggest a way to solve this problem or probably component to animate GIF images under Firemonkey? The only way I find for now is: create TGIFImage instance and load the GIF image loop through gif.images: a. save current image to stream b. Image1.bitmap.loadFromStream [Image1 is FMX:TImage] Is there

Minimum requirements to deploy FireMonkey on Windows

喜你入骨 提交于 2019-12-01 05:19:07
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? 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, introduced in 2003. When run in a virtual machine, the host's GPU must be accessible. Such support is found in

TFileOpenDialog in FireMonkey Application

江枫思渺然 提交于 2019-12-01 04:54:31
问题 I'm using FireMonkey and want the user to select a directory using the interface supplied by a TFileOpenDialog (I find the SelectDirectory interface outdated at best - yes, even with the sdNewUI option). Firstly, Is it bad practice to include the VCL.Dialogs unit (to use a TFileOpenDialog) in a FireMonkey application? Secondly, this is still only possible with Windows Vista and above. Is this the correct way to check for a compatible Windows versions? {IFDEF WIN32 or WIN64} if