Der schöne Günther
Members-
Content Count
693 -
Joined
-
Last visited
-
Days Won
12
Everything posted by Der schöne Günther
-
Is it possible to see Git current working branch in IDE?
Der schöne Günther replied to Mike Torrettinni's topic in Delphi IDE and APIs
Sure. You can also click it to quickly check out some other branch/tag. I haven't tried the VS Code integration in Delphi 11 yet, maybe that makes it even more appealing. -
Is it possible to see Git current working branch in IDE?
Der schöne Günther replied to Mike Torrettinni's topic in Delphi IDE and APIs
VS Code and two plug-ins (Git Graph & Gitlens) lead to a fantastic git experience, in my view. The branch name is always visible at the bottom -
I never had the use case for the fixed version - Can you get it working in the VCL?
-
The way of deployment you have selected (local, non-updating files) is not the most common. I'd recommend to spend the five minutes to read about the different deployment options here: Distribute a WebView2 app and the WebView2 Runtime - Microsoft Edge Development | Microsoft Docs (Strongly recommended to read the full page) For setting the path you have placed the files in, you can use CreateCoreebView2EnvironmentWithOptions(..), but you may also use simple environment variables (see link). As as third way, there already appear to be handy wrappers like the one you have found, but unfortunately, they haven't even written documentation for the VCL version that already exists since 10.4 https://docwiki.embarcadero.com/Libraries/en/Vcl.Edge.TEdgeBrowserHelper.BrowserExecutableFolder
-
Delphi 11 Windows XP compatibility tweak
Der schöne Günther replied to mitzi's topic in RTL and Delphi Object Pascal
There's too many "should run" in there. Neither the IDE, nor the produced Win32 binaries are intended to be run on Windows XP, MS-DOS or Enigma. Is there a guarantee it will run on those platforms, just by not importing GetTickCount64? That just doesn't sound safe enough to promise my customers the same. -
WinInet API 4095 How can I remove this limit?
Der schöne Günther replied to Turan Can's topic in Windows API
You're welcome. -
RAD Studio 11 Alexandria is now available
Der schöne Günther replied to Darian Miller's topic in General Help
Really looking forward to this one 😊 Not sure why they're so hyped about those TreeView checkboxes, I care much more for Remote Desktop improvements and High DPI 👍 -
Delphi compatibility with Windows 11?
Der schöne Günther replied to PeterPanettone's topic in General Help
Many thanks for your analysis. These extremely narrow highlights were often thought to be a bug, but Microsoft has confirmed it is intentional. Really puzzling decision to me. -
How is your screen performing this? There are basically two options It's using "true" touch functionality, like on a regular Tablet (like Surface) It is emulating a regular mouse. Which means a mouse pointer will always be stuck on screen. Right-clicking is usually done by long-pressing It sounds like your screen is using option 2. If possible, see if it can be configured to use option one. If not, you have to have to disable the "long-press to right-click" functionality, if you don't need it. If that's not an option, it can be adjusted in the VCL itself, every TControl has a TabletOption where the long-press behaviour can be adjusted. That's how I remember it, I could be wrong.
-
Is there an elegant way in Delphi to prevent instantiating a class?
Der schöne Günther replied to wuwuxin's topic in Algorithms, Data Structures and Class Design
Suggestion: Throw the ENoConstructException from System.SysUtils, not a regular Exception 😉 -
That's just a form with buttons on it, and occasionally half-transparent. That's really not rocket-science.
-
We use DUnitX and it discovers all our silly mistakes before release
Der schöne Günther replied to Lars Fosdal's topic in DUnitX
Excessively writing unit tests for new parts, but not using code coverage tools for the whole project. More than 50% of our code is 10-20 years old and simply cannot be tested. Yes, I have read Working Effectively with Legacy Code by Michael C. Feathers (goodreads.com), how to get out of this. But ain't nobody got time for that. -
What it's like to be a Delphi Developer
Der schöne Günther replied to Joe C. Hecht's topic in Tips / Blogs / Tutorials / Videos
I'm not very good with words, but I honestly can't find that he claims VS is terrible. "He says Visual Studio is terrible" is a really delusive distortion of words. 👎 RAD Studio definitively has its issues (for example, I'd never call it responsive, as he does), but so does VS. I don't particularly enjoy working in VS either, it's far from perfect. But I do love Visual Studio Code, that's for sure. -
10.4.1+ Custom Managed Records usable?
Der schöne Günther replied to Darian Miller's topic in RTL and Delphi Object Pascal
Also known as Elvis operator - Wikipedia 😉 -
Delphi 10.4.2 & TEdgeBrowser ( & TWebBrowser in Edge mode)
Der schöne Günther replied to aehimself's topic in Tips / Blogs / Tutorials / Videos
I have been shipping one of our Delphi applications with the WebView2 runtime for months now. It really does work fine. The easiest mistakes are Forgetting to ship the needed dll Forgetting to install (or ship) the runtime or needed beta browser version Putting the application in a write-protected folder without telling the runtime where it can write What exactly is your problem? -
No StringHelper for saving to file?
Der schöne Günther replied to PeterPanettone's topic in RTL and Delphi Object Pascal
Saving to file has nothing to do with the string itself. What's next, myString.SendOverNetworkByUDP(..)? You have TFile.WriteAllText(filePath, fileContent) from System.IoUtils, that should be enough for everybody 😉 -
Delphi on virtual machine and licence
Der schöne Günther replied to Oberon82's topic in Delphi IDE and APIs
It makes no difference whether Delphi is installed on a virtual or real machine. One installation takes one activation. If you run out of activations, you have to contact Embarcadero and ask for a "bump". I don't use Delphi on real machines anymore, only virtual machines. -
eDP: Fluid Display showing recent topics broken?
Der schöne Günther replied to sakura's topic in Community Management
You can achieve this by ctrl+clicking, or middle-clicking, or whatever you usually do to "Open In New Tab" on the headings, when in fluid view. It should not be possible. -
eDP: Fluid Display showing recent topics broken?
Der schöne Günther replied to sakura's topic in Community Management
Works for me. Have you tried ticking on the boxes, and then unticking it? Or logging out/in again? -
TJSONObject.Format bug
Der schöne Günther replied to David Schwartz's topic in Network, Cloud and Web
I don't know how to reproduce. This here runs fine: program Project1; {$APPTYPE CONSOLE} uses System.JSON; const the_resp = '{"msg": "you get ... 100 % satisfaction"}'; the_resp2 = '{"msg": "you get \"... 100 % satisfaction\""}'; DEF_INDENT = 2; var doc: TJSONObject; formatted: String; begin doc := TJsonObject.ParseJSONValue(the_resp) as TJSONObject; formatted := doc.Format(DEF_INDENT); WriteLn(formatted); doc := TJsonObject.ParseJSONValue(the_resp2) as TJSONObject; formatted := doc.Format(DEF_INDENT); WriteLn(formatted); end. -
I remember it did work by using DocumentationInsight XML comments, you had something like <remarks> See the <see cref="App.Fizz.Buzz.pas|TFizzBuzz.init">init() method of TFizzBuzz</see> for more info </remarks> where you could then click on init() method of TFizzBuzz and the IDE would take you directly there. If I recall correctly, that was removed in either XE5 or XE7 and Documentation Insight has to be purchased separately. These days, the IDE still offers you to click on it, but clicking will do nothing except freeze the IDE for a few seconds 😪 A possible workaround is to specify the absolute path (including Unit & class name) so to make the references work. Of course, they stop working if you rename either unit or class: 2021-07-09-08-49-29.mp4
-
Delphi compatibility with Windows 11?
Der schöne Günther replied to PeterPanettone's topic in General Help
Not saying that this site is not reliable, but I would always refrain from 3rd party magazines in that case. The official CPU support list from Microsoft can be found at http://aka.ms/CPUlist -
Delphi compatibility with Windows 11?
Der schöne Günther replied to PeterPanettone's topic in General Help
Stupid question: Is it running inside a VM or directly on real hardware? When I installed it inside a Hyper-V machine, it lacked 3D acceleration and a lot of effects (transparency, animations, rounded corners) were missing. -
How to deal with running async / await during application close
Der schöne Günther replied to merijnb's topic in OmniThreadLibrary
I can only speak from very positive experience, and the fact that I'm doing HMI software that runs 24/7, for months. So leaks (of all kind) are a big concern to me. For sure you can have memory, handle or GDI leaks in, for example, 3rd party GUI libraries from DLLs. But on the other side, that ReportMemoryLeaksOnShutdown also just registers things at ... shutdown. It's not going to help you either when you pile dead and unused objects on top of each other, just to tediously free them when the application ends. -
How to deal with running async / await during application close
Der schöne Günther replied to merijnb's topic in OmniThreadLibrary
I'm used to closing the debugging session with [Ctrl]+[F2] 😎 Memory leaks are taken care of in unit tests, DUnit can let a test fail when there's a memory leak.