Questions tagged [delphi-11-alexandria]

311 questions
0
votes
0 answers

How to select Android platform in Delphi 11 Alexandria?

Using Delphi 11 Alexandria, Professional edition, w/ Patch 1 on Windows 10. Android was selected as a platform during install, and all of the SDKs were downloaded and installed. This works fine in Delphi 10.4, but in Delphi 11 Android is not…
Andy k
  • 1,056
  • 1
  • 11
  • 22
0
votes
2 answers

TApplicationEvents.OnShortCut: Detect only Keys with modifier-key?

I use the TApplicationEvents.OnShortCut event in Delphi 11 Alexandria with a Delphi VCL Application in Windows 10, for example: procedure TformMain.ApplicationEvents1ShortCut(var Msg: TWMKey; var Handled: Boolean); begin …
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
0 answers

Delphi - Generic type as parameter

Why this won't compile ? (Code from a custom JSON Interceptor) procedure myproc(MyObject: TObject); procedure test(C: TClass); begin var ctx := TRttiContext.Create; var typ := ctx.GetType(C); for var fld in typ.GetFields do …
0
votes
1 answer

Delphi Firedac connect to MySQL in docker container

I have created a MySQL image on my Windows 10 using the default settings from Docker. I started the container using this command: docker run --name local-mysql --network="host" -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d…
JennyL
  • 81
  • 5
0
votes
0 answers

How to make an app use all cpu power available?

I'm in a 4-core machine with Intel processor, Windows 10. I've made an example app forcing a loop , just to check the task manager and see what happens, something simple like this : while true do begin end; I'd expect the cpu will be at 100% with…
delphirules
  • 6,443
  • 17
  • 59
  • 108
0
votes
1 answer

Delphi 11 TRichEdit hyperlink stopped working

I used this thread to add hyperlinks to my TRichEdit components. But, since installing the new Delphi 11, they have stopped working. Has anyone figured out why yet?
0
votes
1 answer

How to change the font size in Delphi 11 IDE?

My English is not very good, a photo will be more efficient. I cannot find or manage the "complementary" Windows font on Delphi 11.
0
votes
0 answers

[Delphi 11]In Windows High DPI, how to play GIF by TVirtualImage?

today I am updating the code. In order to be compatible with HDPI, I replaced TImage with TVirtualImage, and then used TVirtualImage to load GIF, but the GIF image has no animation effect. How to solve this problem
0
votes
0 answers

Get Response Text from TEdgeBrowser

How To Get Response Text from TEdgeBrowser? I call TEdgeBrowser on new form procedure TForm1.Button1Click(Sender: TObject); var Form: TForm; Brws: TEdgeBrowser; begin Form := TForm.Create(Self); Form.Width := 700; Form.Height := 700; …
0
votes
1 answer

FMX TMemo is painfully slow

I was writing a Firemonkey application and ran into a problem: TMemo is painfully slow. It needs 12+ seconds to load a 3 mb file, VCL TMemo only needs 400 ms Here is my test code: uses System.Threading, System.Diagnostics; procedure…
Jens Borrisholt
  • 6,174
  • 1
  • 33
  • 67
-1
votes
1 answer

How to make Delphi Android app run in the background and then be maximized without being restarted?

I have an Android app written in Delphi. When launching the app and initializing another app by Intent, after closing the second app and going back to the first app, the first app is restarted. Note: I saw that there is something about the…
-1
votes
1 answer

Get the Error Type when Converting String To Integer (toLarge/NotAString)

When converting a user input (string) to an Integer and it goes wrong, I want to know if that is because the number represented by the string exceeded integer limitations (eg. was larger than 2147483647) or if the string contained letters that were…
MeroFuruya
  • 20
  • 5
-1
votes
1 answer

Converting a project that uses a 64 bit dll in Delphi 11 Alexandria from Delphi 10.3. Code on D11 is throwing an access violation

I have an app that uses winrar (unrar64.dll). In delphi 10.3 the code runs fine, but running it under Delphi 11, it throws an access violation on this line RARSetCallback(RARArchiveInstance, HandleRarCallBack, Integer(Self)); This function is in the…
-1
votes
1 answer

How to get instant CPU usage % of my app process

I need to get the cpu usage in % of my own app process at the moment, exactly as the value shown by the column 'CPU' in Windows Task Manager, but using Delphi 11. Is this possible ? I've found some examples in SO, but all of them gets the global cpu…
delphirules
  • 6,443
  • 17
  • 59
  • 108
-1
votes
2 answers

Get Delphi exception line

I'm using Delphi 11. Considering this example code : try raise exception.create('Test'); except on e : exception do begin showmessage(e.message+' on form X, line Y'); end; end; Is there a way to get the exact form X and line Y where the exception…
delphirules
  • 6,443
  • 17
  • 59
  • 108
1 2 3
20
21