Jump to content

zed

Members
  • Content Count

    42
  • Joined

  • Last visited

Everything posted by zed

  1. zed

    pasfmt v0.4.0

    I see that there are no formatting settings, and the code is written in Rust. I’m wondering who else might find this useful besides your internal team? What made you choose Rust for a Delphi code formatter? Just wanted to try out Rust, or was there more to it?
  2. zed

    High CPU usage

    The behavior of the Sleep function was changed in Windows Server 2003, making it safe to use Sleep(0) — unless you're writing code for Windows XP. https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-sleep
  3. Am I right in understanding that we can't switch to such a virtual mode with the standard TTreeView? Is this why Virtual TreeView exists?
  4. zed

    Best internet components

    Did you report an issue?
  5. zed

    Problem with EmbeddedWB in Delphi 12

    No, I don't use it in the IDE at design time. I create EWB at runtime and it seems to work fine.
  6. zed

    Problem with EmbeddedWB in Delphi 12

    I found it! fix for mouse hook: https://github.com/sasgis/embeddedwb/commit/b8f659042e0a6b30ab824a89c4ee24b4961648cc fix for win64 typecasts: https://github.com/sasgis/embeddedwb/commit/fe9e776a51ca7534853811841d66047f835a7bdf Function SetWindowLong must be replaced with SetWindowLongPtr with proper type cast. Function GetWindowLong must be replaced with GetWindowLongPtr.
  7. zed

    Problem with EmbeddedWB in Delphi 12

    I have the same problem with EmbeddedWB. There is something bad in the component initialization code, because application start crashing after you add just one EmbeddedWB unit to your uses list. unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.OleCtrls, EmbeddedWB, // !!! System.SysUtils; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin // var EmbeddedWB1 := TEmbeddedWB.Create(Self); // EmbeddedWB1.Navigate(ExtractFilePath(Application.ExeName)+ '..\..\test.htm'); end; end.
  8. zed

    Updated Webhelp for GExperts available

    Your link text and its URL do not match:
  9. zed

    Updated Webhelp for GExperts available

    Yes, it works now. Thank you.
  10. zed

    Updated Webhelp for GExperts available

    Possible solution from here: https://helpman.it-authoring.com/viewtopic.php?t=16333 Add this line to the template: <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  11. zed

    Updated Webhelp for GExperts available

    PDF is not very good for documentation, CHM is the best!
  12. zed

    TChart in Delphi 10.0 vs Delphi 12.2

    {$IF CompilerVersion > 34} // The default font changed from "Tahoma, 8 pt" to "Segoe UI, 9 pt" // starting with Delphi 11. This increased the text size by 2 pixels. Application.DefaultFont.Name := 'Tahoma'; Application.DefaultFont.Size := 8; {$ENDIF} Try this fix (insert code into your .dpr file).
  13. Only CE does not support command line compiling.
  14. zed

    SQLite with Delphi 7

    Extract sqlite3.dll into the folder where Delphi outputs your application .exe file, and use this wrapper: https://github.com/plashenkov/SQLite3-Delphi-FPC (there is a usage example: https://github.com/plashenkov/SQLite3-Delphi-FPC/blob/master/Examples/Delphi/Main.pas).
  15. zed

    Remove uses with interface

    Service locator (anti)-pattern?
  16. zed

    DelphiLint v1.1.0 out now!

    After a successful installation, the first time you use DelphiLint it wants to have Internet access to get something from GitHub. Why didn't the installer provide all the staff DelphiLint needed?
  17. zed

    DelphiLint v1.0.0 released!

    https://github.com/integrated-application-development/delphilint/releases/tag/v1.0.1
  18. zed

    Opensource scripting language?

    You can provide your own functions to work with regex in lua. Its API is very flexible. Look at this for example: https://www.geek.co.il/~mooffie/mc-lua/docs/html/modules/regex.html (the implementation is quite simple: regex.c)
  19. https://stats.uptimerobot.com/3yP3quwNW/780058619
  20. zed

    docwiki.embarcadero.com is not working

    And here we go again!
  21. https://github.com/kami-soft/ProtoBufGenerator
  22. zed

    for i := X to Y inclusive... how?

    Here is the answer:
  23. zed

    for i := X to Y inclusive... how?

    It's hard to understand what exactly you want. How about this: if (X in [0..7]) and (Y in [0..7]) then begin ... end
×