firemonkey

FireMonkey controls do not animate smoothly

て烟熏妆下的殇ゞ 提交于 2019-11-30 13:07:04
Background I've created a GUI using some FireMonkey controls. Some controls are animated and their appearance updates automatically. Some controls only update in response to user interaction (sliders etc). Problem Interaction with the user controls prevents updates to the animated controls, resulting in jerky discontinuous animation. Video of glitchy animation The animated control in the video above is driven by a TTimer component. The problem persists when using FireMonkey's animation components. Investigation The slider controls call Repaint() when adjusted. Smoothly adjusting a slider will

How to Get Images From Server using App Tethering

前提是你 提交于 2019-11-30 09:54:17
问题 I've 2 Apps Let's call Server And Client. I'm using Delphi-xe8. App ->Multi-Device Application In Both Side using: App tethering[tManager,tAProfile], SQLite Database. In Server SQLite Database I've 6 images. I would like to View that images In Client Side. In Client Side I've 6 [TImage]. When I Click Button 'Get Image List' I'm getting 6 images with the same view. I would like 6 images view differently.->[Get From Server Database] Client "Get Image List" button Code: procedure TForm1

Firemonkey: Adding a font from resource to memory and using it

我与影子孤独终老i 提交于 2019-11-30 09:10:31
In VCL , I could load a font from resource and without saving it I could use it from memory. Here is the code I use and it works in VCL : procedure TForm1.Button1Click(Sender: TObject); var ResStream : tResourceStream; FontsCount : DWORD; begin ResStream := tResourceStream.Create(hInstance, 'MyResourceName', RT_RCDATA); winapi.windows.AddFontMemResourceEx(ResStream.Memory, ResStream.Size, nil, @FontsCount); ResStream.Free(); button1.Font.name := 'MySavedFontNameInResource'; end; In Firemonkey I just changed button1.Font.name to button1.Font.family but unfortunately the font didn't change. So I

Delphi XE2: Is there a predefined conditional to identify VCL and FireMonkey?

时光毁灭记忆、已成空白 提交于 2019-11-30 08:48:07
In Delphi XE2, we have use {$ifdef Win32} {$ifdef Win64} to identify which platform we are in. Is there any predefined conditional that may identify VCL and FMX? As others says, there is not a conditional directive to determine if your application is VCL or FireMonkey. I think the most reliable way to determine if your app is FireMonkey or VCL is using a function instead of a conditional directive. Something like Uses Rtti; function IsVCLApp:Boolean; begin Result:= CompareText(TRttiContext.Create.GetType(TApplication.ClassInfo).QualifiedName,'Vcl.Forms.TApplication')=0; end; function

How to deploy a FireMonkey Application for Mac OSX?

自闭症网瘾萝莉.ら 提交于 2019-11-30 08:42:08
I can run a FireMonkey Application on Mac OSX with PAServer. But now, I would like to deploy the application Mac OS (something like MSI under Windows). How can I do this? You'll want to read more about Application Bundles . Using the application bundle that Delphi creates and deploys via PAServer Since you're using the PAServer, you'll find that it has already created an application bundle for you. After you run the program via the PAServer, look in the following folder on the Mac for the application bundle: /Users/[username]/Applications/Embarcadero/PAServer/scratch-dir/[profilename] If your

Android background service in Delphi XE5

会有一股神秘感。 提交于 2019-11-30 05:09:02
问题 I need to write some service for android, using delphi XE5 (firemonkey) . That service need to run in backgroung and periodically read sms inbox, writing it into sqllite DB (sms backup). I know how to read sms and how to write it to DB, but I have no idea how to make app work in background as service. Any ideas? P.S.: Thank you for your answers. P.P.S.: Sorry for my bad english. 回答1: You cannot do that with XE5 alone but you can do it with a little help from Java. Brian Long has published a

How embed a firemonkey form inside a control?

三世轮回 提交于 2019-11-29 21:17:58
问题 I have tried to embed a form inside a Scrollbox: procedure TfrmMain.FormCreate(Sender: TObject); var Control:TControlView; begin Control := TControlView.Create(Self); Control.BorderIcons := []; Control.parent := ListControls; Control.width := 800; ListControls.AddObject(Control); Control.Visible:= True; end; However the form is displayed behind tfrmMain and outside the bouns of the form. My idea is put a form inside a panel, and both inside scrollbox. Each form represent a complex item with

FireMonkey controls do not animate smoothly

主宰稳场 提交于 2019-11-29 18:49:14
问题 Background I've created a GUI using some FireMonkey controls. Some controls are animated and their appearance updates automatically. Some controls only update in response to user interaction (sliders etc). Problem Interaction with the user controls prevents updates to the animated controls, resulting in jerky discontinuous animation. Video of glitchy animation The animated control in the video above is driven by a TTimer component. The problem persists when using FireMonkey's animation

Using TBitmapLinks with the FireMonkey Style Designer

我是研究僧i 提交于 2019-11-29 18:29:34
问题 I have been styling FireMonkey controls, but there is one issue that I have been having some real issues with, and that is how to incorporate bitmaps into FireMonkey styles using the FireMonkey Style Designer (and specifically not the Bitmap Style Designer). Certain styled objects (TButtonStyleObject, for example), have BitmapLink properties, but I cannot see how they are working in the new custom styles that are generated for a FireMonkey control. Let me try to make the problem as

Is there a web browser component for use in FireMonkey application?

岁酱吖の 提交于 2019-11-29 18:28:42
问题 For Delphi VCL there is TWebBrowser and some 3rd party components like TEmbeddedWebBrowser available for browsing a web. Is there a similar web browser component but for Firemonkey framework in Delphi XE2 (ideally with Windows and Mac support) ? 回答1: You can use the ChromiumEmbedded package for Delphi. There's a TChromiumFMX component which is suited for FireMonkey applications. I've tested the demo project from the repository and it works fine for 32-bit Windows. However I can't tell you if