-
Content Count
33 -
Joined
-
Last visited
Everything posted by domus
-
OpenAI have introduced something that seems quite useful in getting a consistent, structured reply from ChatGPT: Structured Outputs. Is there a way to use it in Delphi, without reverting to Python? Just asking in case someone has already gone through the research, and slightly lazy on my part, admitted. Cheers, Dom
-
While the documentation site is down, would anyone know why it's a problem using an Int64 with an Sqlite database? Int64 values written to Sqlite Integer fields seem to be problematic (truncated to 32-bits). Manually changing all field properties to .AsLargeint, on the other hand, throws a "type mismatch" exception at application startup. All Sqlite integer fields are supposed to support 64-bit values. (don't bother, solved by manually using BIGINT in creation of table)
-
Why is it a problem using an Int64 with an Sqlite database?
domus replied to domus's topic in General Help
Just FireDAC, in Windows. But problem was solved in the mean time. Cheers! Dom -
Does WebView2 function when inside an app launched with SW_HIDE command?
domus posted a topic in General Help
(had the audacity to ask this in StackOverflow, which was a mistake, so trying here) I know, a very esoteric and specific question, but I'm spending ages trying to figure out why none of the navigation events get triggered when I'm trying to get a web page capture inside an app that was launched with ShellExecute(0, 'open', PChar('WebpageFetcher.exe'), nil, nil, SW_HIDE), while they do get triggered when using SW_SHOW. Tried using both WVBrowser1.CreateBrowser(WVWindowParent1.Handle) and WVBrowser1.CreateWindowlessBrowser(WVWindowParent1.Handle). Both work perfectly when using SW_SHOW, but I'm guessing that because the main form is hidden when using SW_HIDE, the OnNavigationCompleted and OnCapturePreviewCompleted are not triggered. However, OnDOMContentLoaded does get triggered in all cases. Overlooking something very basic, I'm sure. I don't need to see any form, just get the capture. Might it be that, when using SW_HIDE, the app doesn't have a proper messaging loop running and these events don't get propagated...? If anyone has any pointers, appreciated. -
Does WebView2 function when inside an app launched with SW_HIDE command?
domus replied to domus's topic in General Help
Odd. Maybe the parent was temporarily visible...? Maybe another mechanism involved. Or I should just update the library. -
Does WebView2 function when inside an app launched with SW_HIDE command?
domus replied to domus's topic in General Help
Can't find that method for WebView2. Deprecated...? -
Does WebView2 function when inside an app launched with SW_HIDE command?
domus replied to domus's topic in General Help
That worked. Apparently it's a known issue, causing many headaches: https://weblog.west-wind.com/posts/2022/Jul/14/Fighting-WebView2-Visibility-on-Initialization Many thanks! Saved me a lot of time! -
Does WebView2 function when inside an app launched with SW_HIDE command?
domus replied to domus's topic in General Help
That helps a lot and was more or less my inkling. I'm proceeding in that direction now. It's just a tad frustrating that it all worked fine, until that very last bit of changing SW_SHOW into SW_HIDE. What SO is concerned, a hundred years ago, when it took off, you could start out asking a question and then (collaboratively) polish it over time, until it became something you could put inside Encyclopedia Britannica. Today, if your question doesn't immediately resemble an Encyclopedia Britannica entry, you have to put on donkey ears and sit in the corner for ten minutes (or, in SO terms, get downvoted). Discouraging. -
I have tried to find this online, but was unsuccessful. Would anyone know if it's allowed to install a Community Edition of Delphi on two separate PCs simultaneously? (PC and laptop) Many thanks. Cheers, Dom
-
So, it was in the EULA and I managed to not see that. Thanks again, Remy!
-
Way for external app to jump to a unit and position inside the IDE?
domus posted a topic in Delphi IDE and APIs
Would anyone know of a way for an external app to jump to a certain unit and position inside the IDE? Like, unit "Main.pas", line 100. Many thanks for pointers. -
Way for external app to jump to a unit and position inside the IDE?
domus replied to domus's topic in Delphi IDE and APIs
Excellent approach. I'll give it a try. Thanks! -
Way for external app to jump to a unit and position inside the IDE?
domus replied to domus's topic in Delphi IDE and APIs
That's the problem. I'd need to write a plugin that listens to the external app... Thanks and cheers. -
Way for external app to jump to a unit and position inside the IDE?
domus replied to domus's topic in Delphi IDE and APIs
That's indeed a way to get me started. Totally forgot about ShellExecute being an option here. Thanks for that! If anyone would know of a way to navigate to a certain procedure or class, or line number, I'd be grateful to receive that knowledge. But it's probably all documented somewhere in the Tools API documentation and I should just resort to reading it. -
Bitmaps regularly disappearing from Rectangle components
domus posted a topic in Delphi IDE and APIs
In my FMX forms, I regularly have the issue that all bitmaps have vanished from my TRectangles (Fill.Bitmap property). The odd thing is, that the correct bitmap sizes are still displayed in the property editor, but the bitmaps, themselves, are gone. Is a bit annoying to have to fish them all back from different places all the time. Is this a known issue in 10.4? Thx! -
Bitmaps regularly disappearing from Rectangle components
domus replied to domus's topic in Delphi IDE and APIs
Just happened again. In text mode, I thought the form looked perfectly defined, with all bitmap data present, but at a closer look, the bitmap data was a lot smaller than should be. When switching back to the form, it's all gone. Also when compiling and running. Odd. -
Bitmaps regularly disappearing from Rectangle components
domus replied to domus's topic in Delphi IDE and APIs
Of course. Would just be nice to find the cause, instead of having to remedy the effect each time. -
Bitmaps regularly disappearing from Rectangle components
domus replied to domus's topic in Delphi IDE and APIs
It happens during design. When loading the project, the bitmaps are simply gone. No changes to the Kind property. That's the one thing I keep forgetting to do; check the form's source. Too much in a hurry to fish them all up again. I'll check next time. Thanks for your reply. -
Setting "no visible right margin" in Delphi IDE loses the custom background color
domus posted a topic in Delphi IDE and APIs
Hi, When I disable "visible right margin" in the IDE settings, my custom background color for text is lost. Same happens when I do set a visible right margin, but the window is too small to show it. Is this a known issue in 10.4? Thx. Cheers, Dom -
Sent you all the stuff over Telegram, but the day after, Telegram tells me "no messages here yet." Bliss, now I'm also raising issues with the software that I have to use to raise an issue with other software. Will try again later. This is 2022. Communication is hard.
-
Is there any Skia4delphi specific documentation for TSkShader etc.? Or do we use https://api.skia.org/? Thx!
-
As an aside, this test rendered the animation perfectly when loaded and played in the https://lottiefiles.com/ site. Don't know if this is useful info.
-
As I suspected, it had to do with the "property pick whip," linking properties of different objects. When I detached them and configured them separately, it worked. Your link, however, was kind of depressing to read; Well, my test used a Gaussian blur effect and that seemed to work fine, so I hope it doesn't concern all of them... Cheers, Dom
-
First test with a Lottie export from AE. Two superimposed circles with animated trim paths (connected parameters). Only one circle is animated, the other not. In the Lottie preview in the AE Plugin, all seems fine. In Delphi, only one circle is animated. Are there any limitations to the complexity of these Lottie imports (or unsupported functionality)?
-
I'll check that out. Thanks! Looking forward to checking it out. Many thanks for your swift and complete replies!