Jump to content

dwrbudr

Members
  • Content Count

    61
  • Joined

  • Last visited

Everything posted by dwrbudr

  1. dwrbudr

    Delphi gitlab question

    Try this for a starting .gitignore - https://github.com/github/gitignore/blob/main/Delphi.gitignore The .dproj files are XML files which on project Save, Delphi sometimes "reorders" some of its XML nodes (probably a dictionary is used somewhere instead of lists). So you could get a modified .dproj file if you've just added a new line in the .dpr and pressed Save. In order to avoid that try to use Project Magician plugin for the IDE https://www.uweraabe.de/Blog/2018/05/17/keep-your-project-files-clean-with-project-magician/
  2. dwrbudr

    Where to turn off 'Whole words' searching?

    Not for me. This is very annoying bug!
  3. dwrbudr

    VCL-Bitmap rescaler

    The creation of the FImagingFactory is protected by a critical section. Is there anything else that shall be protected by a critical section, e.g. some other class variable or something else.
  4. dwrbudr

    VCL-Bitmap rescaler

    What makes you think TWICImage.Create is not thread-safe in recent Delphi versions?
  5. dwrbudr

    Working with PDF files??

    I haven't used that myself, but probably you could check that component: https://github.com/ahausladen/PdfiumLib
  6. Inspect Delphi's VCL.Forms.pas -> TTitleBar.GetCaptionButtonsRect -> DwmGetWindowAttribute
  7. dwrbudr

    VirtualStringTree as table - CheckBox in columns

    Inspect VirtualTrees.pas code and especially procedure TBaseVirtualTree.PaintCheckImage
  8. dwrbudr

    GExperts 1.3.22 experimental twm 2023-03-25 released

    Is it possible with GExperts to add a shortcut to close the current tab in Delphi IDE by using Ctrl+W?
  9. On the second question, yes you can use TListView like in that SVG Image Explorer tool, sources are in the Demo folder. https://github.com/EtheaDev/SVGIconImageList/wiki/SVGIconExplorer
  10. Probably ImageEN should do the job, but it is not free. It has a lot of demos you can check.
  11. It is a Runtime-only package, so it cannot be installed. The packages you can install are the Design-time packages, in your case the ones starting with "dcl".
  12. Try to export the settings using the Migration Tool from the user account that Delphi runs OK and import them to the other account.
  13. The instrumenting profiler doesn't work with Delphi 11.2 or at least with some CPUs, so it is useless at its current state. Crashes everywhere or shows empty results. It seems the profiler is not maintained at all.
  14. dwrbudr

    How can i add a custom font to a windows fmx application

    I'm not familiar with FMX internals, but won't that work? AddFontResourceEx(AFileName, FR_PRIVATE, nil);
  15. dwrbudr

    Change 'DPI awareness' on runtime

    You should put an effort to make your application DPI-aware. Here's a PDF that could help you understand the basics: https://www.helpandmanual.com/downloads_delphi.html
  16. dwrbudr

    Change 'DPI awareness' on runtime

    Try SetProcessDpiAwareness(DPI_AWARENESS_CONTEXT_UNAWARE);
  17. dwrbudr

    Set colour for TStaticText with themes.

    Do you mean OS themes or VCL styles?
  18. dwrbudr

    TSaveDialog is not resizable with Styles

    They can be styled using VCL Styles Utils project. It uses DDetours to intercept WinAPI calls and set the colors/glyphs/etc. according to the current style. https://github.com/RRUZ/vcl-styles-utils
  19. dwrbudr

    The Delphi 11.2 release thread

    They say "Operating System Requirements", if it is not a requirement then why bother to write it at all.
  20. dwrbudr

    The Delphi 11.2 release thread

    Those notes actually mention 11.1, so I'm wondering how I'm able to run 11.1 on Windows 8.1 64bit though....
  21. Yest, VCL Styles Utils package is outdated a lot, but still works with D11.1. It is probably based on code found in XE4, but the package still helps especially on styling system dialogs.
  22. dwrbudr

    svg

    If you're going to use simple SVG files, probably most of these libraries will do the job. Personally I prefer librsvg + cairo wrappers. It is the fastest one at least by the benchmarks I did using different SVG libraries loading about 1000 SVG files. And it supports filters. How the above listed libraries deal with the attached SVG file. Could they open it? filters.svg
  23. dwrbudr

    Sniffer tool detection function

    function Find_Debugger_Window(): Boolean; var whWnd: DWORD; begin result := True; //ollydbg v1.1 whWnd := FindWindow('icu_dbg', nil); if whWnd <> 0 then Exit; //ollyice pe--diy whWnd := FindWindow('pe--diy', nil); if whWnd <> 0 then Exit; //ollydbg ?- whWnd := FindWindow('ollydbg', nil); if whWnd <> 0 then Exit; //windbg whWnd := FindWindow('WinDbgFrameClass', nil); if whWnd <> 0 then Exit; //dede3.50 whWnd := FindWindow('TDeDeMainForm', nil); if whWnd <> 0 then Exit; //IDA5.20 whWnd := FindWindow('TIdaWindow', nil); if whWnd <> 0 then Exit; result := False; end; You can add more captions if you use Spy++ to obtain the caption of tools you want to check for.
  24. dwrbudr

    Howto prevent a grid from scrolling

    procedure TMyGrame.MouseWheelHandler(var Msg: TMessage); var Control: TWinControl; pt: TPoint; begin Pt.X := SmallInt(Msg.lParam); Pt.Y := SmallInt(HiWord(Msg.lParam)); Control := FindVCLWindow(Pt); if Assigned(Control) then begin if (Control is TGrid) then begin Msg.Result := 1; end else begin Control.DefaultHandler(Msg); end; end else begin inherited MouseWheelHandler(Msg); end; end; Does it help if you override MouseWheelHandler as the code snippet above?
  25. dwrbudr

    Change Scroll bar color

    Checking Vcl.Forms.pas, it registers both TCustomForm and TForm to the style engine. Does it help if you call TStyleManager.Engine.RegisterStyleHook(TSynEdit, TScrollingStyleHook);
×