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.
3,598
questions
0
votes
2
answers
58
views
Unable to change properties of ListView FMX except by Text
I created a ListView and add some ItemsText's, arranged them in their respective sizes/positions and when try to populate them, some ItemsText was cut in half (short width), then I decide to change ...
0
votes
0
answers
41
views
display printers on android device
I am creating an app on android devices that needs to print out slips on a built in printer on the device, How does one in delphi FMX list all the available printers on the device? e.g list the ...
0
votes
0
answers
41
views
png / bmp-> ico by FMX (c ++) TBitmapCodecManager
Lebeau, thank you for the appropriate advice yesterday. After that, I continued testing, but unfortunately, the application's title bar refused to regist the converted icon. The reason is that the ...
1
vote
1
answer
57
views
How to print a canvas from android device using FMX
how does one print a canvas from a Android device using delphi FMX. I am able to print on windows, But print Dialog isnt compatible with android, How could I print from the android device to my ...
1
vote
1
answer
47
views
Usage of TBitmapCodecManager in C++
Please tell me how to use TBitmapCodecManager correctly in C++. My development environment is C++Builder 10.4 (Community Eddition) under FMX.
Here is the code of Delphi's TBitmapCodecManager sample ...
1
vote
4
answers
146
views
how can I create a custom draw line in delphi
I would like to draw a line on my canvas in my delphi app but need it to be a line of ******
how can I create a custom line with the * char instead of dashes or dots.
2
votes
1
answer
215
views
how to print a canvas
I have a canvas which I draw to, to make slips for purchases made, I am trying to print the canvas out but am getting an error
'Project Project2.exe raised exception class EConvertError with message '...
0
votes
2
answers
119
views
ModernListView looks different on Windows and Android platform
I need your help.
Can someone explain to me why the appearance of ListView (I use ModernListView -> https://github.com/rzaripov1990/ModernListView) is different on Windows platform and Android ...
0
votes
0
answers
77
views
FMX TWebBrowser cannot visit one website, but another
Delphi Pro 11.1 on Windows 10 to build a Win64 app.
In a FMX project, I placed a TWebBrowser. A button triggers the following code:
Web.Navigate('https://dictionary.cambridge.org/dictionary/english/...
0
votes
0
answers
66
views
Delphi Firemonkey app on Android doesn't play sound after several play
I having problem to play sound files on android. Please see below my code as it works fine up to nearly 200 times but after that sounds doesn't come up.
I receive java.lang.RuntimeException: ...
0
votes
0
answers
54
views
How to change FMX ListView header background color?
In a multi-device FMX project, I am trying to change the background colour of a ListView.
There is a StyleBook placed on the Form. I edit a custom Style for the ListView, changing the background color,...
0
votes
0
answers
57
views
Android/Delphi Firemonkey apps crashing at startup due to a problem in FMXEditText.java or in Android itself
We are seeing an issue with an android firemonkey delphi app written with Delphi 10.4 and approved for sale in the Google Play store that only fails on some devices, and not on the devices that the ...
1
vote
1
answer
71
views
TAlphacolor in Integer to convert to Alphacolor description
I obtained a value of -65536 from the RTTI inspector for Red.
How do I convert it into a constant description of Red without duplicating all the members of the TAlphaColorRec record into an array?
...
0
votes
2
answers
95
views
Convert TRect to TRectF in FMX
I'm trying to use the overloaded function of SetBounds() in FMX.Forms, passing Screen.Displays[index].BoundsRect as a parameter. However, since Delphi 11 BoundsRect seems to return a TRectF rather ...
0
votes
0
answers
50
views
Blinking caret missing in FireMonkey app when using delegate creation for MainForm
I am using the Spring4D mobile app demo code to instantiate the MainForm using the TContainer with a DelegateTo() method, as shown below. The code works fine to show the MainForm.
However, the TEdit ...
0
votes
1
answer
133
views
FMX StringGrid Column Header Background
SOLVED: I'm trying to change the background color of the column header on an FMX StringGrid using the onDrawColumnHeader. I can change the column header color but I lose the Header Text and Header ...
0
votes
0
answers
102
views
Making a control similar to Delphi Object Inspector (FMX)
I'm trying to make a visual control similar to Delphi Object Inspector, where clicking on > will expand the properties, example, click on Font will expand to Color, Height Edit box etc, or clicking ...
0
votes
0
answers
33
views
Thousand separator for Tnumberbox, Delphi FMX [duplicate]
I have a few numberbox on a form of a multi-device app, which I'd like for them to be able to show the thousand seperator.
So far, I have tried using
Formatsetting.thousandseparator:=','
through ...
0
votes
2
answers
110
views
In Delphi, how can I multiply a sql field and a value?
I want to change the text of label1 by multiplying query field with value of spinBox1. But it doesn't work. ** Fields[3] saved as Integer in my table **
label1.Text := MSQuery1.Fields[3].AsInteger * ...
0
votes
0
answers
42
views
How to disable data mobile with firemonkey Rad 10.3?
I am looking to disable mobile data, with firemonkey (Rad 10.3), I have seen several posts, but I have not been able to find a solution.
I have reviewed these posts:
Enable/Disable mobile data
The ...
-1
votes
1
answer
75
views
What to pass as a Sender in a button OnClick method?
I have a function that creates a button dynamically
void createBtn(News obj,TForm *Form1){
TButton *spam = new TButton(Form1);
spam->Parent = newsCard;
spam->Position->X = 280;
...
0
votes
1
answer
46
views
SendToBack TlistItemImage at design time or runtime in fireMonkey
In TlistView Dynamic appearance I added a few object appearanced to the item.
I have a TextObjectAppearence and an ImageObjectAppearence.
I want to set the image to be a background for the text ...
0
votes
1
answer
61
views
Change Icon of Swipe to delete button on Tlistview FMX
I'm using a TlistView set to DynamicAppearence, and CanSwipeDelete is set to True.
I somehow can't find a way to set the icon of the delete button to a specific icon I see the property for ...
0
votes
0
answers
8
views
FIREMONKEY minimise parent but not child window
I have a c++ Builder firemonkey application where the main window is the configuration and control and the child window is a full screen graphics display on the second monitor.
I want to know if it is ...
-1
votes
2
answers
55
views
RAD Studio - Open an exe file on button click
I am using FMX. Does anyone know how I can run an .exe file in a button click? There is not enough resources on this issue.
I am trying
extern DELPHI_PACKAGE NativeUInt __fastcall FileOpen('Console\...
0
votes
1
answer
33
views
How to use right to left languages in fmx grids
What is the best way in FMX to create a grid that supports bidimode and righttoleft languages
I have tried fmxrtl but it has many errors
Thanks
0
votes
1
answer
37
views
disable android device keyboard appearing when selecting an edit box
I have a point of sales screen created for users to purchase products, And have created my own keyboard on the screen. However when I deploy to an android device the android keyboard pops up when I ...
0
votes
0
answers
35
views
How to set TGridLayout Height based off amount of items in grid
How does one set the height of A TGridLayout to be set based off the amount of items in the grid ? I have a grid with products in it which the user can purchase and need the grids height to be set ...
2
votes
1
answer
98
views
Draw a circle on the Canvas of a TImage with Delphi Firemonekey
I am trying draw a circle on the TImage canvas in Delphi 11 Firemonkey using the OnMouseDown event of the TImage component.
I have written the following code:
procedure TForm1.FormCreate(Sender: ...
1
vote
1
answer
101
views
HTML Component library ThtPanel incorrectly renders HTML on Android
I'm using the ThtPanel component from the HTML Component library (version 4.5) to create icons in my application.
On Windows everything looks great, but on Android the same icons are rendered ...
0
votes
2
answers
54
views
How can my Delphi 11 FMX project detect that "My Menu Item" in system menu clicked?
I've tried using wndproc to detect "My Menu Item" clicked in System Menu in windows.
I used from source code to capture WndProc and add menu item to system menu.
Mouse wheel in WndProc can ...
0
votes
0
answers
48
views
How record video with firemonkey capture code in Windows?
I'm trying to record video capture with firemonkey in Windows app. I try the capture code example but only works capturing, there is not a code for record the video.
Thanks
2
votes
1
answer
97
views
Take screenshot on MacOS
With Firemonkey 11.1, I have two employees using MacOS.
The first one
Mac OS Catalina with laptop 1280x800
External display 1920x1080
The second one
Mac OS Monterey with laptop 1440x900
External ...
0
votes
0
answers
66
views
Access FMX TListView TListViewItem
Is there a way to access the different items configured to a FMX TListview's ListViewItem component below the ListView rows are filled?
I have a TListView set to DynamicAppearance and have it set up ...
0
votes
0
answers
51
views
Get Selection Change Event in FMX TListView
I'd like to run a procedure whenever the selected item in a ListView changes. I can't figure out what event is dealing with this.
There's a post here: What event to call when ListView selected item ...
0
votes
2
answers
93
views
Delphi FireMonkey multi HWND in a form
I am quite new to FireMonkey.
I am shifting an old VCL project to Firemonkey. One of the requirements is I need to embed several video players in one form. The player itself needs an HWND parameter to ...
0
votes
0
answers
114
views
Event disappears on button Style designer
I would like to create a personalized style on expander in firemonkey.
But when I want to add an event on a button (I replace the checkbox by a button that I have drag and drop from palette), then ...
1
vote
1
answer
60
views
Clearing an ImageObjectAppearance item from Dynamic Listview
First the Code:
procedure TfrmJob.lvServiceReportsMouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Single);
var
i: Integer;
rct: TRectF;
begin
if Button = TMouseButton....
1
vote
1
answer
111
views
Fill inside a rectangle with a pattern Delphi
Using the following code in delphi-firemonkey, it is easy to fill a rectangle with a solid or gradient color, but I cannot figure out how to fill it with a pattern like dots or slant dashes.
FillRect(...
1
vote
0
answers
57
views
Delphi FMX 3D Scene multi object selection code example (selection rectangle)
I'd like to know is there any intrinsic method in FMX to select single or multiple objects in 3D Scene, preferably with selection rectangle?
Say that, I've many objects(spehere, cube, complex mesh etc....
1
vote
1
answer
72
views
Retrieving the number of breaks in a FLowLayout
I want to programatically retrieve the number of breaks/newlines in a TFlowLayout.
I have a simple TFlowLayout with 4 regular controls inside (The TFlowLayout does not contain any TFlowLayoutBreak ...
0
votes
0
answers
68
views
How to determine which Item on a Listview swiped in Delphi FMX
I would like to swipe Left & right an Item in TListView object in Delphi 11.1 Alexandra.
I did choose Left & Right gestures from the Standard gestures and gesture works fine but I cannot ...
-1
votes
1
answer
54
views
deleting specific items from TGrid
`
procedure TfrmFinal.providerBtnClick(Sender: Tobject);
var
provider,text: String;
J: Integer;
airtimeBtn: TCornerButton;
products: TJSONArray;
begin
glPosScreen.DeleteChildren;
...
1
vote
1
answer
177
views
How can i run a loop procedure in background?
I created a procedure to update an SQLite DB. The procedure runs in a loop until the list is finished. The problem is, when I run the procedure, the program stops responding
How can I run this ...
0
votes
0
answers
41
views
Drawing a line on a TPanel 0,0 not where it should be [duplicate]
I have an FMX TPanel that's to the right side of my main window. I am using the Canvas property of the panel and drawing a line on the Canvas. So my code looks something like this:
TPointF ...
0
votes
1
answer
57
views
TMapAccess.maReadWrite not defined using DELPHI 11
the code fragment below works fine for DELPHI 10.4 and FMX framework, but does not compile using DELPHI 11 . Error : maReadWrite not defined
[dcc64 Error] ImageUnit.FMX.pas(5340): E2003 ...
0
votes
0
answers
90
views
How to change ListView TTextObjectAppearance Font in Mobile, Delphi Sydney 10.4 FMX?
I want to change the default Font in Listview TTextObjectAppearance, when I run it on windows it works fine but when I run it mobile it does not show the Font I select.
.fmx
object Form1: TForm1
...
0
votes
1
answer
93
views
How to Show images in ListView depends on the date
I'm Using Delphi Sydney 10.4 FMX, I have a ListView connected to a Database with liveBinding, ImageList that has 3 images.
In the ListView, I Have 3 Fields: Image, Expiry, Domain.
The Expiry and ...
0
votes
1
answer
39
views
Cleaning up a folder on a phone
first question on this site, if improper just tell me.
I am creating an app on an adroid platform. With this app I create some files and folders in the shared document folder.
What happens is this: ...
0
votes
0
answers
30
views
FMX Twebbrowser cache file location and clear the history
For Delphi 10.4, build a web browsing app for multiple platforms with FMX. I used WebBrowser. Wondering where the cached filed stored? How to clear these files or history, like chrome incognito ...