Jump to content

TurboMagic

Members
  • Content Count

    255
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by TurboMagic


  1. Your idea is of course how one might find it, if it shows in a reduced demo.
    My first question would be: what's different between those two forms that one shows this
    problem and the other works as expected.

     

    So which properties or behavior can influence that?

    Both forms have set:

    - BorderIcons := [biSystemMenu,biMinimize,biMaximize]

    - BorderStyle := bsSingle

    - DefaultMonitor := dmActiveForm

    - FormStyle := fsNormal

    - PopupMode := pmNone also pmAuto doesn't change this

    - PopupParent := nil, but also setting it to TCustomForm(AOwner) in the constructor didn't change anything

    - Position := poOwnerFormCenter

    - WindowState := wsNormal

     

    The form itsself only has an OnShowEvent, where one control gets set the focus.

     

    Any other properties known which might play a role here?


  2. I might try later on, but it might prove difficult. I already tried to do a minimal demo for something else I saw in that project and reported as QP 38385,
    but the minimal demo failed to show the effect. In the German DP somebody said something that all new forms seem to have some popupparent issue
    as if always the main form would be used as popup parent...

     

    I haven't done any investigation of that theory yet, as I just read it. Could that be related?


  3. Strange! I found this post because I have exactly the same issue, but the solution above doesn't fix my issue 😞

    Given:

     

    - D11.1

    - a datamodule containing a TTaskDialog

    - a main form

    - two other forms, each having a button for showing that TTaskDialog

    - both forms have the same popup mode, border style etc.

    - both are created at runtime and shown via ShowModal and when created both get the main form set as owner

    - in one form the TaskDialog shows in the foreground, in the other it stays in the background

    - calling execute with self.handle as param doesn't help

     

    Now I copied the Taskdialog from the datamodule directly on the form where it doesn't work and called that directly.

    Result: still doesn't work 😞

     

    Anybody any clue?


  4. Hello,

     

    this is to let you know that there was a open source collaboration project started to create a formal specification of
    the Delphi language in Backus-Naur format (https://en.wikipedia.org/wiki/Backus–Naur_form).

     

    It is hosted on GitHub here: https://github.com/MHumm/DelphiGrammar

    David Hoyle contributed his Delphi 10.3 version as a starting point.

    If you want to participate in this endeavor, which might help developers of language tools, just
    drop me a message with your GitHub account name and I'll give you commit permission.

    Either via this forum or as an issue on that GitHub project.

     

    Currently I picked Apache 2.0 as license, but if necessary we can discuss to use something else.

     

    Cheers

    TurboMagic

    • Like 1

  5. Good news: DEC V6.4.1 jsut got released.

    https://github.com/MHumm/DelphiEncryptionCompendium/releases/tag/V6.4.1

     

    What is this?

    DEC, also known as Delphi Encryption Compendium is a cryptography library for Delphi and FPC.

     

    What's new in V6.4.1?

    This is mainly a bugfix release with these topics:

    • fixed some regression which produced wrong output at least for the 2DES encryption algorithm when used with CBC block chaining kode
    • improved layout and handling of GCM block chaining mode in Cipher_FMX demo application
    • added a new Cipher_Console_KDF demo application
    • fixed and improved the documentation, especially about wrongly written GCM properties

     

    What's the plan for the future?

    1. Have a short rest 😉
    2. Require Delphi 10.1 Berlin instead of D2009 as minimum compatible version
    3. The rest of the plan (which exists) will not be disclosed yet.

     

    Cheers

    TurboMagic

    • Like 4

  6. On 9/17/2021 at 12:49 PM, Wagner Landgraf said:

    I think the "problem" with Package Manager is that is has to be widely adopted by the community to be very useful. Because the key is that relevant libraries and 3rd parties are available in the package manager. "Unfortunately" Embarcadero is pushing GetIt so it's unlikely we will have a different one being widely adopted, I guess.

    There are concrete (but not public yet) plans to improve GetIt. One of the items will make it easier to update contents which has already been published via GetIt so it might attrack more publishers.


  7. On 9/17/2021 at 9:58 AM, Jasja said:

    Hello Angus,

     

    Oke, thank you. I don't have a SVN client installed. I've tried it once but it created too many dependensies too my likeing.

    Maybe it's an idea too deposit ICS into github.com ? Then it's easy for users like me to download the latest snapshot as zip file, while also easy to maintain with git.

    Anyway, thanks so much. I will wait until the zip file is available on the site.

     

     

    Regards,

     

    I don't know which SVN client you used, but Tortoise SVN integrates nicely into Windows Explorer and works quite well...

    After installing that one create a new folder and right click on it, select "SVN Checkout" and enter the SVN Url of ICS and things should be on your computer a few seconds later...


  8. Hello,

     

    I've written a small unit for easily adding and removing IDE/Tools menu entries.

    It can also check if there's already some entry for a given executable.

     

    It is open source and can be found here along with a small console application demoing the functionality.

     

    https://github.com/MHumm/AddIDETool

     

    Remember: you need to restart the IDE for the settings changes to become effect.

     

    Now enjoy it 😉

    TurboMagic

    • Like 2

  9. Good news,

     

    I just released version 6.3 of the Delphi Encryption Compendium cryptography library.

    You can fin it here:

     

    https://github.com/MHumm/DelphiEncryptionCompendium/releases/tag/V6.3"]https://github.com/MHumm/DelphiEncryptionCompendium/releases/tag/V6.3

     

    What's new?

     

    • Implemented some bugfixes
    • Added Shake128/256 extensible output hash algorithm implementations
    • Made the 32 bit asm implementations of the MD2, SHA384, Tiger, Snefru128 and Snefru256 hash algorithms compile again and they are used now
      as default for Win32 Delphi projects. In some cases this might double the speed of the hash calculation.

     

    Further details about the changes are found in the VersionHistory.pdf file in Docs subfolder.

     

    The GetIt Lite version should be released within the next few days.

     

    Enjoy


    TurboMagic

    • Like 1
    • Thanks 1

  10. While further working on Delphi Encryption Compendium I stumbled over the freeing mechanism for the class registration mechanism.

    Digging into the history I read something about AddModuleUnloadProc being used in context of packages, which I didn't use yet,

    but I'm not sure why a simple TDECHash.ClassList.Free; should not be sufficient. So any ideas why this is in?

     

    I'm asking, because in that ModuleUnload procedure C++ Builder crashes with "List item not found".
    So if removing that ModuleUnload completely without causing any negative side effects, it might improve C++ Builder compatibility.

     

    nit DECHashBase;
    
    [..]
    
    procedure ModuleUnload(Instance: NativeInt);
    var // automaticaly deregistration/releasing
      i: Integer;
    begin
      if TDECHash.ClassList <> nil then
      begin
        for i := TDECHash.ClassList.Count - 1 downto 0 do
        begin
          if NativeInt(FindClassHInstance(TClass(TDECHash.ClassList[i]))) = Instance then
            TDECHash.ClassList.Remove(TDECHash.ClassList[i].Identity);
        end;
      end;
    end;
    
    initialization
      AddModuleUnloadProc(ModuleUnload);
    
      TDECHash.ClassList := TDECClassList.Create;
    
    finalization
      RemoveModuleUnloadProc(ModuleUnload);
    
      TDECHash.ClassList.Free;
    end. 

     

×