firemonkey

How to create gradient button for mobile using Delphi XE7?

空扰寡人 提交于 2020-01-17 08:16:13
问题 I'm using Delphi XE7 for creating Android / iOS mobile application And how can I create the gradient button (Sample Gradient button)using FireMonkey Mobile application. Or should I need to use Style Book for applying the Gradient Colour in the Buttons? 回答1: There's nothing wrong with the tutorial you posted. With Firemonkey everything (visually) is composed of primitive shapes and animations, so using the skills learned in that post, you could create your buttons in gimp, then create a style

Minimum requirements to deploy FireMonkey on Windows

时间秒杀一切 提交于 2020-01-16 19:41:10
问题 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,

Delphi - Using TEdit.tagObject to point to another object

落爺英雄遲暮 提交于 2020-01-16 16:07:46
问题 I am using a descendant of TEdit and using TagObject to store an object. I'm using Firemonkey. In short, I am working with another object and want to assign a property of that object to my TMyEdit, so that whenever I load the object, the text gets updated, and when I change the text, the object gets updated. So I do it like this: Edit1 : TMyEdit; MyElement:TMyProperty; ... Edit1.TagObject:=TMyTextProperty(MyElement); (The typecast is necessary for other reasons. I mention it just in case it

Capturing signature very sketchy on touch screen

雨燕双飞 提交于 2020-01-15 07:17:23
问题 I followed a tutorial for capturing signatures in Firemonkey, and made some major modifications (essentially a re-write) to encapsulate it inside of a custom control. I've written plenty controls in VCL, but this is my first for FMX. When using this with a mouse (Windows or OS X), it works perfectly. However, when using a touch screen (iOS), it becomes extremely sketchy. Specifically, it keeps capturing a mouse up event (or in this context, "pen up"). So a straight line becomes actually a

XE7 update 1 and iOS 8.1 simulator does not work

烂漫一生 提交于 2020-01-14 18:45:40
问题 With target set to iOS 8.1 Simulator in Delphi XE7, the application crashes. It deploys fine, it also runs, but the firemonkey splash screen remains on and never finishes loading. This happens with a plain new mobile application, only adding one "hello world" TLabel to the form. This began to happen after I upgraded from XE6 to XE7 update 1, and at the same time upgraded XCode 5 to 6.1 (stupid to make do two major upgrades at the same time, because then I don't know which one caused the

How to get the name of the current user in delphi?

落花浮王杯 提交于 2020-01-14 10:42:33
问题 Hi there i am using delphi FM2 with XE3 in windows 8. The problem im having is that i want the user to press a button and then navigate to a subfolder located in appdata ex. C:\Users\Kobus\AppData\Roaming.minecraft Everybody has a diferant username so this wont work. So i use this code to get the username: function GetCurrentUserName : string; const cnMaxUserNameLen = 254; var sUserName : string; dwUserNameLen : DWord; begin dwUserNameLen := cnMaxUserNameLen-1; SetLength( sUserName,

How to get the name of the current user in delphi?

非 Y 不嫁゛ 提交于 2020-01-14 10:42:11
问题 Hi there i am using delphi FM2 with XE3 in windows 8. The problem im having is that i want the user to press a button and then navigate to a subfolder located in appdata ex. C:\Users\Kobus\AppData\Roaming.minecraft Everybody has a diferant username so this wont work. So i use this code to get the username: function GetCurrentUserName : string; const cnMaxUserNameLen = 254; var sUserName : string; dwUserNameLen : DWord; begin dwUserNameLen := cnMaxUserNameLen-1; SetLength( sUserName,

how get file properties with Firemonkey

≡放荡痞女 提交于 2020-01-14 05:45:05
问题 Using the GetFiles method of the TDirectory class (reference here) I can list files in my apps documents folder with the C++ Builder code below (works on mobile and desktop). Now, how can I also get details about the files such as size, date etc.? TStringDynArray list; TSearchOption searchOption; UnicodeString DocsPath; int lenDocsFolder; DocsPath = System::Ioutils::TPath::GetDocumentsPath(); lenDocsFolder = DocsPath.Length(); searchOption = TSearchOption::soTopDirectoryOnly; try { /* For

Why the exception is not caught by the try… except end;?

狂风中的少年 提交于 2020-01-12 12:50:30
问题 I have this code (that runs under iOS with Delphi Tokyo): procedure TMainForm.Button1Click(Sender: TObject); var aData: NSData; begin try try aData := nil; finally // this line triggers an exception aData.release; end; except on E: Exception do begin exit; end; end; end; Normally the exception should be caught in the except end block, but in this case it is not caught by the handler and it is propagated to the Application.OnException handler. Access violation at address 0000000100EE9A8C,

Why the exception is not caught by the try… except end;?

社会主义新天地 提交于 2020-01-12 12:50:11
问题 I have this code (that runs under iOS with Delphi Tokyo): procedure TMainForm.Button1Click(Sender: TObject); var aData: NSData; begin try try aData := nil; finally // this line triggers an exception aData.release; end; except on E: Exception do begin exit; end; end; end; Normally the exception should be caught in the except end block, but in this case it is not caught by the handler and it is propagated to the Application.OnException handler. Access violation at address 0000000100EE9A8C,