Questions tagged [firemonkey]

FireMonkey(tm) is the cross-platform GUI framework developed by Embarcadero Technologies, a part of Idera Inc. and is a part of the RAD Studio development tool.

FireMonkey is a cross-platform UI framework for Windows, Mac OS X, iOS and Android providing windows and controls on both 2D surfaces and 3D environments. It uses GPU-accelerated rendering, allowing smooth effects and animation to be applied to controls and other on-screen images, and is vector-based and skinnable, building its controls from a library of underlying primitives. Skins give close-to-native look and feel.

FireMonkey currently supports Mac OS X, Win 32bit & 64bit as well as iOS and Android.

3809 questions
8
votes
2 answers

How to get a token passed as header using datasnap?

In my client application I'm using the following code to add a token in the header: RESTRequest.Params.AddItem('Authorization', 'Bearer ' + MyToken, TRESTRequestParameterKind.pkHTTPHEADER, [TRESTRequestParameterOption.poDoNotEncode]); I'd like to…
Daniel Grillo
  • 2,368
  • 4
  • 37
  • 62
8
votes
1 answer

Painting issues with TScaledLayout & custom styles

I'm experiencing painting issues when combining TScaledLayout and custom styles created from the bitmap style designer in fmx. To demonstrate, I loaded the default custom style created by chosing "New style for VCL / FMX" -> "save as .style" in the…
DNR
  • 1,619
  • 2
  • 14
  • 22
8
votes
1 answer

Custom button inherited from TButton does not show

I am converting a large project to Firemonkey and we have some custom buttons, which does not show on the form. I have isolated the problem to a very simple project: With the code below, on both mobile and desktop (using default new applications in…
Hans
  • 2,220
  • 13
  • 33
8
votes
4 answers

Bidi Right to Left Language in Firemonkey Mobile

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…
Amin
  • 1,242
  • 2
  • 12
  • 25
8
votes
1 answer

Delphi FireMonkey store data inside application

I need to store some custom, static data inside my Delphi XE5 FireMonkey (Android) mobile application. I have seen a 'RC_DATA' solution on the web, but it is windows-specific. I need a cross-platform solution. Here is the RC_DATA solution I…
8
votes
4 answers

How to close android app in Delphi-XE5 Firemonkey application?

I have this piece of code procedure TFormMain.FormCloseQuery(Sender: TObject; var CanClose: Boolean); var msg: String; begin msg := 'Do you really want to exit?'; if MessageDlg(msg, TMsgDlgType.mtConfirmation, [TMsgDlgBtn.mbYes,…
Edijs Kolesnikovičs
  • 1,627
  • 3
  • 18
  • 34
8
votes
1 answer

Why are condensed fonts not displayed properly in FireMonkey?

(And what can I do about it?) If I create two labels in VCL and set one to use Arial and another Arial Narrow I'll see an expected result. If I do the same in Firemonkey, the second label is not displayed in Arial Narrow. It is even not displayed…
gabr
  • 26,580
  • 9
  • 75
  • 141
8
votes
1 answer

How to force Firemonkey to use a DirectX 9 context in Delphi XE3?

The main TForm3D window of Firemonkey application in Delphi X3 has a Context:TContext3D which gives me access to the current device used. In my case with Windows7 64, it always shows a TDX10Context object from FMX.Context.DX10.pas. I have not…
piXelicidio
  • 187
  • 9
8
votes
2 answers

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

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…
8
votes
3 answers

How to get the same MD5 with Delphi and PHP?

I'm using Delphi XE2 with FireMonkey. I have read many other questions about MD5 but didn't find an answer to the issue I have... I've also tested different scripts to generate a MD5 from Delphi: function MD5(const text: string) : string; var md5…
Whiler
  • 7,998
  • 4
  • 32
  • 56
8
votes
1 answer

How do you style the non-client area in a Firemonkey FM2 application in Delphi XE3

I previously asked this question in the Delphi XE2 timeframe, and the answer then was a pretty ugly hack. Now Delphi XE3 supports non-client theming, according to the official release notes. How do you do it in Delphi XE3 in Firemonkey FM2? I…
Warren P
  • 65,725
  • 40
  • 181
  • 316
8
votes
1 answer

Fluid/Dynamic layout in Firemonkey / Delphi

Let's say I want two shapes on a form sitting side by side taking up exactly 50% of the window each, which resize when the window is resized. How can I do that? What I really want is to set things up in ratios.. eg.. Have one of the above shapes…
NoPyGod
  • 4,905
  • 3
  • 44
  • 72
8
votes
2 answers

Parsing JSON into TListBox

Good evening guys! I'm currently trying to put together a CloudFlare client for the desktop. I've connected to their API and successfully retrieved the JSON results with a POST request (the results of which have been output into a TMemo). I'm now…
Scott P
  • 1,462
  • 1
  • 19
  • 31
8
votes
1 answer

How can I create multiple radio button groups on a single form?

With VCL, we had a TRadioGroup class with an Items property you could modify at design time. With Firemonkey, we only have the TRadioButton class. From what I understand, if you add objects of type TRadioButton as children to other container…
ardnew
  • 2,028
  • 20
  • 29
7
votes
2 answers

Firemonkey Grid Control - Styling a Cell based on a value (via the OnGetValue function call)

I am looking for recommended solution to style a TGrid cell that is being drawn by the OnGetValue call (that is called to paint the cells in view). For background, an excellent response by Mike, showed how to simply apply a tAlign property when the…
Ian
  • 147
  • 1
  • 3
  • 8