Jump to content

PeterPanettone

Members
  • Content Count

    1409
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by PeterPanettone

  1. PeterPanettone

    New Delphi features in Delphi 13

    It is available from this URL: https://www.embarcadero.com/RADAICompanion
  2. PeterPanettone

    RAD Studio 13 is available

    Still angry with jokes? Please calm down.
  3. PeterPanettone

    IPWorks in GetIt Trial mode?

    In GetIt, the IPWorks component library is not explicitly marked as "TRIAL": Can it be used for free when downloading it from GetIt? At the IPWorks homepage, the IPWorks component library can be purchased for $999.
  4. PeterPanettone

    IPWorks in GetIt Trial mode?

    On the other hand, the Bonus KSVC 8.0.1 library, which is freely available to Delphi Subscription users, has not yet appeared in GetIt.
  5. PeterPanettone

    IPWorks in GetIt Trial mode?

    Someone said: "It can be considered unfair to offer a trial download of IPWorks in Embarcadero's GetIt Package Manager without explicitly marking it as a "Trial," primarily due to inconsistencies in labeling that may mislead developers about its licensing and usage restrictions."
  6. OK, here is another simple trick I often use to quickly jump to specific locations in very large units (e.g., 20,000 lines, like in my upcoming "Advanced Windows Start Menu"): We could use simple bookmarks for this purpose, but I often clear them all after finishing a specific short-term task. So we need something more persistent:* *Prerequisites: CnWizards 1. Create these kinds of comments on the locations you want to jump to quickly: implementation // toc_implementation public // toc_public // toc_PrivateVariables private // toc_private TForm1 = class(TForm) // toc_MainFormClass // etc. 2. Then put all these TOC items at the very top of your huge unit: {TOC: toc_implementation toc_public toc_PrivateVariables toc_private toc_MainFormClass } 3. Then, when you need to quickly jump to one of these locations in your huge unit: - Press CTRL+Home to jump to the top of the unit - Double-click one of the toc_ items to select it - Press F3 to quickly jump to this location This will save you a lot of search time!
  7. CnWizards is a very helpful Delphi IDE plugin with many useful features, among them the above-mentioned F3 SEARCH feature: https://www.cnpack.org/index.php?lang=en Here is the option to activate this feature:
  8. I've found it: F3 automatically searches the next occurrence of the selected text only if CnWizards is installed. I've tested it by unloading CnWizards. When CnWizards is not loaded, then F3 on the selected text displays this message: And then, when clicking the "Yes" button after having checked "Wrap around without asking", this message is displayed: This could be a bug in the Delphi IDE that CnWizards resolves.
  9. It doesn't?? In my Delphi 12.2 and Delphi 13, it does! This is very strange!
  10. 1. Collapse the procedure/function: 2. Click on the line number to select the entire (now hidden) code of the procedure/function. 3. Press CTRL+C to copy the entire code of the procedure/function. This is particularly useful for longer procedures/functions. It also works in Delphi 13.
  11. Does anyone have an updated version of wuppdi Welcome Page for Delphi 11 Alexandria?
  12. PeterPanettone

    RAD AI Companion

    You are so right. That is exactly the right way to look at AI. Unfortunately, AI is also becoming a tool for political oppression. And thank you for the humorous part.
  13. PeterPanettone

    RAD AI Companion

    Do you think AI is becoming a new religion?
  14. PeterPanettone

    RAD AI Companion

    You are right, DOCUMENTATION is everything. AI-generated code without accompanying documentation is dangerous (SUPERGROK always links to documentation for anything it generates). However, I strongly reject "regulation" laws from a criminal organization as the so-called "EU" (EU ≠ Europe).
  15. PeterPanettone

    RAD AI Companion

    Generally, AIs often make mistakes or hallucinate when asked advanced questions about Delphi code. The most reliable AI for Delphi code is SUPERGROK.
  16. PeterPanettone

    RAD Studio 13 is available

    Possible scenarios for the upcoming 128-bit technology: • Specialized applications such as scientific calculations or cryptography could benefit from it • Very large databases or in-memory computing could potentially require it • New areas of application that we cannot foresee today
  17. PeterPanettone

    RAD Studio 13 is available

    You too, have a nice day.
  18. PeterPanettone

    RAD Studio 13 is available

    Why are you repeating this to me? Sorry, but I can't help you.
  19. PeterPanettone

    RAD Studio 13 is available

    Then it is probably a HighDPI interference. Tell me the specifics of your monitor.
  20. PeterPanettone

    RAD Studio 13 is available

    You should know that computer programs are not deterministic, especially complex computer programs like the Delphi IDE. So, a statement like "but it works on my computer!" is a typical statement from computer illiterates.
  21. PeterPanettone

    RAD Studio 13 is available

    Like many code editors, the Delphi source code editor (both 12 and 13) has a useful feature: Clicking the Line Number selects the whole Line. This allows you to easily copy an entire single line by first clicking on a Line Number and then pressing CTRL+C. However, this does not work when clicking on the LAST DIGIT of a line number! Is this a bug or a configuration issue? Or is it due to HighDPI interference?
  22. PeterPanettone

    RAD Studio 13 is available

    The SmartSearch principle is very simple: function ContainsSearchTerm(const AText, ASearchTerm: string): Boolean; // returns True if: // if ASearchTerm is single word: if AText contains ASearchTerm // if ASearchTerm is multiple words (devided by space): if AText contains all words var LWords: TArray<string>; LWord: string; begin // Return False if ASearchTerm is empty if System.SysUtils.Trim(ASearchTerm) = '' then Exit(False); // Split search term by space LWords := ASearchTerm.Split([' ']); // If there's only one word, check if AText contains that word if System.Length(LWords) = 1 then begin Result := System.StrUtils.ContainsText(AText, ASearchTerm); end else begin // Multiple words: AText must contain all words Result := True; for LWord in LWords do begin if not System.StrUtils.ContainsText(AText, LWord) then begin Result := False; Break; end; end; end; end; Here is a shorter optimized version: function ContainsSearchTerm(const AText, ASearchTerm: string): Boolean; var LWords: TArray<string>; LWord: string; begin // Split search term by space, filter out empty words LWords := Trim(ASearchTerm).Split([' ']); if Length(LWords) = 0 then Exit(False); // Check if AText contains all non-empty words for LWord in LWords do if (LWord <> '') and not ContainsText(AText, LWord) then Exit(False); Result := True; end;
  23. PeterPanettone

    RAD Studio 13 is available

    Do you have a particular reason for hating jokes - perhaps if they are not 64-bit? 😉
  24. PeterPanettone

    RAD Studio 13 is available

    Obviously, you didn't read what I wrote. I wrote: "removing the search box content with the BACKSPACE key". 1. For example, enter "kirk" 2. Then, remove the whole content "kirk" with the backspace key. 3. Result: Not all 104 items are restored.
×