Jump to content

Uwe Raabe

Members
  • Content Count

    2825
  • Joined

  • Last visited

  • Days Won

    168

Everything posted by Uwe Raabe

  1. Uwe Raabe

    function declarations without ; at the end

    I found the first entry of this function in Delphi 2010 and it misses the semicolon already.
  2. Indeed there are: Set TControl.RaiseOnNonMainThreadUsage := True This will raise an EInvalidOperation when CheckNonMainThreadUsage is called for a control. This is automatically done inside CreateWnd.
  3. Uwe Raabe

    How I fixed LSP (sorta) and a question

    Shall I read that as we made changes to the interface part? Interesting. A short test on my system showed that it was not possible to navigate to any VCL source file when the $(BIN)\source\VCL entry of the browsing path was missing. It's probably not me alone who would be interested in a reproducible test case.
  4. After installing the patch most of the packages compiled with the unpatched version must be re-compiled to work with the patched version.
  5. Uwe Raabe

    function declarations without ; at the end

    Wrong! According to N.Wirth (Pascal User Manual and Report page 149) there is an Empty Statement:
  6. Uwe Raabe

    About the compiler (not) finding the DFM files

    Create an Option Set with the appropriate entries and add that to each project as reference. Then you really have only one place to change that even works when the project is opened in an IDE using another registry key, being another version or residing on a different system - all assuming that the paths actually exist. Personal preference and the fact that I work for different customers with different sets of used libraries. I just don't want to clutter the search path with unneeded entries.
  7. Uwe Raabe

    function declarations without ; at the end

    In Pascal the semicolon is a statement separator and not part of the statement. Remember the if-then-else...
  8. Uwe Raabe

    About the compiler (not) finding the DFM files

    My request is targeting the per project option on purpose, while the global option would probably make sense, too - in addition. Please feel free to add your opinion on that in the comments, best with a concrete example where the current state may fail. Perhaps this per project approach is driven by my personal favor of not contaminating the library path with the paths from the installed components, but add these on a per project basis restricted to the libraries actually used by the project. My projects follow a common folder pattern with a source and a lib folder at the project root and all libraries as sub folders of lib. This allows for similar relative paths in each project to find all the library files.
  9. Uwe Raabe

    How I fixed LSP (sorta) and a question

    Wouldn't it be sufficient to adjust the entries in Tools > Options > Language > Delphi Options > Library -> Browsing path?
  10. Uwe Raabe

    About the compiler (not) finding the DFM files

    RSS-3125: Add Option to edit DCC_ResourcePath
  11. Uwe Raabe

    Delphi 12.3 is available

    The actual wording is: If that means replacing the current system with a completely new approach is debatable.
  12. Uwe Raabe

    About the compiler (not) finding the DFM files

    Not quite, that setting is stored as BRCC_IncludePath. DCC_ResourcePath is indeed the correct way to provide the paths to look for the DFM resources. Unfortunately there is no UI to edit that. Manually editing the dproj file adding a node like <DCC_ResourcePath>..\lib\Source;$(DCC_ResourcePath)</DCC_ResourcePath> under the appropriate PropertyGroup will make the DFM files located in ..\lib\source to be found without exposing the PAS files in that folder.
  13. Uwe Raabe

    Monitor Layout registry entry

    While it is always stored in English even if your IDE is set to any other language, I also think that using such a caption to store the selected option is not that a good idea. As a Delphi developer I would use an enumeration for the setting values and store that in a suitable manner.
  14. Uwe Raabe

    Method Selection ability??

    Just to make sure I understand correct: You want to comment the implementation of a method, but not the declaration? In such a case I usually extract the current method with MMX into a new one. Let's assume the method is named MyMethod. Then I extract the content in question (can be the whole) into a new method MyMethodA. If configured accordingly that leaves a single call to MyMethodA in the body of MyMethod. Then I can either comment that call or replace it with another call to MyMethodB, which is implemented differently. This has the advantage that I can call either method depending on some condition or configuration setting to test the behavior without re-compiling.
  15. Uwe Raabe

    Method Selection ability??

    MMX has an action Select Method Body (under Text Tools...), although that spares the variable declarations before the begin. There is no shortcut by default, but that can be configured.
  16. Uwe Raabe

    VCL spinner

    TActivityIndicator uses a TTimer to update itself and thus relies on the main thread message queue to be served. This would detect most of the cases where the main thread is blocking. Other threads must implement some other way to signal they are still working, which then can be monitored by the main thread to act accordingly.
  17. Uwe Raabe

    Build time affected with an updated component...

    That is definitely not expected and I see nothing you are doing wrong here. Therefore it is most likely the component doing something weird in the new version.
  18. You can copy paste the contents from https://getitnow.embarcadero.com/
  19. Uwe Raabe

    VCL spinner

    AFAIK, a Windows Spinner control is an edit containing numbers with arrows to increase/decrease.
  20. Uwe Raabe

    Delphi 12.3 is available

    It may appear so, but often it is a question of patience. Even when you never installed anything from GetIt, most of the IDE is installed with it and that needs some time to uninstall.
  21. Uwe Raabe

    VCL spinner

    Have a look at TNumberBox.
  22. Uwe Raabe

    Saving files as UTF-8 with BOM

    A file is stored in the format it has been loaded, unless you change the format via the File Encoding selector at the bottom of the editor. You can change the default encoding for new files in the Editor options.
  23. Uwe Raabe

    Delphi 12.3 is available

    It is located in the bin64 subfolder, which already exists. Most of the new 64-bit files are placed there, too. A couple of 64-bit design time BPL and DCP files are added to the appropriate places. The amount of additional needed disk scape can be neglected. The 64-bit IDE shares most of the registry entries, while adding a couple of x64 keys like Known IDE Packages x64 and Known Packages x64.
  24. That's exactly my experience and the reason why such a feature would not bring any significant advantage for me.
  25. Uwe Raabe

    What picture formats are supported by TImage ?

    Vcl.Graphics internally registers the following extensions: tiff, tif, wmf, emf, ico and bmp. All other extensions are registered in the units the format is implemented: gif in Vcl.Imaging.GIFImg jpeg and jpg in Vcl.Imaging.jpeg png in Vcl.Imaging.pngimage svg, webp and wbmp in Vcl.Skia Only when these units are used in your application the corresponding file extensions will be supported. While designing in the IDE, these units are usually registered because the vclimg and the Skia packages are loaded.
×