firemonkey

How to prevent MultiView opacity from affecting children components texts in Delphi?

半世苍凉 提交于 2021-02-05 06:22:25
问题 I'm using MultiView with some TButton buttons in Firemonkey. The multiView is opaque at 0.5 and this causes the buttons to also be opaque. QUESTION : Is there a way to prevent MultiView opacity from affecting the button texts? That is, the text of the buttons would continue with bright colors, but the "body" of the buttons would be opaque. I've seen some applications with this visual feature, but I do not know what components were used for that purpose ... 回答1: Instead of the TMultiView , use

TTeeGrid is not displaying the data at runtime using data from REST

给你一囗甜甜゛ 提交于 2021-01-28 22:23:50
问题 I created a simple RME for TTeeGrid, a descendant perhaps of TGrid in Firemonkey. As shown below, the data are displayed at design time but not at runtime except the headers. I've been breaking my head over this for weeks already but not luck. Let me know if you need more details but what you see in the image are all you get. I just need help to have the data displayed at runtime as shown in the design time. UPDATE 1 This issue is not the case with TPrototypeBindSource. The data shown in the

How to test the type of an Objective-c Object ? something similar to is with Object?

我只是一个虾纸丫 提交于 2021-01-28 11:22:21
问题 How to test the type of an Objective-c Object ? something similar to is with TObject? To cast we have wrap but I don't find how to test 回答1: I remembered that I'm actually using object_getClass in my own code :-) This is an example from DW.Notifications.iOS.pas : if request.trigger.isKindOfClass(objc_getClass('UNPushNotificationTrigger')) then 来源: https://stackoverflow.com/questions/59070640/how-to-test-the-type-of-an-objective-c-object-something-similar-to-is-with-obj

TMediaPlayer Error - Unsupported Media File

﹥>﹥吖頭↗ 提交于 2021-01-28 03:23:19
问题 I am trying to play a mp3 file from Firemonkey XE7 windows application. It should have been a simple task by putting a TMediaPlayer component, assigning it a .mp3 file, and just playing it. However, I get the following error: Application Error Exception EReadError in module MediaPlayerTest.exe at 00000000000012139E. Error reading MediaPlayer1.FileName: Unsupported media file testfile.mp3. I have also tried .wav, and it didn't work either. (Audio codec have already been installed and the media

How can I host a FireMonkey form client aligned inside another?

无人久伴 提交于 2021-01-28 03:15:31
问题 My Delphi XE7 FireMonkey project is growing controls and naturally I've moved to using frames. Where I've used frames in the VCL there have been situations where I've simply chosen to host one (complex) VCL form inside another instead, creating and displaying it in the form's OnShow and setting it client-aligned (the benefit of this is that you don't get issues with dangling inherited controls when you edit the frame). With FireMonkey though, things have changed slightly and my attempt to get

How to add and remove Android notification channels in Delphi Rio10.3.2

∥☆過路亽.° 提交于 2021-01-27 21:10:04
问题 I would like to implement multiple notification channels for Android on an FMX project. RAD 10.3.2 now provides some support for API >= 26 and a "fallback" notification channel is automatically created. Its default description is "Notification channel for Firebase" and I would like to change this description as well as to add some new channels. In RAD 10.3.2, the new Options/Application/Services parameters provide a "Default local notification channel Id" which, I suppose, is there to change

How to change the color of active TAB in a TabControl, in Delphi

旧巷老猫 提交于 2021-01-21 09:08:25
问题 How to change the color of active TAB in a TabControl (on FireMonkey) as shown below? 回答1: There are 2 ways to make this happen. 1) First option is you can create CustomStyle for TabControl from TStyleBook (Style Designer). Then you can add whatever you want to use in your custom design ( TRectangle is recommmended for many shape and colors). 2) I prefer to use second way for it. Set the TTabControl 's TabPosition to None , then add a TGridPanelLayout to where you want to add tabs in your

Delphi TEdit in iOS - turn off auto-caps on a per TEdit basis

流过昼夜 提交于 2021-01-01 06:39:37
问题 Currently, the iOS TEdit when it brings up the Keyboard, will have the keyboard in Caps for first letter. I would like to turn off Keyboard auto going into Caps for first letter for specific TEdit. Some TEdits I would want to retain first letter as capitalized, eg Names. I can't use the TEdit.CharCase feature as it forces all input in TEdit to lowercase. What I want is that user can Type in Mixed Case if they choose to but the Keyboard has to be in lowercase when TEdit first comes into focus.

Delphi TEdit in iOS - turn off auto-caps on a per TEdit basis

只谈情不闲聊 提交于 2021-01-01 06:39:36
问题 Currently, the iOS TEdit when it brings up the Keyboard, will have the keyboard in Caps for first letter. I would like to turn off Keyboard auto going into Caps for first letter for specific TEdit. Some TEdits I would want to retain first letter as capitalized, eg Names. I can't use the TEdit.CharCase feature as it forces all input in TEdit to lowercase. What I want is that user can Type in Mixed Case if they choose to but the Keyboard has to be in lowercase when TEdit first comes into focus.

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

三世轮回 提交于 2020-12-30 19:36:22
问题 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 ? 回答1: For direct access you are expect to use the Map method. The documentation includes a number of examples, such as FMX.AlphaColorToScanline: function TForm1.TestAlphaColorToScanline(ABitmap: TBitmap; start, count: integer): TBitmap; var bitdata1,