-
Content Count
3524 -
Joined
-
Last visited
-
Days Won
116
Everything posted by Lars Fosdal
-
I guess you've read this: https://stackoverflow.com/questions/39190582/error-itms-90023-missing-required-icon-file Edit: Never mind - seems to be irrelevant. Are you using the most recent version of XCode?
-
Another solution to the font predicament is to use a translation tool for the actual text to be displayed, keeping the string constant in the code in English. In translation tools, you are usually not bound to monospaced fonts. This would also allow programmers not fluent in Thai to understand the text, and it would make the application ready for translation to a multitude of languages.
-
For future reference: Which font was it and where did you find it? Edit: An idea for a future enhancement of development IDEs would be support for custom fonts (that not necessarily are monospaced) for string constants in the source code. I won't be holding my breath for that to arrive, though - since it opens a hornet's nest of questions such as "Why does the cursor jump many characters to the right when I navigate up or down from this string constant?"
-
A class that returns different types of components
Lars Fosdal replied to Stano's topic in Algorithms, Data Structures and Class Design
Maybe it's a language barrier thing, but I am still having problems understanding the actual problem you are trying to solve. -
A class that returns different types of components
Lars Fosdal replied to Stano's topic in Algorithms, Data Structures and Class Design
It can be done if the Controls have the same base class, but if you need to interact with the controls in a generic way, it would quickly become unmanageable without a lot of wrapper code, and even then it would probably be just as easy to simply return some enumerated value that decides the appropriate code paths later on. -
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
I have to repeat this comment. Among other things, these books give excellent advice on naming conventions. -
1 error + 1 error = 3 errors? where is the extra one?
Lars Fosdal replied to c0d3r's topic in Delphi IDE and APIs
Example? -
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
EnableDisableWindow(WhyNot: boolean) -
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
EnableDisableWindow(wnd, FALSE) does not convey the meaning of FALSE, while EnableWindow(wnd, FALSE) does. -
I'd suggest using GitHub to share code. Makes it easy to access, easy to contribute to, and prevents walls of code in a small forum.
-
ANN: Parnassus Parallel Debugger
Lars Fosdal replied to Dave Millington (personal)'s topic in Delphi Third-Party
You need to be on a subscription, and using 10.4.1. -
So - on the problem system - the log stops before "sync completed" ? Is the process running elevated? Is there anything in the windows logs? What about the local firewall settings on the problem PC - does it allow UDP through?
-
Did you read this thread?
-
TIdSNTP.ReceiveTimeout defaults to IdTimeoutInfinite; (-2). Try setting it to the desired timeout interval in milliseconds?
-
Most of these fonts presented in the Options | UI | Editor | Display list of my Delphi, are not installed with Delphi, nor are they installed with Windows. Their common trait is that they are monospaced - which also is the default for VS Code, btw. Searching for monospaced and Thai, this shows up - and it is monospaced, has Thai characters, but doesn't appear to support Unicode Thai - so I am unsure if it will work as desired. https://www.dafont.com/pw-thai-monospaced-.font Edit 1: I also found https://bwaiwai.blogspot.com/2013/06/DejaVuSansMonoThai.html - but couldn't find a free download to check its Unicode coverage. Edit 2: The last comment on this page, suggests some other alternatives as well. https://forum.portswigger.net/thread/thai-characters-not-displayed-correctly-in-the-burp-suite-f39cb4ff My list of Delphi available fonts.
-
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Lars Fosdal replied to TDDung's topic in Cross-platform
TBH, I am careful around any pre-built binaries. -
My guess would be that I is in a sub-select, and not visible in the main expression? I use MSSQL and not Interbase, though.
-
Does any of these work? https://catalog.monotype.com/language/thai
-
TIdTime: datetime-method is not returning in local time for Android and iOS
Lars Fosdal replied to philipp.hofmann's topic in Network, Cloud and Web
IMO, it would be natural to use the UTC time as your comparison time, and not the local time. The user's time zone may vary with travel. Wherever the user is at the moment - only UTC timestamps are comparable. However - if you are talking to a central server, the only way to ensure comparable timestamps is that you create them on the server, and not on the clients. This is because you cannot rely on multiple devices time engines to be 100% in sync with eachother. So - When you connect to the server, the server gives you a timestamp for the data you request. This you store locally. The next time you connect to the server, you compare the stored timestamp with the server's timestamp to determine if there was a change. -
Customizing source editor
Lars Fosdal replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
Money Green wasn't too bad, actually. Going to try that a little bit. Well - actually - it is a bit too "off" with the rest of the UI, when that is in light mode. -
This post indicates a "workaround". Not sure why this is necessary. Is your app an FMXLinux app? https://synaptica.info/en/2020/11/26/delphi-fmxlinux-launcher-icon/
-
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Lars Fosdal replied to TDDung's topic in Cross-platform
I prefer that people link to the original source and/or describe how to collect the appropriate set of binaries from the official sources, rather than "republish" them. There is a staggering amount of malware out there, and you may call me paranoid, but the fact is that convenience is not a good reason to download binaries from unverified sources. -
Are you providing an .ico file or images for the icon? If I remember correctly, .ico is a Windows only thing.
-
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Lars Fosdal replied to TDDung's topic in Cross-platform
Another set of binaries... Am I the only one that is completely allergic to binaries from unknown sources? -
Which form is the parent/owner of the print dialog?