Jump to content

dummzeuch

Members
  • Content Count

    2995
  • Joined

  • Last visited

  • Days Won

    107

Everything posted by dummzeuch

  1. OK, I can reproduce that one with Delphi 10.4 but not with Delphi 2007. This might therefore be some kind of Unicode issue, even though I can't figure out how. btw: It also happens with a much simpler regex: "ix" is enough. If you can fix it, I'll gladly accept a patch of course. If you can't, please create a bug report and include these screenshots.
  2. dummzeuch

    [Patch] Formatter: more options for uses

    I have just checked in a slightly modified version of your patch. The modifications were: removed inline variable with type inference because this is not supported by Delphi 6 fixed tab order issue in configuration dialog set the options to False in the Borland and DelForEx default configurations so they are not automatically turned on for existing configurations Thank you for your contribution.
  3. It should, and it does, at least in my test in Delphi 2007: Seaching for "Then", whole word, not case sensitive as a regular expression, found several instances of "then": Have you got an example where it doesn't work? And in which Delphi version does it fail? 10.4 ? 11.1 ?
  4. dummzeuch

    GExpert current source fails to build (03/Apr/2022)

    As said in the other post: I just did a fresh checkout of the sources, I even went so far and deleted my original sources (after ziping them of course, you never know ...) and ran the compile scripts for all supported Delphi versions. No compile error, not even a warning or hint (as it should be). Since you mention git in your other post, my first idea is a line feed issue. Delphi has various problems if the line feed style does not match the one it expects, which is usually CR+LF and one of my gripes with git is the way it handles line feeds.
  5. It's definitely in the repository under projects\DelphiXx110Alexandria. I just did a fresh checkout and it was there. No idea why you don't get it checked out, maybe a git issue?
  6. Given a simple VCL project with an empty VCL form with only the following properties changed from the default: ClientHeight = 200 ClientWidth = 200 Scaled = False The dfm looks like this: object Form2: TForm2 Left = 0 Top = 0 Caption = 'Form2' ClientHeight = 200 ClientWidth = 200 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -12 Font.Name = 'Segoe UI' Font.Style = [] Scaled = False PixelsPerInch = 96 TextHeight = 15 end and the following code: type TForm2 = class(TForm) private public procedure Loaded; override; end; var Form2: TForm2; implementation {$R *.dfm} procedure TForm2.Loaded; begin Caption := Format('%dx%d', [ClientWidth, ClientHeight]); inherited; end; The project's manifest is configured for auto generate, runtime themes enabled and Per Monitor v2 DPI awareness. I would have expected the form to show with a Caption of '200x200' regardless of screen resolution or DPI. But I get this: And the form has indeed these dimensions. But why? Even if some scaling took place, I would have expected a client width of 300 rather than 618 This is Delphi 11 with Patch 1 applied. That's the latest oddity which is driving me crazy.
  7. dummzeuch

    Deputy IDE Expert

    That is not necessarily related to Deputy IDE expert. It also happens (sometimes) with only GExperts installed when closing the IDE. I could never figure out what causes it. It's an assertion in a destructor in SynEdit.
  8. To be fair: David also tends to be - lets say "terse" - in his answers. That can also be interpreted as rude, in particular by people for whom English is a foreign language.
  9. dummzeuch

    [Patch] Formatter: more options for uses

    I have seen the ticket, but haven't yet found the time to actually look at the code. But I definitely will. I'm grateful for any contribution to GExperts, in particular for patches that fix bugs or improve the tool.
  10. dummzeuch

    SynEdit just got a major uplift

    Yes. 😢
  11. dummzeuch

    SynEdit just got a major uplift

    Who is resposible for updating SynEdit in Getit? Embarcadero?
  12. dummzeuch

    Delphi 11.1 file associations not set

    If I remember correctly there is an installation option to select the file types that Delphi registers itself for. There is also the same settings in the IDE's configuration dialog: Try to type "file association" into the dialog's search box (whatever that is called is called, probably "<whatever> insight"):
  13. I have already done that. There is now one move operation left per picture and that's between the buffers used by the API and the buffers used internally by my code. I found no way for avoiding this.
  14. dummzeuch

    INI problem

    Yes, I'm aware of that.
  15. I will definitely do that before using it. So far I have just had a look.
  16. Found them, thanks. Just in case anybody else wants to look at them: * for 32 bit: https://github.com/synopse/mORMot2/blob/master/src/core/mormot.core.base.asmx86.inc * for 64 bit: https://github.com/synopse/mORMot2/blob/master/src/core/mormot.core.base.asmx64.inc
  17. dummzeuch

    INI problem

    That's why the mentioned internal programs support redirection with a section like this: [redirect] inifile=some\path\to\another\inifile (and usually nothing else) This will redirect the access to the inifile to a different file. It supports environment variables in the file name and the name can be relative to the main ini file. It gets even more flexible by allowing to redirect sections or even single entries. I'm using something similar in dzPrepBuild to keep version information in sync between several executables belonging to the same project, e.g. GExperts: [Version Info] AutoIncBuild=0 Build=redirect:..\..\SVN_Version.ini,SVN,HighestVersion MajorVer=redirect:..\GExperts_version.ini,Version Info,MajorVer MinorVer=redirect:..\GExperts_version.ini,Version Info,MinorVer Release=redirect:..\GExperts_version.ini,Version Info,Release [Version Info Keys] FileVersion=1.3.4.0 FileDescription=GExperts for Delphi 2007 OriginalFilename={ProjectName}.dll InternalName=GExperts for Delphi 2007 Comments=redirect:..\GExperts_version.ini,Version Info Keys,Comments CompanyName=redirect:..\GExperts_version.ini,Version Info Keys,CompanyName LegalCopyright=redirect:..\GExperts_version.ini,Version Info Keys,LegalCopyright LegalTrademarks=redirect:..\GExperts_version.ini,Version Info Keys,LegalTrademarks ProductName=redirect:..\GExperts_version.ini,Version Info Keys,ProductName ProductVersion=redirect:..\GExperts_version.ini,Version Info Keys,ProductVersion Of course if is that is done excessively you will end up with an unmaintainable set of files.
  18. dummzeuch

    INI problem

    That depends. Our internal programs all do that. They aren't installed under program files, though.
  19. dummzeuch

    Strange Benchmark Results; Am I Missing Something?

    Have you tried integer instead of Int64? Or are we talking the 64 bit compiler? (1 billion is < 2^31 of I'm not totally mistaken.)
  20. A long time ago I added the Identifier tab to the Uses Clause Manager in GExperts. It looks like this: In this screen shot, I filtered for TWinControl and the expert found several matching entries, the two top ones in the unit Controls. While this looks like a bug at first (indeed I have received a bug report for it) it is in fact a feature. There are actually two declarations of TWinControl in the unit Controls. (read on in the blog post)
  21. Feel free to add a feature request on sourceforge.
  22. dummzeuch

    Delphi 11.1 is available

    Marco is not free in his communication neither on his blog nor in any public forums. Embarcadero has a very strict policy on what and where employees are allowed to post. It also applies to other people associated with the company, like beta testers and even MVPs. They have to agree to a very strict NDA. That's why a few years ago, after reading that NDA I decided not to become an MVP. I also suspect that this is the reason why many people who were blogging a lot about Delphi quieted down when they got more closely associated with Embarcadero, e.g. they sold tools to them or even became employees. If you have to get approval for every single blog post you probably won't bother any more.
  23. dummzeuch

    Any example bitmap to grayscale?

    Edit: This was utter bullsh*t. My only excuse is that I must have been very tired when I wrote this. On the bright side: @Anders Melander reaction to it just helped me find the problem in my current project which used exactly that code (and seemed to work fine until I tried to generate the grayscale histogram).
  24. dummzeuch

    Delphi 11.1 is available

    No, I didn't. Why should I? There is no hint on that page saying what it's good for. And it was never mentioned in the email communication from Embarcadero. So, did you upload your licenses there? If yes, what prompted you to do that? Edit: Yes, it makes a difference. Now, all of a sudden, I get Delphi 11 listed there. Thanks for that hint, but I am still confused why I'd need to do that.
  25. dummzeuch

    Delphi 11.1 is available

    https://my.embarcadero.com/#downloadsPage That's where I looked and didn't find anything.
×