firemonkey

Fmx TStringGrid row color

℡╲_俬逩灬. 提交于 2020-01-04 05:49:07
问题 I have a problem in Delphi 10.1 in a multi-device application (on Windows). I have a StringGrid (connected to a db) and I can change background color of row, but the problem is there is a "padding" (in grey/silver) between cells. In onformCreate I define: stringgrid1.DefaultDrawing := False; This is my code: procedure Tlist_form.StringGrid1DrawColumnCell(Sender: TObject; const Canvas: TCanvas; const Column: TColumn; const Bounds: TRectF; const Row: Integer; const Value: TValue; const State:

Delphi XE7 Android Fullscreen (hide softkeys)

感情迁移 提交于 2020-01-04 03:55:24
问题 How to Fullscreen in XE7, hiding both the top (title) and bottom (softkey) toolbar? In XE6 I could adjust the AndroidManifest to make my application go fullscreen and without the actionbar by writing in the application section: android:theme="@android:style/Theme.Holo.NoTitleBar.Fullscreen" > In XE7 this did no longer do the job, I found a Russian website with more information on the matter. Here is the first 'static' option: Suppose the situation: The application should always work in full

How to create subitems menus under the application name on OSX?

大城市里の小女人 提交于 2020-01-03 08:38:52
问题 How to add TMenuItem under Project1 and above Quit on the screenshot below? I have created a TMenuBar with property UseOSMenu checked. The first TMenuItem I added is the second one in the main bar... 回答1: You can do this by assigning a TMenuBar of IItemsContainer implementing class to the Application.ApplicationMenuItems property. Example: If there was a menu bar component on the form called MenuBar1, then you would just call the following in your forms constructor (or OnCreate). Application

IdHTTP to ensure push data to Ubidots (FMX, WIN32)

岁酱吖の 提交于 2020-01-03 05:09:29
问题 I can push an encrypted piece of humidity data up to my Ubidots cloud database by simply loading the following url in a web browser: https://industrial.ubidots.com/api/v1.6/devices/MYDEVICENAME/?token=MYTOKENHERE&_method=post&humidity=15.9 When I do that, I get the success response in the browser window {"humidity": [{"status_code": 201}]} and the data shows up in my data table on Ubidots. Now, I want to do this from an FMX app (C++ on Win32) without a visible browser, and I would like to

UIFileSharingEnabled key in Info.plist

那年仲夏 提交于 2020-01-03 04:54:02
问题 I added the key UIFileSharingEnabled to my app's version info as described here so my users can save files to my apps documents folder. Works great in testing. Tried to upload to apple store with Application Loader and i'm getting an ERROR ITMS-90039: "Type Mismatch. The value for the Info.plist key UIFileSharingEnabled is not of the required type for that key. . I've googled and found where other folks had problems with it but none of their solutions helped. Here are the ways i've tried to

Using Livebindings to Assign Several Field Values to an FMX MetropolisUI TListBox Item.Text

空扰寡人 提交于 2020-01-03 02:27:11
问题 I am coding a FMX Metropolis UI application and trying to assign two field values of type string to the Item.Title member of TListBox by LiveBindings technology (using expression engine). When I use a TBindList in the following way: object BindList1: TBindList Category = 'Lists' ControlComponent = ListBox1 SourceComponent = BindSourceDB1 FormatExpressions = < item ControlExpression = 'Text' SourceExpression = 'FieldByName("name1").Text + " " + Field' + 'ByName("name2").Text' end>

Delphi XE7: How to get native statusbar behavior in iOS 7?

二次信任 提交于 2020-01-02 23:00:12
问题 In iOS 7 the default behavior of the statusbar is to be transparent, but that seems impossible in Delphi XE7. The statusbar always get the same color as the mainform (which was the default behavior in iOS 6). The Mainform.borderstyle controls if the statusbar is shown or not, but I cannot find any way to set it transparent. I have tried setting UIViewControllerBasedStatusBarAppearance and UIStatusBarStyle in the info.plist and tried to call TUIApplication.wrap(TUIApplication.OCClass

How to send email with attachment using default Android email app - Delphi XE7

两盒软妹~` 提交于 2020-01-02 18:07:12
问题 Using code below which I found on another post, the email appears ready to send with the attachment, but when email is received, there is no attachment. Also, the email address has to be manually entered, it is not populated by the CreateEmail statement. I am sending from a gmail account. Anyone help please? procedure TForm1.CreateEmail(const Recipient, Subject, Content, Attachment: string); var Intent: JIntent; Uri: Jnet_Uri; AttachmentFile: JFile; begin Intent := TJIntent.Create; Intent

How to send email with attachment using default Android email app - Delphi XE7

帅比萌擦擦* 提交于 2020-01-02 18:07:10
问题 Using code below which I found on another post, the email appears ready to send with the attachment, but when email is received, there is no attachment. Also, the email address has to be manually entered, it is not populated by the CreateEmail statement. I am sending from a gmail account. Anyone help please? procedure TForm1.CreateEmail(const Recipient, Subject, Content, Attachment: string); var Intent: JIntent; Uri: Jnet_Uri; AttachmentFile: JFile; begin Intent := TJIntent.Create; Intent

How to change Edit control background color in FireMonkey?

半城伤御伤魂 提交于 2020-01-02 06:21:27
问题 I just can't find a way of changing background color of Edit control in my mobile FireMonkey application. 回答1: I dont know about FMX for mobile, but in FMX for Mac/Win you should do following steps: Right click on TEdit and select Edit Custom Style In Structure window, expand editstyle (TLayout) Put a TRectangle on content (TRectangle becomes child of content) Change Rectangle.HitTest to False Change Rectangle.Align to alClient Change Rectangle.Fill.Color to a custom color Change Rectangle