Questions tagged [firemonkey-fm2]

FireMonkey FM2 is a Delphi-based business application platform that allows targeting Windows 8 and Mac OS X Mountain Lion using a single codebase.

60 questions
19
votes
3 answers

Getting application path in Firemonkey

So in VCL, one would use the following line of code to retrieve the applications path: ExtractFilePath(Application.ExeName) I tried the same thing Firemokey and I noticed that ExeName was no longer available. What code can I use as an alternative…
ple103
  • 2,080
  • 6
  • 35
  • 50
8
votes
1 answer

Is it possible in Delphi XE4 to change the app short title without making it the same as the Project dpr name?

I am writing my first delphi-powered iPhone app. I have created it but I would like it to be named something other than the name of the .dpr file because dpr files cannot contain spaces, for instance, EXE names are not always the same as the…
Warren P
  • 65,725
  • 40
  • 181
  • 316
8
votes
1 answer

Line breaks in TMemo on a form with Default button

I have a form in an application written using FireMonkey. On that (modal) form there's an OK button for which I have set Default property to True. There's also a memo component. Now if type press enter while typing in the memo, then the form is…
Avo Muromägi
  • 1,563
  • 1
  • 12
  • 21
7
votes
3 answers

How to get the list of fonts available - Delphi XE3 + Firemonkey 2?

In order to create a font picker I need to get the list of fonts available to Firemonkey. As Screen.Fonts doesn't exist in FireMonkey I thought I'd need to use FMX.Platform ? eg: if…
sergeantKK
  • 644
  • 7
  • 16
6
votes
0 answers

BeginUpdate - EndUpdate causing form to go behind all open windows

I have ported a control heavy application in firemonkey which I have worked upon with DXScene for little over 2 years now. The sheer number of visual controls updating on every UI change warranted the BeginUpdate-EndUpdate methods prefixed and…
Umair Ahmed
  • 2,420
  • 1
  • 21
  • 40
6
votes
4 answers

GetKeyState in firemonkey

In VCL (Delphi 2010) I used this function to check whether control key is pressed: function IsControlKeyPressed: Boolean; begin Result := GetKeyState(VK_CONTROL) < 0; end; GetKeyState is function in windows library that I do not want to include…
AvgustinTomsic
  • 1,809
  • 16
  • 22
5
votes
2 answers

How to attach an object of any type with a TControl?

I want to add a TList with a TTreeViewItem and a custom class (TRoom)'s object with another. In delphi 2007 there was a field 'Data' of Pointer type which has been replaced with a TValue here which I don't know as to how to use. I have searched the…
Umair Ahmed
  • 2,420
  • 1
  • 21
  • 40
5
votes
1 answer

How to use multiple windows in FireMonkey FM2

I know I'm probably missing something, but I can't understand what. I've just created a test application with 2 forms (Form1, Form2). I've added a button to Form1 with the following code in the OnClick event handler: …
Torsen
  • 151
  • 1
  • 7
4
votes
0 answers

How do I autosize a Firemonkey form

A VCL form has an AutoSize property to automatically adjust the form's size to its contents. I don't see a similar mechanism for Firemonkey. Short from manually calculating the size and setting Height and Width, is there a way?
Cobus Kruger
  • 8,338
  • 3
  • 61
  • 106
4
votes
1 answer

firemonkey and global hot key?

I'm looking for a way to cach a global hotkey in firemonkey app (windows only, at least for now). After some frustration and googling this is supposed to work: register hotkey with winapi call RegisterHotKey(FmxHandleToHWND(form1.Handle), 0 ,…
laggyluk
  • 195
  • 2
  • 14
4
votes
2 answers

How to access TBitmap pixels directly in FMX2 (TBitmap.ScanLine replacement)?

The FMX.Types.TBitmap class has the ScanLine property in FMX (FireMonkey), but it seems this property was removed, and is missing in FMX2 (FireMonkey FM2). Is there any workaround ? How do we supposed to access TBitmap content directly in FMX2 ?
Roman Yankovsky
  • 1,207
  • 11
  • 23
3
votes
2 answers

Firemonkey drawing on bitmap without interpolation

I am using the canvas draw functions drawrect and filltext to draw onto a Tbitmap but I don't want the results antialiased. Anyone know how to do that ? Working with OSX and Delphi XE3 (but have XE4 and XE5 if needed)
David Peters
  • 220
  • 1
  • 10
3
votes
0 answers

Firemonkey TImageControl zoom

I want to modify the way the TImageViewer in Firemonkey handles the zoom. When I roll the mouse wheel the image should zoom, but the image should not Center. Instead the pixel that was at the position of the mouse before the zoom must still be at…
Christo
  • 411
  • 7
  • 27
3
votes
5 answers

How to hide firemonkey application button from Taskbar (XE4)?

According to this question it is possible to hide fmx taskbar icon by changing window style to WS_EX_TOOLWINDOW. In XE2 and XE3 this code works: uses FMX.Platform.Win, Winapi.Windows; procedure TForm1.Button1Click(Sender: TObject); var…
mh taqia
  • 3,506
  • 1
  • 24
  • 35
3
votes
1 answer

Include mouse cursor in screenshots taken with Firemonkey

I write a screenshot (of the whole screen, not only of my form) to a TImage via the code from the accepted answer at How to take a screenshot with FireMonkey (multi-platforms) which works just fine. However I want to include the mouse cursor in the…
1
2 3 4