firemonkey

How to concatenate 2 fields from a dataset using LiveBindings?

不打扰是莪最后的温柔 提交于 2019-12-11 11:42:28
问题 Is there a way to use the Live Binding Designer to concatenate 2 database fields to a component? For example I have a MemTable for client, I want to concatenate the FirstName and LastName (fullname) to a label. If there is a way to do that, I understand that the binding will be in one direction only (Database fields --> ComponentProperty). 回答1: For something simple like this...you can use the AfterScroll Event of your Dataset if Dataset.Active and (Dataset.RecordCount > 0) then label1.Caption

Why are my TListBox items not changing their color?

为君一笑 提交于 2019-12-11 10:05:17
问题 This is how I'm getting a few items from a List located on a local server. I assume it still need some refactoring (sorry for being such a beginner in Delphi ), however I would like to understand better why the ListItem colors are not being changed. I did some debugging and found out that the if conditions are working fine for each color, and the ListItem is receiving it but I might be getting the wrong reference or using the wrong property to change the color. Here's the full code: procedure

Delphi EMS FireDAC: Cannot open dataset [FDMemTable]

非 Y 不嫁゛ 提交于 2019-12-11 09:36:31
问题 I am working with a simple client server application using EMS(i.e: for future iOS application) in Delphi. This question is the continuation of my previous question with a different error. This is my previous question with different problem from which I have followed the suggestion given by Marco. Problem: Now I have an error when I am passing parameter from client to server. Project EMS_Test_Client_Project.exe raised exception class EFDException with message '[FireDAC][Comp][DS]-206. Cannot

Delphi FMX OSX Segmentation Fault 11

陌路散爱 提交于 2019-12-11 09:33:40
问题 There are a number of Segmentation Fault 11 posts, but none seem to answer my question: I've posted the code for the simple test application previously, but is provided for completeness. Windows 10, Delphi 10.2.3 with OSX High Sierra 10.13.6 and Xcode 9.4.1. The HOST: unit uDylibTest1; interface uses System.SysUtils, System.Types, System.Diagnostics, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Platform, FMX

Projects fail to start in iOS when adding XSuperObject

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 09:06:44
问题 I've already reported this directly to the X-SuperObject project, but I thought I may get more quality help on Stack Overflow. Using Delphi XE8, I have issues using XSuperObject on iOS Simulator (7.1, 8.1, 8.2 and 8.3). So I started an empty Firemonkey app, started adding some things which were in my prior project (at this point I didn't know what the issue was). All worked fine up until I added the latest XSuperObject and XSuperJSON units to my app. uses XSuperObject, XSuperJSON; Upon

Firemonkey equivalent for Windows' MessageBox()?

妖精的绣舞 提交于 2019-12-11 08:29:38
问题 Is there a Firemonkey equivalent for Windows' MessageBox(), i.e. where the dialog's caption/title can be set? I know I can make one myself but prefer to use an existing solution, but I can't seem to find it. 回答1: ok here is my example how I am using NSAlert: unit DAMessageBox; interface uses System.SysUtils, System.IOUtils, FMX.Dialogs, System.UITypes, {$IFDEF MSWINDOWS} Winapi.ShellAPI, Winapi.Windows, Vcl.Forms; {$ENDIF MSWINDOWS} {$IFDEF POSIX} Macapi.CocoaTypes, Macapi.Foundation, Macapi

How to display the latest news from a web news feed in delphi firemonkey application?

谁都会走 提交于 2019-12-11 08:25:14
问题 Well, I have a program and a website, the website has to part with the latest news, only formatted with CSS3, etc. .. I have no idea how to display in my delphi program the latest news, since the TWebBrowser is not transparent, can not render CSS3 and HTML5, has some other way? 回答1: Publish your news in an RSS feed. In your program, fetch that feed with something like Indy, extract the important parts with an XML parser, and present it however you want. You don't need to embed a Web browser

The TEdit.Height is fixed on Firemonkey Style, How to change it?

久未见 提交于 2019-12-11 08:18:26
问题 I am using a regular Firemonkey HD application and decided to use only the style that comes with MetropolisUI (just the style, it is not Metropolis app/form since I need it to be cross platform) The problem is that TEdit is set to a fixed size, that is for me too big. I have played to change the style by StyleBook, was not successful. I am newbie with styles and firemonkey. Have tested other option incluing Chris Holliston using the interposer class. However I need to reduce the height at

Why I receive Invoke error: method not found

感情迁移 提交于 2019-12-11 07:58:12
问题 I try to integrate in Delphi appsFlyer (android) public abstract interface AppsFlyerConversionListener { @WorkerThread public abstract void onInstallConversionDataLoaded(Map<String, String> paramMap); public abstract void onInstallConversionFailure(String paramString); @WorkerThread public abstract void onAppOpenAttribution(Map<String, String> paramMap); public abstract void onAttributionFailure(String paramString); } public class AppsFlyerLib implements a { public static AppsFlyerLib

App crashes when closing Keyboard on Android Delphi Xe7

混江龙づ霸主 提交于 2019-12-11 07:39:34
问题 Create a new project. Drop two TEdits on a form. Deploy to Android device. Start up App. Tap a TEdit to bring up the keyboard, hit the hardware back button on your phone... Crash... Is this something specific to me? or can other people confirm this? Is there something wrong that I am doing? I've tried setting the Key:=0 on the keydown event of the form and the TEdits but that didn't work - app still crashes. Delphi XE7 update 1 installed. 回答1: Create a new project and add your classes to it.