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
5
votes
1 answer

Mixing Atomic operation with non atomic operation

In the delphi source code we have : class function TNetEncoding.GetBase64Encoding: TNetEncoding; var LEncoding: TBase64Encoding; begin if FBase64Encoding = nil then begin LEncoding := TBase64Encoding.Create; if…
zeus
  • 12,173
  • 9
  • 63
  • 184
5
votes
1 answer

How to access nested style control

I have custom styled FireMonkey control. Its style contains several levels of nested controls. I need to access those controls and change some style properties at run-time. To do that I am using FindStyleResource method. I have no problem in…
Dalija Prasnikar
  • 27,212
  • 44
  • 82
  • 159
5
votes
0 answers

BeginUpdate/Endupdate block with add or remove of child objects : misconception in delphi?

This question follow this one: Why this change in tokyo 10.2.3? and introduce what i think is a misconception in delphi Basically in firemonkey you have the methods BeginUpdate and EndUpdate that permit you to deactivate/activate the realign of a…
zeus
  • 12,173
  • 9
  • 63
  • 184
5
votes
2 answers

Delphi cannot remove children from VertScrollBox

I have a TVertScrollBox control with a TRectangle inside. When I click a button I take that rectangle and I copy it 20 times inside the scroll box. // var Rectangle: TRectangle; VertScrollBox.BeginUpdate; for i := 0 to 19 do begin //Copy the…
Raffaele Rossi
  • 2,997
  • 4
  • 31
  • 62
5
votes
1 answer

How to get the ID of the last record inserted in SQLite with Delphi 10?

Delphi 10 with Firemonkey and SQLite: After running the code below I want to get the ID of the last record inserted into an SQLite table. How do I get the last ID? NOTE: The ID field of Table 1 is autoincrement. var myQr: TFDQuery; begin myQr…
Zayn Barcktu
  • 65
  • 1
  • 5
5
votes
2 answers

How to make a rounded button in FireMonkey?

I'm developing Delphi Firemonkey mobile application. I want to make a rounded button in Firemonkey. How can i do this without using 3rd party components?
Kasparov
  • 79
  • 1
  • 8
5
votes
2 answers

What is the difference between TImage, TImageViewer, TImageControl?

Looked in the delphi help and could not find out when one should use each component over the other... I am wondering what the differences are between these very similar controls: TImage, TImageViewer, and TImageControl. I am interested in displaying…
Programmz
  • 149
  • 5
5
votes
2 answers

ComboBox OnChange event occurs when changing the ItemIndex property in code

I'm using FMX on Delphi 10.1 Berlin. I read this (which is the behavior I want): https://stackoverflow.com/a/42933567/1343976 Changing ItemIndex programmatically does not result in the OnChange event being fired. It fires only in response to user…
orsomannaro
  • 51
  • 1
  • 4
5
votes
1 answer

Using CharInSet in Delphi or Firemonkey

How do I use CharInSet() to get rid of this warning? lastop:=c; {OK - if op is * or / and prev op was + or -, put the whole thing in parens} If (c in ['*','/']) and (NextToLastOp in ['+','-']) then …
Raj
  • 69
  • 1
  • 2
  • 5
5
votes
1 answer

Async InputQuery doesn't handle Cancel button

I'm using a simple call to TDialogServiceAsync.InputQuery() with a single input. It just ignores both the Cancel button and the window's X close button. But the Ok button works fine. This is my code: uses FMX.DialogService.Async; procedure…
HypeZ
  • 4,017
  • 3
  • 19
  • 34
5
votes
1 answer

change color of listviewitem text in delphi

i'm trying to change the text color within my listviewitem for a text object. I have multiple text objects in the listviewitem. I'm using the below code Litem := ListView1.Items.Add; Litem.Data['ytde'] :=…
ant theman
  • 111
  • 4
5
votes
2 answers

Delphi Android Location Sensor not working if location allowed after application start

I have an interesting issue with TLocationSensor. If the location is allowed in the Android menu before I start my application, the sensor works fine. I catch the event OnLocationChange. But if I don't allow location in the Android menu and start…
milenjao
  • 93
  • 5
  • 18
5
votes
1 answer

Why form.show is called before form.create in firemonkey?

Everyone know tell me why Form.show is called before that Form.create if property Form.visible = true. I tested in Delphi XE7 and Delphi 10 Seattle (Fmx form compiled for windows) Ex: procedure TForm1.FormCreate(Sender: TObject); var …
5
votes
2 answers

Where is GetTickCount declared in Firemonkey?

I am using multi device in Delphi and I am building an android app. I need to use GetTickCount that was declared in Windows . Does it exist somewhere in firemonkey or is there an alternative ?
Vlark.Lopin
  • 762
  • 10
  • 21
5
votes
1 answer

Image in TSpeedbutton with TImageList

I tried to create a toolbar, using a TToolbar with TActionList, TSpeedbutton and TImageList. I used square images with 32px, but when I chose the image, by ImageIndex, in the TSpeedButton, the image size is less than 32px, I think is 16px. How I can…