Der schöne Günther
Members-
Content Count
654 -
Joined
-
Last visited
-
Days Won
12
Everything posted by Der schöne Günther
-
Not necessarily a thread (the application will close anyway), but a task: procedure TForm1.Button1Click(Sender: TObject); begin TThread.CreateAnonymousThread( procedure() begin while true do; end ).Start(); end; procedure TForm1.Button2Click(Sender: TObject); begin TTask.Run( procedure() begin while true do; end ); end; The application will close fine after Button1 has been clicked. The executable, however, will never terminate after closing the main form if Button2 was pressed.
-
Delphi Code-Insight problems
Der schöne Günther replied to Celso Henrique's topic in Delphi IDE and APIs
There is. [RSP-30238] Code Completion don't work in class function - Embarcadero Technologies -
Is XML Documentation in Delphi 10.4 is 105% broken?
Der schöne Günther replied to Lajos Juhász's topic in Delphi IDE and APIs
The "express edition" of Documentation Insight was only bundled with RAD Studio until XE5. After that, it was removed. Source: DevJet Software » Documentation Insight Express has been released with RAD Studio XE2 As far as I can remember, you should be able to copy some files from your XE5 installation over to a new RAD studio version and the mouseover will still display as it did in previous versions. -
Can you link us where that was proposed? I don't see a workaround suggestion. Looking at the three required conditions for memory to leak: Can't parsers like FixInsight help here? I think (2) should be a rare enough occasion and still easy to find.
-
stream object to / from INI file using latest RTTI stuff
Der schöne Günther replied to David Schwartz's topic in RTL and Delphi Object Pascal
An .ini file has no hierarchy. How are you going to serialize nested objects like TMyObject = class someData: TBytes; someReference: TMyObject; // can be nil end; Formats like XML or JSON can properly deal with this, not sure how INI could be a good choice here. -
Embarcadero Toaster - Notification Window Caption in Win10
Der schöne Günther replied to Shavkat PANDA's topic in VCL
I don't have a full solution for you. The "Embarcadero.DesktopToasts." plus some hash value at the end is hardcoded into System.Win.Notification.pas You need to take a look at the constructor above and probably class function TNotificationCenterWinRT.CreateShortcut(): Boolean; I would assume (not tested) that you can either Create your own subclass of TNotificationCenterWinRT that does not have this weird behaviour Modify System.Win.Notification.pas Also, you might want to post this at quality.embarcadero.com Altough the last time it was brought up (2016), it was closed as "Cannot reproduce" https://quality.embarcadero.com/browse/RSP-14776 -
Embarcadero Toaster - Notification Window Caption in Win10
Der schöne Günther replied to Shavkat PANDA's topic in VCL
Which Delphi version are you using? When I check in 10.0 Seattle, the following code from System.Win.Notification makes it pretty obvious: constructor TNotificationCenterWinRT.Create; var LWSAppID: TWindowsString; begin inherited; FNotifications := TDictionary<string, IToastNotification>.Create; LWSAppID := TWindowsString.Create(AppId + THashBobJenkins.GetHashString(ParamStr(0))); FToastNotifier := TToastNotificationManager.Statics.CreateToastNotifier(LWSAppID); end; private const AppId = 'Embarcadero.DesktopToasts.'; I would not expect it is still like this in current Delphi versions. -
Not a problem, because as I said, I have the VM on several computers. Backups can be made with 2 mouse clicks.
-
I'm happy with different Delphi installations living in their virtual machines (Hyper-V). That also allows me to transfer the exact same Delphi installation to different PCs with no need to activate again.
-
Can no longer print pdf from Twebbrowser component and can't load to edgebrowser
Der schöne Günther replied to Damon's topic in VCL
For months. It works flawlessly. Keep in mind that you don't get anything from installing Edge on the target computer. You must either install the runtime, ship the needed binaries or install a beta/dev version. Explained here: https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution -
Can you restart the LSP or do you have to restart the whole IDE?
Der schöne Günther replied to Der schöne Günther's topic in Delphi IDE and APIs
Then I wonder what the point of outsourcing them into separate processes was. Maybe a cheap way of prolonging running out of memory for the 32 bit IDE process 😀 Oh well... -
git and Delphi tooling?
Der schöne Günther replied to Lars Fosdal's topic in Project Planning and -Management
Same. I'm mainly using Mercurial as I somehow get things done twice as fast as in Git, but when I use git, VS Code and its plugins (like Git Graph) do everything I could ask for. -
I can serialize a record but I can not deserialize
Der schöne Günther replied to dkounal's topic in Algorithms, Data Structures and Class Design
Or another library, like paolo-rossi/delphi-neon: JSON Serialization library for Delphi (github.com) -
This doesn't answer your question, but ... ... this screams for unit tests like "Ensure requests are still properly going out after the previous server disconnected right in the middle of the transfer, sent garbage or timed out". Not only would you not have to constantly re-recreate clients, you can also sleep easier, knowing (instead of hoping) it works.
-
Looping Memo.Text
Der schöne Günther replied to Henry Olive's topic in Algorithms, Data Structures and Class Design
The memo content is just a string. You can split a string into multiple strings (string array). var sqlCommands := Memo1.Lines.Text.Split([';']); -
How to optimize exe loading times
Der schöne Günther replied to a topic in Software Testing and Quality Assurance
A "profiler" does exactly just that. Have you fed "delphi profiler" into a search engine of your choice? -
looking for animated 3D lettering
Der schöne Günther replied to David Schwartz's topic in General Help
A TWebBrowser? 😶 -
My 10.4 informed me on the start/welcome page as soon as the update was available. Also, I think the primary place to look for things should be the https://my.embarcadero.com/
-
Does C++ Builder have code completion?
Der schöne Günther replied to Der schöne Günther's topic in General Help
I'm looking forward to trying it out again in the near future. Binary compatibility with Delphi is still something no other product offers. -
As far as I understand WinUI 3, it will be a UI library, independent of the application mode (Win32 or UWP). The RAD Studio November 2020 Roadmap PM Commentary (embarcadero.com) states (emphasis by me) As far as I understand, this sounds especially like XAML Islands, and I suppose this is also what the component WinRT (winsoft.sk) does. Here is the description from Microsoft Source: WinUI (microsoft.github.io) I am really looking forward to this. One downside is that XAML Islands were introduced in Windows 1809, but only in beta. It is officially supported from 1903 on. We are deploying devices with the latest Windows LTSC branch, which is 1809. I have talked to Microsoft developers about this, and while it should work on 1809, there might be issues, and I should not expect workarounds or patches. Let's see how this goes...
-
Suggestion to move the following threads there Does C++ Builder have code completion? - Offtopic - Delphi-PRAXiS [en] What's the correct way to free an object in C++Builder? - GExperts - Delphi-PRAXiS [en] Update: C++Builder and Platforms Support - Cross-platform - Delphi-PRAXiS [en]
-
WinUI in Delphi (planned for 10.5?)
Der schöne Günther replied to Der schöne Günther's topic in Windows API
Very true. The same applies to Embarcadero. If 64 Bit or DPI scaling is so easy, then why does their own IDE not support it yet? Microsoft already uses, for example, WebView2 in Outlook and others, but I have yet to see other new controls in office products. To be fair, WinUI is still in preview. -
You can make those buttons do what you want, which includes "Page up" or "page down". To be honest, I remember that being a bit tricky. I should be able to access that projects source in a few hours (in case no one else has a solution at hand).
-
I still don't quite understand why you're marking it so hard. You said your primary audience is using touch. Why don't you just place some big buttons right next to the DBGrid?
-
I also tried something like this in the past. We dropped it, because it was a bad idea after all, even for a kiosk application like ours. Yes, it takes time. Sometimes, even other 3rd party application would completely lock up. I would strongly recommend to drop this approach. It will take a bit of work to roll your own scrollbar (for a general TWinControl, and maybe a TDBGrid), but you will end up with something that fully suits your needs and can be customized to run differently in Touch and in Desktop mode.