firemonkey

How to turn off the antialiasing in TChart for Firemonkey?

∥☆過路亽.° 提交于 2019-12-11 18:49:37
问题 Does anyone know how to turn off the anti-aliasing in TChart for Firemonkey in Delphi XE2? 回答1: FireMonkey Canvas does not allow enabling or disabling anti-alias for individual controls. It must be done at form level (starting with XE4), using the Form1.Quality property. 来源: https://stackoverflow.com/questions/14672890/how-to-turn-off-the-antialiasing-in-tchart-for-firemonkey

Low quality downscale interpolation when using a GPU canvas and TCanvas.DrawBitmap

倾然丶 夕夏残阳落幕 提交于 2019-12-11 16:32:14
问题 When setting Delphi to use a GPU canvas (FMX.Types.GlobalUseGPUCanvas := True), under windows and android there doesn't seem to be high quality downscale interpolation performed when calling TCanvas.DrawBitmap, instead the result looks pixelated (nearest neighbor scaler?). Looking at the source code (FMX.Canvas.GPU.pas/DoDrawBitmap), the "HighSpeed" parameter is never used. using TCanvas.DrawBitmap: Using a software based bicubic scaler (a lot slower): One would think that using the GPU would

Firemonkey and TDownloadUrl

核能气质少年 提交于 2019-12-11 14:16:51
问题 I have an (Delphi XE2) VCL app containing an object TDownloadUrl (VCL.ExtActns) to check several webpages, so I wonder if there is an equivalent object in FireMonkey, 'cause I wanna take advantage of rich features from this new platform. A Firemonkey app demo using threads would appreciate. Thanks in advance. 回答1: Actions don't exist yet with FireMonkey. BTW, you can create the same behavior with a code like this: IdHTTP1: TIdHTTP; ... procedure TForm2.MenuItem1Click(Sender: TObject); const

Firemonkey Delphi TWebBrowser Get Text / HTML

岁酱吖の 提交于 2019-12-11 13:47:58
问题 How can i get text / html from a webpage on Firemonkey platform (Android/iOS). TWebBrowser Doesn't have anything for this... 回答1: With some test, I combine JAVAScript and Delphi code, there is a workground, please refer to my article: http://firemonkeylessons.blogspot.tw/2015/01/get-htmljson-from-twebbrowser.html 来源: https://stackoverflow.com/questions/22156463/firemonkey-delphi-twebbrowser-get-text-html

How to adjust ListBox items height to fit the text in Firemonkey (android)?

大兔子大兔子 提交于 2019-12-11 13:29:41
问题 I'm using this code to add an item to a listbox, but I can't figure out how to dynamically resize the height of the item to fit the text: procedure TmForm.AddItemBtnClick(Sender: TObject); var Item: TListBoxItem; begin Item := TListBoxItem.Create(nil); Item.Parent := SomeListBox; Item.StyleLookup := 'listboxitemstyle'; Item.Text := 'Pe cararea lunga scurta se ducea un om venind, si-n tacerea lui ' + 'profunda se auzea borborosind. Cantr-o noapte intunecoasa soarel' + 'e lucea pe cer, iara eu

Firemonkey IFMXLoggingService Windows Event Log Location

被刻印的时光 ゝ 提交于 2019-12-11 13:15:01
问题 I am looking at the FMX built in logging support via the Log class which uses the IFMXLoggingService to write events. I have found info for the log file location in iOS and Android but unable to find anything on Windows (8.1). Does anyone know which specific log file this service writes to? and is this able to be changed in code or otherwise? Thanks 回答1: If you look at the sources you will find the implementation at FMX.Platform.Win.TPlatformWin.Log : procedure TPlatformWin.Log(const Fmt:

How to work with anti-alias on delphi firemonkey and android

六眼飞鱼酱① 提交于 2019-12-11 12:55:52
问题 I work on delphi xe7 with firemonkey and testing on android. When i work on a device that have a normal resolution of 1 (scene.scale=1) then component like TRoundRect, TPie, etc produce ugly result because they are not anti-aliased (or the anti-alias is not visible by humain eyes). if i work on high definition device (scene.scale=2 for exemple), then it's not really a big problem because high definition compensate the problem. So first question, is their any way to make theses component

Black screen with Delphi XE8 Firemonkey + Android 4.4

十年热恋 提交于 2019-12-11 12:50:10
问题 Anybody got any idea why nu applications compiled on Delphi XE8 don't work on Android 4.4? Only black screen appears. It says it should be compatible with older Android versions. 回答1: Please try to create the new empty mobile project in XE8, copy the *.dpr *.pas and *.fmx files into the project folder and add them to the project in the IDE (remember about extra graphics, sound etc - check the deploy option for them). I had similar issue and the new project with completely unchanged source

Delphi 10 Seattle Background Service and Threads

强颜欢笑 提交于 2019-12-11 12:33:44
问题 Using Delphi 10 Seattle Update 1 to create an Android application. Basic goal is to have an application the pops up a notification every few (4) hours to remind the user to get up and move. I have created the basic UI and created the background service. In the service I can use a TNotificationCenter to post a notification just fine, but I need to post a notification at a regular interval. Based on suggestions found at the following sites... http://blog.blong.com/2015/02/delphi-and-android

Scrolling Programmatically THorzScrollBox Firemonkey XE6

不羁岁月 提交于 2019-12-11 11:48:10
问题 I have a THorzScrollBox in a form, and some TStyledControls inside. Each StyledControl has a Tag to identify. Using an TEdit to inform a value, I can find inside the ScrollBox an specific Control by his tag . If the control that I searched is not on the screen, I want to scroll the ScrollBox to show it. How can I do this programmatically? 回答1: I found a way to do this. I have to use ScrollBy . But the detail is that if I want to scroll the controls to right I have to use a negative value.