Jump to content

dummzeuch

Members
  • Content Count

    2855
  • Joined

  • Last visited

  • Days Won

    101

Everything posted by dummzeuch

  1. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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.
  2. dummzeuch

    Testers needed for GExperts Instant Grep expert

    Yes, I was thinking about that already but didn't find the time to check it out yet.
  3. dummzeuch

    Testers needed for GExperts Instant Grep expert

    I'm always interested in possible improvements.
  4. dummzeuch

    Searching Edit component with autocomplete for Directory/Files

    Not a component but a function that adds this functionality to any TEdit: https://blog.dummzeuch.de/2019/04/28/autocompletion-for-tedits-revisited/
  5. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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).
  6. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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.
  7. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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.
  8. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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.
  9. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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.
  10. dummzeuch

    Testers needed for GExperts Instant Grep expert

    Fixed in revision #4066. Thanks.
  11. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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.
  12. 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.
  13. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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?
  14. 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/
  15. 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.
  16. So, why is that a problem? Is the code wrong? Or is it just not the way you would have written it?
  17. dummzeuch

    Library for modifying windows PE files?

    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.
  18. dummzeuch

    Testers needed for GExperts Instant Grep expert

    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.
  19. dummzeuch

    Load DLL from resource, bypassing a file?

    Android <> Windows Microsoft has a track record of staying backwards compatible for a long time
  20. dummzeuch

    Unit dependency viwer

    It's possible to determine the Delphi version from the .dproj/.bdsproj/.dof file, with some limitations.
  21. dummzeuch

    Unit dependency viwer

    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?
  22. dummzeuch

    Rad 12 Beta - Link to News

    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 ...
  23. dummzeuch

    To turn off the error warning

    That's the dialog shown by the "Filter Exception" expert. Just disable that expert and you get the default dialog back.
  24. dummzeuch

    Is there a way for the formatter to do this?

    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.
×