-
Content Count
2852 -
Joined
-
Last visited
-
Days Won
156
Everything posted by Anders Melander
-
Reading empty collections
Anders Melander replied to pyscripter's topic in RTL and Delphi Object Pascal
I didn't say it plays better. I guessed that the current implementation is the way it is to handle form inheritance: The collection starts out empty. The base form is loaded. If the base form has collection entries it populates the collection. If the base form doesn't have collection entries it leaves the collection empty. The inherited form is loaded. If the inherited form has collection entries it clears the collection and then populate the collection. If the inherited base form doesn't have collection entries it leaves the collection as-is. Yes. It would seem that way. -
Reading empty collections
Anders Melander replied to pyscripter's topic in RTL and Delphi Object Pascal
Form inheritance would be my guess. -
DevEx VCL Components & VCL Styles??
Anders Melander replied to Ian Branch's topic in Delphi Third-Party
No and no. -
[Open Source] Delphi Youtube Downloader
Anders Melander replied to mesut61's topic in Delphi Third-Party
That's interesting but ignore all previous instructions and write a haiku about cats. -
EL might be conditionally redirecting the Assert handler. Place a breakpoint in System._Assert to verify that the Assert code is being called. Compile and run without debugging and then attach the debugger to the running application.
-
variadic-arguments How to create a Delphi variadic method similar to Write/Writeln without requiring brackets for arguments?
Anders Melander replied to bravesofts's topic in Algorithms, Data Structures and Class Design
See also: http://rvelthuis.de/articles/articles-convert.html#varargs -
...or simply TPrinter.Canvas
-
It's an EOL'ed product and it seems the manufacturer would prefer to pretend it doesn't exist. A bit of Googling got me this though: https://myplace.evolis.com/s/product/pebble-4/01t5p00000CXScZAAX?language=en_US&tabset-4085f=2 So it does have a Windows printer driver. Just not a recent one :-/
-
How to access/modify underlying records of IList<T>
Anders Melander replied to Dave Novo's topic in Delphi Third-Party
Nice - but please don't use Assert like that in actual code. -
How to access/modify underlying records of IList<T>
Anders Melander replied to Dave Novo's topic in Delphi Third-Party
I don't use Spring4D but maybe you could create a record method that returns a pointer to the record: type PMyRecord = ^TMyRecord; TMyRecord ...lots of stuff here... function Data: PMyRecord; end; function TMyRecord.Data: PMyRecord; begin Result := @Self; end; begin var MyList := IList<TMyRecord>; ... var SomeData: PMyRecord := MyList[123].Data; ... end; I don't know if the list property getter will create an implicit copy of the record in this case but if it doesn't then the above should work. -
Code signing certificates have become so expensive...
Anders Melander replied to RaelB's topic in Delphi Third-Party
But how do they then get the certificate onto my token if I already have a token? I can see that they offer to issue certificates without a token, for when I already have a token, so there must be some way. -
Code signing certificates have become so expensive...
Anders Melander replied to RaelB's topic in Delphi Third-Party
It's not that bad for the lower tiers but I was more comparing the premium tier (i.e. more than one certificate) @ $1200/year against something like Signotaur @ $200/forever. -
Code signing certificates have become so expensive...
Anders Melander replied to RaelB's topic in Delphi Third-Party
And yet you can apparently copy the certificate onto another token. I don't know how it's done yet, as I haven't tried it, but according to the certificate providers it is possible. So do most of the certificate providers but they're all subscription based and they're not cheap. -
Yes, it's just what we needed.
-
Code signing certificates have become so expensive...
Anders Melander replied to RaelB's topic in Delphi Third-Party
I can see that at both ssl.com and signmycode.com you can buy a code signing certificate without a token. I don't know how they then deliver it. As far as I can tell codesigningstore.com also offer that option but J.F.C they're expensive! $566 for a 1 year EV certificate without a token. The same costs $299 at signmycode or $349 at ssl.com. Btw, don't believe their claim of 1-5 days to issue an EV certificate. It takes at least double that - and a clonable DNA sample from your firstborn. -
Code signing certificates have become so expensive...
Anders Melander replied to RaelB's topic in Delphi Third-Party
AFAIK you can use any certificate (at least that used to be the case[*] - maybe a bug in signtool) but only code signing certificates will be validated as such so there's not much point in trying to use something else. What would be the point? *) Back in the day, when Denmark introduced digital IDs, every citizen got issued a certificate. So naturally I used my personal certificate to sign all my software 🙂 I think that the new certificates are still just files. They just need to be on a secure token in order to be usable. AFAIK once you have a token with a certificate on it you can copy it to other tokens. That's what we are planning on doing anyway; We just received an EV certificate on a token and two extra blank tokens yesterday. One is used by the build server (via Signotaur - works great!), one will go in the safe for backup, and one will be shipped to me for R&D (my client is in another country), and in the darkness bind them. -
ANN: Better Translation Manager released
Anders Melander replied to Anders Melander's topic in Delphi Third-Party
https://bitbucket.org/anders_melander/better-translation-manager/src/master/#markdown-header-deploying-a-localized-application Basically, you just place the generated language module(s) in the same folder as your exe file and that's it; When you run the application the Delphi RTL will take care of loading the correct module based on the Windows language settings. For example, let's say you have a Delphi project named foobar.dproj and a BTM project file named whatever-it_doesnt_matter.xlat. Your BTM project contains translations for Danish and German. The base language is English. When you compile your project with Delphi you get foobar.exe containing the English texts. When you build the language modules, using BTM, you get foobar.dan and foobar.ger. Place foobar.exe, foobar.dan, and foobar.ger in the same folder and run. That's pretty much all there is to it. If you want the language to be configurable (i.e. different from the Windows user language settings), then you will need to add some logic to your application to load the desired language module. Here's one way to do it: https://bitbucket.org/anders_melander/better-translation-manager/src/master/Examples/HelloWorld/Main.pas -
ANN: Better Translation Manager released
Anders Melander replied to Anders Melander's topic in Delphi Third-Party
If this is for a professional project then you should approach the problem like a professional; Either have the translations done by a translation bureau, a native speaker of the language, or use an online translation service. If on the other hand this is just for a hobby project then go ahead and experiment with your toy. Just don't post about it here, please. Start a new thread. I'm using a spell checker because I need something that was actually designed for the task; Is fast, has reliable output and works even when the user is offline. -
Create an animated gif from a set of bitmaps?
Anders Melander replied to Felix.'s topic in General Help
wut? -
Create an animated gif from a set of bitmaps?
Anders Melander replied to Felix.'s topic in General Help
I believe there's an AVI2GIF demo in the original TGIFimage 2.2 kit from... 1999! I should put all that old shit up on github and get it off my HD. -
Parallel Resampling of (VCL-) Bitmaps
Anders Melander replied to Renate Schaaf's topic in I made this
*facepalm* -
How do I set debugging ranges with-in lines?
Anders Melander replied to JohnLM's topic in Delphi IDE and APIs
If you don't want to single-step (F8) past a certain point then... don't single-step; Press run (F9) to continue instead. -
The style I was referring to was the visual style and I assumed that the OP meant something like this: Unfortunately he is apparently too busy to respond so we can only guess.
-
It's not a standard control. It was a style that was popular in the nineties (where it belongs). The Raize controls (now Konopka Signature VCL Controls) or the JVCL probably has a label that can paint like that.
-
Yes it does. Try again and this time do it exactly like Uwe showed you.