delphi-10.2-tokyo

Remove Android app border with FireMonkey

て烟熏妆下的殇ゞ 提交于 2021-02-11 06:22:57
问题 I create an Android app with FireMonkey (10.2.2), but I don't understand why I have a top and right white border. I never added that to my app. I started to create an example app, just a black form with a black TRectangle without sides. I don't have to code anything, just design. When I compile for Windows, it's OK. I have this border only on Android. I get this result: You can download the example project here : Click Here to Download 回答1: I was having the exact same problem when adding a

How can I get an enumeration's valid ranges using RTTI or TypeInfo in Delphi

佐手、 提交于 2021-02-07 08:31:54
问题 I am using RTTI in a test project to evaluate enumeration values, most commonly properties on an object. If an enumeration is out of range I want to display text similar to what Evaluate/Modify IDE Window would show. Something like "(out of bound) 255". The sample code below uses TypeInfo to display the problem with a value outside the enumeration as an Access Violation when using GetEnumName . Any solution using RTTI or TypeInfo would help me, I just don't know the enumerated type in my test

How do I pass a context inside a loop into a TTask.IFuture in Delphi?

别说谁变了你拦得住时间么 提交于 2021-01-28 12:44:36
问题 I have a set of tasks to perform they are in an array. I want to loop through the array and launch a task for each. The following example is trivial (calculating squares) to demonstrate the issue. program FutureSquares; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils, System.Threading, System.Classes; const nums: array[0..9] of Integer = (1,2,3,4,5,6,7,8,9,10); var i, contextIndex: Integer; f: array[0..9] of ITask; answer, futureAnswer: Integer; matchDisplay: string; futureFunc: TFunc

Wait for process started by IContextMenu.InvokeCommand

拥有回忆 提交于 2021-01-27 12:12:58
问题 I have a TListView whose items are files, which the user can open via double clicking on them. To do this, I save the file in the windows temp folder, start a thread that opens the saved file with ShellExecuteEx() , and let it wait for ShellExecuteInfo.hProcess , like this: TNotifyThread = class(TThread) private FFileName: string; FFileAge: TDateTime; public constructor Create(const FileName: string; OnClosed: TNotifyEvent); overload; procedure Execute; override; property FileName: String

Dynamically making indy use TLSv1.2

帅比萌擦擦* 提交于 2020-12-30 08:50:08
问题 GitHub has stopped supporting TLS v1.0 and v1.1 (https://githubengineering.com/crypto-deprecation-notice/), so my code no longer wants to download from it. I have checked and it seems I need to make Indy use TLS v1.2, as stated here: Using Indy 10 IdHTTP with TLS 1.2. I have already updated the OpenSSL DLLs to the latest from http://indy.fulgan.com/SSL/, and Indy seems to load them fine, but I still get an error. The error I get: How can I make Indy use TLS v1.2 if I dynamically create Indy

(Delphi Linux) ld-linux.exe: error: cannot find -lgcc_s

喜你入骨 提交于 2020-12-29 08:13:01
问题 I have set up the PAserver that was located at: C:\Program Files (x86)\Embarcadero\Studio\19.0\PAServer\LinuxPAServer19.0.tar.gz on my Ubuntu Gnome 16.10 vm. Please note that I have never used the pa server before and this is my first time using it After that I proceeded to make a profile on Rad Studio 10.2 and the test connection was a success. After I compile I get this error: [DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lgcc_s C:

(Delphi Linux) ld-linux.exe: error: cannot find -lgcc_s

半世苍凉 提交于 2020-12-29 08:07:52
问题 I have set up the PAserver that was located at: C:\Program Files (x86)\Embarcadero\Studio\19.0\PAServer\LinuxPAServer19.0.tar.gz on my Ubuntu Gnome 16.10 vm. Please note that I have never used the pa server before and this is my first time using it After that I proceeded to make a profile on Rad Studio 10.2 and the test connection was a success. After I compile I get this error: [DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lgcc_s C:

(Delphi Linux) ld-linux.exe: error: cannot find -lgcc_s

我们两清 提交于 2020-12-29 08:07:33
问题 I have set up the PAserver that was located at: C:\Program Files (x86)\Embarcadero\Studio\19.0\PAServer\LinuxPAServer19.0.tar.gz on my Ubuntu Gnome 16.10 vm. Please note that I have never used the pa server before and this is my first time using it After that I proceeded to make a profile on Rad Studio 10.2 and the test connection was a success. After I compile I get this error: [DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lgcc_s C:

(Delphi Linux) ld-linux.exe: error: cannot find -lgcc_s

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-29 08:07:06
问题 I have set up the PAserver that was located at: C:\Program Files (x86)\Embarcadero\Studio\19.0\PAServer\LinuxPAServer19.0.tar.gz on my Ubuntu Gnome 16.10 vm. Please note that I have never used the pa server before and this is my first time using it After that I proceeded to make a profile on Rad Studio 10.2 and the test connection was a success. After I compile I get this error: [DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lgcc_s C:

Delphi 10.2.2 IDE font size

╄→гoц情女王★ 提交于 2020-08-06 05:15:07
问题 I would like to change the Font Size used in Delphi 10.2.2 Tokyo because it's too big. I use 125% scaling in Windows 10. I found this: System Registry Keys for IDE Visual Settings | Customizable Values But it doesn't work. I also have Delphi XE8, and this solution from Embarcadero's website works, but not in 10.2.2. Any ideas? 回答1: When we added theme support to the IDE in 10.2.2, for the Dark Theme, these settings became unused. That's because themes carry font information. It's a useful