Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 01/19/22 in all areas

  1. I found this in my usenet archives about the evaluation order:
  2. Lars Fosdal

    Frequent and/or annoying typos you make while coding

    I remember beginning in a new position and I spotted and corrected a misspelled parameter in the SQL in Delphi, while it actually was misspelled in the database, so... that didn't really help. Since I am a bit of a petimeter, I mentally spell check my names all the time and get a bit miffed when I stumble on the mistakes of others, but I don't always correct them anymore 😛
  3. And there I am, still hoping for that day to come
  4. Hello, I almost always missspell Lenhgt and Widht, can't remember other on top of my head but there are few. This does not matter how slowly I spell it in my head while typing, fingers will do the wrong order 🙂 -Tee-
  5. Fellow Delphi developers, This is with great pleasure that we announce the immediate availability of HelpNDoc 7.9, an easy to use yet powerful help authoring tool producing CHM help files, responsive HTML 5 and mobile Websites, DocX and PDF manuals, Markdown documents, ePub and Kindle eBooks as well as Qt Help files from a single source. HelpNDoc is Free for personal use and evaluation purposes and is available at: https://www.helpndoc.com HelpNDoc 7.9 provides many new features and enhancements such as the ability to update every pictures with their default settings; A new font selector with recently used fonts, font preview and search support; An improved Word importer; A new API method to list library items used in a specific editor; and much more... You can learn more about this update at: https://www.helpndoc.com/news-and-articles/2022-01-19-mass-update-pictures-properties-new-font-selector-with-search-capabilities-and-ui-refinements-in-helpndoc-7.9/ Video of some of the new features in HelpNDoc 7.9: Download HelpNDoc now and use it for free for personal and evaluation purposes: https://www.helpndoc.com/download Follow our step-by-step video guides to learn how to use HelpNDoc: Best regards, John, HelpNDoc team. https://www.helpndoc.com
  6. dummzeuch

    Frequent and/or annoying typos you make while coding

    There is also quite a few information about Live Templates in the Delphi Wiki: Delphi Live Templates Editing the template template Live Templates Technical Info (I wrote most of the latter from reverse engineering existing templates and reading blog posts about them years ago, when Live Templates were all the rage.) and also Stefan Glienke's collection of Live Templates
  7. dummzeuch

    Frequent and/or annoying typos you make while coding

    There is the GExperts Code Proofreader expert which supposedly can correct typos like Heigth to Height etc.. Unfortunately it sometimes does more harm than good by "correcting" words that only look like some words it knows about but are spelled differently (e.g. I tend to use abbreviations for variables of enum types like "tnue: TreeNodeUserEnum" which then gets "corrected" to "True".) It can be set to beep when correcting but that goes on my nerves quickly, so I usually turn it off again.
  8. lol, i flip my ie ei allot.. height, client piss me off.. i turn off all editor helpers, just slow me down.. i flow it all out, then correct my spelling, with a few ctrl-f9, compilers so fast, this works..
  9. Attila Kovacs

    Which option to use for a large batch of REST queries?

    I'm using "pipeline" for a multi downloader, with my "download" and "import" stages. It's really cool.
  10. I wanted to save time before to convert blocking methods to background threads but still blocking the calling method while it runs... used a cycle like this. Once issues started to appear I spent months getting rid of this "shortcut". It became way more messy and way more complicated. Even if you don't have issues at the moment... remember, this cycle is the devil reincarnated.
  11. If FPC had given 9 that wouldn't have changed the conclusion
  12. luebbe

    Delphi profiler

    @FPiette do you know https://github.com/neslib/Neslib.Xml? I switched some of my xml parsing from Delphi's native parser to Neslib.Xml and it resulted in around 35x-40x faster parsing (17-20 seconds versus <= 0.5 seconds).
  13. Hi Mark, no, compiler in my head says, 6 and 7. index passed as var, i is index, index is i and you inc it, change the order of your addition. dave
  14. dummzeuch

    TPopupMenu with group headers

    And here is a doAdvancedDrawItem method that works with older Delphi versions (tested with Delphi 2007) procedure THeaderMenuItem.DoAdvancedDrawItem(Sender: TObject; ACanvas: TCanvas; ARect: TRect; State: TOwnerDrawState); begin {$IF declared(TStyleManager)} ACanvas.Brush.Color := TStyleManager.ActiveStyle.GetStyleColor(scPanelDisabled); ACanvas.Font.Color := TStyleManager.ActiveStyle.GetStyleFontColor(sfWindowTextNormal); {$ELSE} ACanvas.Brush.Color := clDkGray; ACanvas.Font.Color := clWhite; {$IFEND} ACanvas.Font.Style := [fsBold]; ACanvas.FillRect(ARect); ACanvas.TextRect(ARect, ARect.Left + 3, ARect.Top + 3, StripHotkey(Caption)); end; To get it to compile with Delphi 2007, just remove the unit namespaces from the uses list. Adjust the colors to your liking.
  15. dummzeuch

    TPopupMenu with group headers

    Just in case anybody is interested, here are two overloaded constructors that make it much more convenient to insert such group headers into a menu: interface type THeaderMenuItem = class(TMenuItem) public // default constructor as above constructor Create(AOwner: TComponent); overload; override; constructor Create(_ParentMenu: TMenuItem; _Idx: Integer; const _Caption: string); reintroduce; overload; constructor Create(_ParentMenu: TMenuItem; _InsertBefore: TMenuItem; const _Caption: string); reintroduce; overload; end; implementation constructor THeaderMenuItem.Create(_ParentMenu: TMenuItem; _Idx: Integer; const _Caption: string); begin Create(_ParentMenu); Caption := _Caption; _ParentMenu.Insert(_Idx, Self); end; constructor THeaderMenuItem.Create(_ParentMenu, _InsertBefore: TMenuItem; const _Caption: string); var Idx: Integer; begin Idx := _ParentMenu.IndexOf(_InsertBefore); Create(_ParentMenu, Idx, _Caption); end; And, as I just found out: Don't forget to set the Style property of the menu to msOwnerDraw set the OwnerDraw property of the menu to True!
  16. Dalija Prasnikar

    Delphi profiler

    Sampling profiler will give you better insight. https://www.delphitools.info/samplingprofiler/
×