-
Content Count
2995 -
Joined
-
Last visited
-
Days Won
107
Everything posted by dummzeuch
-
That's one of the problems that I thought I fixed yesterday. What's your screen resolution(s) and scaling? If multiple monitors: Which one is primary and which one is the IDE on? Do you have the task bar on both?
-
Run the batch file in the images folder first.
-
Theming is a gift that keeps giving: https://quality.embarcadero.com/browse/RSP-27318 (Of course this is not my working environment, I just created it to track down a problem with GExperts.)
-
What color did a user click on in an Image
dummzeuch replied to Tom F's topic in Algorithms, Data Structures and Class Design
The problem is probably that the mouse coordinates do not match the pixel coordinates. If you click on the upper left corner, are you getting x=0 and y=0? If not, try ScreenToClient. Once you get that position right, try the lower right corner. Do you get x=Bitmap.With and y=Bitmap.Height? If not try to multiply with Image.Width/Bitmap.Width and Image.Height/Bitmap.Height. And then you might have to consider that y coordinates of bitmaps can be upside down. -
How to close Messages window automatically
dummzeuch replied to Silver Black's topic in Delphi IDE and APIs
GExperts: https://blog.dummzeuch.de/2018/07/01/experimental-feature-automatically-close-messages-window/ -
Science Fiction 😉 SCNR
-
Alt-sortcuts are not always the same
dummzeuch replied to PeterPanettone's topic in Delphi IDE and APIs
I think it would be possible to do that. But: A Shortcut is the Ctrl/Shift/Alt+Key combination while what you are talking about is called a Hotkey. The expert does not/can not change the hotkeys -
[Suggestion] right click on a hyperlink in the source code to give a popup menu item for "Visit Link"
dummzeuch replied to Edwin Yip's topic in GExperts
You can already configure a Tools menu entry to do that. -
Alt-sortcuts are not always the same
dummzeuch replied to PeterPanettone's topic in Delphi IDE and APIs
This happens all over the place. The menu hotkeys change whenever the IDE thinks it should recalculate them. -
Blogged : Introducing DPM - a Package Manager for Delphi
dummzeuch replied to Vincent Parrett's topic in Delphi Third-Party
But that's exactly how we do it. Each project has its complete set of libraries stored in subdirectories of the project and referenced in subversion as svn:external. Compared to the size of the data we are working with (e.g. HD videos with several 10000 pictures each), that's not much space. And hard disks are cheap, especially if you buy them by the hundreds. -
Blogged : Introducing DPM - a Package Manager for Delphi
dummzeuch replied to Vincent Parrett's topic in Delphi Third-Party
What David said! My library path only contains libraries that were installed together with the IDE, and I even remove some of these (e.g. Indy) because I update to newer versions. Everything else goes to the project's search path. -
Shouldn't that be: class procedure TLog.This(const Msg: string); begin LogThis(UnitName, Msg); end;
-
[Suggestion] right click on a hyperlink in the source code to give a popup menu item for "Visit Link"
dummzeuch replied to Edwin Yip's topic in GExperts
Please file a feature request on sourceforge if you think it important enough. -
[Suggestion] right click on a hyperlink in the source code to give a popup menu item for "Visit Link"
dummzeuch replied to Edwin Yip's topic in GExperts
Unfortunately there currently is no code in GExperts to react to mouse events in the editor (at least I'm not aware of any). So this would not be a simple extension based on existing mechanisms, but has to be done from scratch, possibly different for all supported versions and tested accordingly. Feel free to file it as a feature request, but don't hold your breath. Did you submit it as a feature request to embarcadero? They would have it much easier to implement it. -
Uses Clause Manager improved: Filtering Identifiers with multiple words!
dummzeuch replied to PeterPanettone's topic in GExperts
We definitely have different views on what common practice (or rather: good practice) means. We also have different views on effiicent communication. Let's end the discussion now. It leads nowhere. -
Uses Clause Manager improved: Filtering Identifiers with multiple words!
dummzeuch replied to PeterPanettone's topic in GExperts
I'm not saying it didn't work. I actually have no idea whether it worked because I never tried it. If you say, it did, I believe you. It's simply bad coding practice to use global variables in general and in particular for creating side effects (look it up, it means something different than you think) like you did. If a procedure needs additional parameters, why not simply pass them? Remember when I said that your latest change (the one that added the web search context menu entry) didn't compile because two variables were not declared? If you had changed the procedure FilterStringList so it required an additional parameter it wouldn't have compiled either but I would have gotten a strong hint that there was another change in another unit and would have looked for it. But as it was, those missing variable declarations could have been: local variables unit global variables fields of the class global variables from any unit that is used by this unit How could I have known? So I inspected the code and saw that they were used in several methods. That usually means that they are declared as fields of the class. I added that declaration and everything compiled fine. But since I was missing important changes from a different unit the code for multi word filtering didn't work. I'm sorry if I have offended you. As I said: Politeness is not one of my strengths. -
But why should it? There is already Daniel's plugin.
-
I am still trying to get the formatter to handle this correctly: function RegisterClipboardFormatW(lpszFormat: PWideChar): UINT; stdcall; external user32 Name 'RegisterClipboardFormatW'; Currently it does not indent the second line and it's much more complex than it seems to get this right.
-
Uses Clause Manager improved: Search Identifier information on the Web
dummzeuch replied to PeterPanettone's topic in GExperts
I haven't seen any difference. What exactly did you do? -
Uses Clause Manager improved: Search Identifier information on the Web
dummzeuch replied to PeterPanettone's topic in GExperts
implemented in revision #2911 -
Uses Clause Manager improved: Filter units with multiple words!
dummzeuch replied to PeterPanettone's topic in GExperts
implemented in revision #2908 -
Uses Clause Manager improved: Filtering Identifiers with multiple words!
dummzeuch replied to PeterPanettone's topic in GExperts
Implemented in revision #2910 -
Uses Clause Manager improved: Filter units with multiple words!
dummzeuch replied to PeterPanettone's topic in GExperts
OK, I went back to look at your changes in chronological order: The idea is nice, but the implementation - how do I say that without being rude? - suboptimal. Creating a global MultFilter: TStringList variable in GX_GenericUtils which is only used in FilterStringList and if assigned means that the filter parameter will be ignored is not just a code smell, it stinks. Why not have a separate function for this and pass the string list as a parameter to it? Especially since the string list is being populated every time the user enters a new character. -
Uses Clause Manager improved: Filtering Identifiers with multiple words!
dummzeuch replied to PeterPanettone's topic in GExperts
Again, nice idea but the implementation is - remember, I'm trying to be polite (*1) - suboptimal. You introduced yet another global variable and even a not intended side effect: What if the user has entered a multi word unit filter and then switches to the identifier tab? Oh, you added a workaround for this design flaw in the form itself? I'm going to reimplement this differently because I like the idea. (*1: Me being polite? There are people who think that impossible. I have to agree, I'm not good at that.) -
Uses Clause Manager improved: Search Identifier information on the Web
dummzeuch replied to PeterPanettone's topic in GExperts
Not sure this would be better. Just my assumption was wrong. Ideally I would prefer patches for single features.