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
9
votes
2 answers

How to adjust button size to fit the text in Delphi FireMonkey?

I want button size (width and height) to be as small as possible, but I want it to fit the text. Any code example? Delphi XE4 FireMonkey Mobile Application.
Edijs Kolesnikovičs
  • 1,627
  • 3
  • 18
  • 34
9
votes
3 answers

Can an array be too big?

Currently I have a TCube array CreateCube : array[1..1000] of tcube; Currently using them as a map so you might have 30 cubes wide, 20 cubes high, thus making a big grid. But 1000 cubes is not really enough for what I need, I need more like…
Glen Morse
  • 2,437
  • 8
  • 51
  • 102
9
votes
2 answers

Coloring cell background on firemonkey stringgrid according to value from data

It may be basic but I'm have a ** of a time finding sample code to change a row color of a stringgrid based on a value from a database in Firemonkey. I have data coming from a MDB no problems but need the row to be certain colors for ie '1' = red…
9
votes
1 answer

Conditionally compile units for FMX or VCL

I want to have a different list of units in the uses clause depending on compiling for FMX or VCL. In the code below I try to test FireMonkeyVersion which works in an FMX project (label1.Text is 'FMX'). When I move the $IF statement into the uses…
Arnold
  • 4,578
  • 6
  • 52
  • 91
9
votes
1 answer

FireMonkey Performance Issues

I am using Delphi XE2 with update 4 hotfix 1 My default FMX app is stating very slow and on event it is freezing for a while. Eg: when i click on a button, the whole application freezes for some seconds(but only for the first execution of that…
Vibeeshan Mahadeva
  • 7,147
  • 8
  • 52
  • 102
8
votes
1 answer

How to draw thousands of Sprites with different transparency?

Hi I'm using Firemonkey because of it's cross platform capabilities. I want to render a particle system. Now I'm using a TMesh which works well enough to display the particles fast. Each particle is represented in the mesh via a two textured…
Steffen Binas
  • 1,463
  • 20
  • 30
8
votes
3 answers

Animating the addition of a string to a ListBox in FireMonkey

The following code nicely animates adding a new string to the end of a ListBox procedure TForm6.AddItem(s: string); var l : TListBoxItem; OldHeight : Single; begin l := TListBoxItem.Create(Self); l.Text := s; OldHeight := l.Height; …
Alister
  • 6,527
  • 4
  • 46
  • 70
8
votes
1 answer

How do I access the compass in iOS?

How do I access the iphone compass in Firemonkey?
Johan
  • 74,508
  • 24
  • 191
  • 319
8
votes
2 answers

Correct way to create styles for custom components

I sort of asked this question at the end of another post but feel this topic needs a question of its own... If I have created my own component with its own .style what is the correct procedure to merge that with the defined styles supplied with…
Martin
  • 815
  • 8
  • 21
8
votes
4 answers

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

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…
Jeff
  • 12,085
  • 12
  • 82
  • 152
8
votes
3 answers

How does copy, cut and paste work in a FireMonkey - HD Form designer

I am trying to write my first firemonkey - HD application Create an firemonkey - HD application On the form put a TLabel and change its Name. Select the TLabel In the Drop Down Menu select Edit Why are all the editing options disabled ? OR In…
Charles Faiga
  • 11,665
  • 25
  • 102
  • 139
8
votes
1 answer

What is a good way to compare 2 interfaces (IControl)? Is this a bug in Delphi?

In the source code of Delphi, I see this in the FMX.Forms unit: procedure TCommonCustomForm.SetHovered(const Value: IControl); begin if (Value <> FHovered) then begin .... end; end; I think doing Value <> FHovered is fundamentally wrong…
zeus
  • 12,173
  • 9
  • 63
  • 184
8
votes
4 answers

How feature 'rich' is the FireMonkey framework

I have typical rich gui fat clients and am considering moving to lighter html displaying clients using embedded chrome, but now FireMonkey looks potentialy interesting too. The 2d/3d transformations are nice, but I'm writing typical bussiness apps,…
user219760
8
votes
1 answer

How can I display FireMonkey modal form from a DLL?

I would like to load a DLL (from an VCL application but that should't be important [that is not true as both VCL and FMX contain a message loop]) and display a FireMonkey modal form created in that DLL. Showing the form works OK but I have problems…
gabr
  • 26,580
  • 9
  • 75
  • 141
8
votes
1 answer

Is their any rules to setup to size of icons/fonts/etc.. according to the size of the screen

When i do an app on smartphone, i define (for exemple) an icon of 20px*20px. This icon look great on my mobile screen, but not on tablet with big screen (like ipad pro). in this case the icon look very little. If i proportionaly increase the size…
zeus
  • 12,173
  • 9
  • 63
  • 184