Jump to content

Sherlock

Moderators
  • Content Count

    1301
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by Sherlock

  1. Sherlock

    I'm on the Dark Side... no, really!

    Since the dark mode is a non trivial thing to do with Delphi without the pesky skins, I believe we should better not hold our breaths.
  2. I made the mistake of updating LockBox 3 for my Delphi 12.1 via GetIt and now it wont install. Reason is they somehow checked in their sources with LF only instead of the expected CRLF. Now the package wont compile and I have no way of fixing this as I am unaware of the procedures needed to complete the installation manually. IDE is set to automatically convert all known file types to CRLF. I really don't know where to point the search path and/or library. Any help is much appreciated.
  3. Sherlock

    LockBox 3 via GetIt broken since April 2024 Update

    OK, should have checked the original source for an installation instruction. https://github.com/TurboPack/LockBox3 it says all I need to know right there. Thanks, and sorry for the trouble. Which leaves the wrong CRLF settings. They seem to be attributable to a .gitattributes file which looks faulty to me. Delphi requires CRLF independent of native languages or other. So default behavior for text should be set to CRLF and not auto.
  4. Sherlock

    Cursor "crNo"

    Is this VCL or FMX?
  5. You got me thinking...that is the way I used to do it. I'm unsure why I had to switch to this unwieldy TextLayout method. I think it is because of HiDPI and scaling and such....Which might be easier accounted for with a TextLayout.
  6. @Anders Melander You are right, I totally overlooked that small caveat. Sorry about the digression. Unless the output file is a pdf or some other graphical print format. Then my method should still be at least a base from which to explore further.
  7. When I faced this problem I used to write to the canvas and checked the width afterwards. Now with FMX this is a bit easier through the TextLayout Unit. If you are using FMX, check out this: http://docwiki.embarcadero.com/RADStudio/Alexandria/en/ FireMonkey_Text_Layout in a nutshell you create a TextLayout object via a TextLayoutManager, which knows the Canvas you're writing on. Then set the properties you want the text to have (Font, size, color, etc.) and enter the text and you can retrieve the TextWidth as a property of the TextLayout object.
  8. Sherlock

    ...cannot contact a domain controller..

    @Beantreeze Don't worry. We have all been there. Some (like me) more than others. It is part of the learning experience called life.
  9. Once this issue is resolved, take a look at class helpers. Perhaps this could help get around the need to change RTL/VCL units.
  10. Hence my feeling for the need of discussion.
  11. I presume you copied this altered version to your projects path...? And it is missing from the other project? Project requirements that require a change to a file which might in turn get changed with every patch/update of the IDE are at least worthy of discussion.
  12. Sherlock

    A gem from the past (Goto)

    That reminds me:
  13. Sherlock

    ActionList Editor: New Standard Action...

    I'm guessing this is one of the shortcomings of Jira Service Manager vs. Jira. I considered the option to vote for a call a good thing too.
  14. @Rick_Delphi Please don't kill this forums raison d'être. 😉
  15. Funny this has remained unmentioned thus far: Object Pascal Handbook by Marco Cantù ...especially because it is free.
  16. Sherlock

    Do you need an ARM64 compiler for Windows?

    Well, considering Windows on ARM will be gaining momentum as soon as some of these https://www.windowscentral.com/hardware/laptops/here-are-the-9-pc-makers-supporting-qualcomms-game-changing-snapdragon-x-elite the streets, it might be a smart move to get the compiler running. But that's just my totally unprofessional opinion. On the other hand, MS themselves are increasing the pressure. Just look at the agenda for this years "Build": https://build.microsoft.com/en-US/sessions/9d806202-be61-4b5d-ba0d-59ecfcaf0482?source=sessions
  17. Now where would be the fun in that?
  18. Sometimes I'm thankful for my ignorance. I didn't even know it was possible to concatenate without the +. Otherwise I would be in Anders' position and screaming bloody murder.
  19. Sherlock

    Writing if statement in the Code Editor

    D12.1, 100%, Dark Theme. Broken behavior: And there is enough space above and below for the hint to move.
  20. I think it is not filling the fields themselves, but the words used to fill them. Some "Heuristics" are really just that simple. Take Windows UAC installer detection for example. If an exes name contains Install, setup or even patch it will automatically need to be run with elevated privileges. If however you provide a manifest requesting a non elevated execution level the UAC will not elevate.
  21. Sherlock

    Delphi 12.1 is available

    Web installer worked fine for me too. Impressive list of fixes. Worried about the future of bug tracking though.
  22. Sherlock

    Delphi 12.1 is available

    Just spent the last 30 minutes staring at the screen, waiting for progress. Task manager showed high load in MS Defender...so I finally killed that and now the web installer is running. I wonder what was amiss there....
  23. Sherlock

    Delphi 12.1 is available

    This is 12 patch 1 version info. They must have done something....
  24. Sherlock

    Regression - Delphi 12 - IsZero()

    OK here's what I don't get. Seeing this const FuzzFactor = 1000; SingleResolution = 1E-7 * FuzzFactor; DoubleResolution = 1E-15 * FuzzFactor; I have to ask myself, why not const SingleResolution = 1E-4; DoubleResolution = 1E-12; Sure the calculation happens only once, and FuzzFactor seems to explain a magic number but then we still have those other magic numbers... just an observation.
  25. Sherlock

    Bugs - where to write to fix it?

    The word you are looking for is "incomplete".
×