-
Content Count
2855 -
Joined
-
Last visited
-
Days Won
101
Everything posted by dummzeuch
-
Thanks. Commited as revision #4070. I have made a small change thoug: I prefixed the file name to "- instant grep" like it is shown in e.g. the project manager window so the importantpart (the file name) is visible even if the window is too narrow to display the full title. An unfortunate side effect is that the original position entry now doesn't even show "original position" in the caption. It needs some other way to be distinguished from the other entries.
-
Yes, I was thinking about that already but didn't find the time to check it out yet.
-
I'm always interested in possible improvements.
-
Searching Edit component with autocomplete for Directory/Files
dummzeuch replied to Carlo Barazzetta's topic in VCL
Not a component but a function that adds this functionality to any TEdit: https://blog.dummzeuch.de/2019/04/28/autocompletion-for-tedits-revisited/ -
Yes.
-
Yes, it is indeed (as somebody else already mentioned). I originally copied the code from the Editor Bookmarks expert and the plan was to somehow consolidate those copies again. But there, it's also only the current file, so the filename is redundant too. I'll have to think about it some more (and find the time for it).
-
Hm, yes that could be done. On the other hand, I could move the line number to the left column too, so it occupies the space under the file name which you left empty.
-
As of revision #4069 the original position is only shown if there are matches. I'm not sure about showing the filename. Yes, it's not really necessary, but since it also shows the line number on the right (which I definitely want to keep), not showing the filename would leave that line mostly blank.
-
Fixed in revsion #4067 by putting a panel between form and listbox. (No idea why this works, but I tried that because the Grep Results window also had a panel as parent for the listbox. Maybe that's the reason why that panel exists there too.
-
Hm, that's a really odd problem: I traced through the code and it actually tries to redraw the whole entry, not just the part on the right. But apparently due to clipping only the right hand part actually gets drawn, leaving the part on the left unchanged. (That also applies to the Editor Bookmarks expert. I wonder why the same does not happen in the Grep Results window, which also uses a TListBox in owner draw mode. The difference there is that headers containing the file name and number of matches and the actual lines that match are separate lines, while in Instant Grep and Editor Bookmarks one line contains both, the header and the matches. But the drawing code is nearly identical.
-
Fixed in revision #4066. Thanks.
-
It should be a separate menu entry in the GExperts menu. No, unless somebody cares enough to implement support for that and submits a patch.
-
Delphi compiled EXE are flagged as malware by anti virus software
dummzeuch replied to Jaska's topic in General Help
Then you have been very lucky. Every single GExperts release for the last few years has been flagged as malware. After trying to correct this once or twice by contacting the antivirus publishers I simply gave up and whitelist it for my computers. I don't sign my executables and installers though, maybe that would help. -
I haven't received any feedback yet. Does that mean everything works fine and nobody has any ideas on improving that functionality? Or was Ian the only one who tried the new version, and nobody else bothered?
-
Setting the drop down width of a Combobox in Delphi
dummzeuch posted a topic in Tips / Blogs / Tutorials / Videos
By default, the width of the drop down list of a TComboBox is the same as the width of the control itself, and even in the latest Delphi version there apparently is no property to set it. Why is that so? Good question. There are probably many third party controls that offer this because it is rather simple to implement. But on the other hand, if it is that simple, why isn’t it a feature of the default control? It can really be a pain in the lower back that some entries are just not displayed correctly as seen in the picture above. Setting the drop down width is as simple as sending the CB_SETDROPPEDWIDTH message to the control’s handle: 1 SendMessage(TheCombobox.Handle, CB_SETDROPPEDWIDTH, MinimumWidthInPixels, 0); It does not allow to shrink the width of the drop down list though, because it sets the minimum width, not the actual width. There is this answer on StackOverflow for that particular problem. The result isn’t very visually appealing though, because the list is left aligned rather than right. Read on in my blog post https://blog.dummzeuch.de/2019/06/22/setting-the-drop-down-width-of-a-combobox-in-delphi/ -
How to eliminate error when searching for irrelevant file, see error below
dummzeuch replied to maths bengtsson's topic in VCL
Yes, @Uwe Raabe is correct: That's an error from GExperts Grep Search. Normally this would only be shown when searching a project or project group and a file referenced in the .dproj or .groupproj file does not exist. Looking into my crystal ball: Did you maybe select "All files in project group" but don't actually have a project group? Delphi internally always creates a group "ProjectGroup1", even if there is only one project, but in that case there is no file for it. -
Setting the drop down width of a Combobox in Delphi
dummzeuch replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
So, why is that a problem? Is the code wrong? Or is it just not the way you would have written it? -
Library for modifying windows PE files?
dummzeuch replied to Vincent Parrett's topic in General Help
The GExperts PEInformation expert then probably won't be of much use either, even though it allows to access some more data (and it only supports 32 bit executables) But I thought I'd mention it anyway. -
There is a batch file in the images subdirectory which creates the GXicons.rc file. I should probably put that into the pre build scripts.
-
Load DLL from resource, bypassing a file?
dummzeuch replied to Angus Robertson's topic in Windows API
Android <> Windows Microsoft has a track record of staying backwards compatible for a long time -
It's possible to determine the Delphi version from the .dproj/.bdsproj/.dof file, with some limitations.
-
Nice idea. But of course I have got something to complain about some suggestions I find it rather difficult to see those light gray lines on a dark gray background. Maybe I'm just getting old and it's my eyes not the tool, but anyway. Why not use black lines on a white background? I know that "dark mode" is all the rage, but readability shouldn't be thrown out of the window for that. It would be nice if the input line for the project file supported autocomplete dropping a file from explorer Dropping a .dpr file from explorer onto the main window to load it would also be nice. I'm sure I will think of some more possible improvements. What are your plans for this tool? Are you going to release the source code? Or make it a commercial tool?
-
Underwhelming featurewise might just mean they focused on fixing bugs. I could live with that. Many of the features introduced in the recent releases didn't really matter for me personally. One can hope ...
-
That's the dialog shown by the "Filter Exception" expert. Just disable that expert and you get the default dialog back.
-
Ok, I think I understood the request now. And I also think that's the way the GExperts formatter works already. It only adds line breaks where there was a space character.