dwrbudr
Members-
Content Count
61 -
Joined
-
Last visited
Everything posted by dwrbudr
-
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/
-
Where to turn off 'Whole words' searching?
dwrbudr replied to Ian Branch's topic in Delphi IDE and APIs
Not for me. This is very annoying bug! -
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.
-
What makes you think TWICImage.Create is not thread-safe in recent Delphi versions?
-
I haven't used that myself, but probably you could check that component: https://github.com/ahausladen/PdfiumLib
-
Inspect Delphi's VCL.Forms.pas -> TTitleBar.GetCaptionButtonsRect -> DwmGetWindowAttribute
-
Inspect VirtualTrees.pas code and especially procedure TBaseVirtualTree.PaintCheckImage
-
GExperts 1.3.22 experimental twm 2023-03-25 released
dwrbudr replied to dummzeuch's topic in GExperts
Is it possible with GExperts to add a shortcut to close the current tab in Delphi IDE by using Ctrl+W? -
Good source for VCL elements with examples and which element to use for an Icon picker?
dwrbudr replied to dfatdp's topic in VCL
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 -
Which library for "Small" Graphics Application, GR32, GDI+, Skia, ...
dwrbudr replied to cltom's topic in VCL
Probably ImageEN should do the job, but it is not free. It has a lot of demos you can check. -
Install package option don't show
dwrbudr replied to Zazhir's topic in Algorithms, Data Structures and Class Design
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". -
Delphi (11.2) IDE stops after "All design time packages loaded", but works in admin mode
dwrbudr replied to rudy999's topic in Delphi IDE and APIs
Try to export the settings using the Migration Tool from the user account that Delphi runs OK and import them to the other account. -
asmprofiler - Freeware Profiler for Delphi saved my day - Thanks
dwrbudr replied to microtronx's topic in Tips / Blogs / Tutorials / Videos
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. -
How can i add a custom font to a windows fmx application
dwrbudr replied to Linuxuser1234's topic in FMX
I'm not familiar with FMX internals, but won't that work? AddFontResourceEx(AFileName, FR_PRIVATE, nil); -
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
-
Try SetProcessDpiAwareness(DPI_AWARENESS_CONTEXT_UNAWARE);
-
Do you mean OS themes or VCL 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
-
They say "Operating System Requirements", if it is not a requirement then why bother to write it at all.
-
Those notes actually mention 11.1, so I'm wondering how I'm able to run 11.1 on Windows 8.1 64bit though....
-
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.
-
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
-
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.
-
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?
-
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);