PeterPanettone
-
Content Count
1233 -
Joined
-
Last visited
-
Days Won
5
Posts posted by PeterPanettone
-
-
7 minutes ago, Mark- said:SHIFT + Windows key + S, allows to capture a part of the screen via click and drag the mouse.
This does not work on my secondary monitor, only on the primary monitor.
-
Some museums exhibit works of art made from Windows error messages. When Delphi has a milestone birthday next year, such a museum could be opened.
-
On 4/8/2024 at 1:11 AM, Brian Evans said:Looks fine: the top of the hint window is below line of text it is providing a hint for.
Broken: The bottom of hint the window is where it's top used to be. This causes it to appear on top of the line of text it is providing a hint for.
You could use a free screenshot tool - there are many available.
-
9 minutes ago, Brian Evans said:Tested with Delphi 11.3 and it looks fine there. Don't have Delphi 12 installed to test with, just Delphi 12.1 and is broken in that release.
Hi Brian, thanks for testing. Can you please be more specific?
1. In Delphi 11.3, how does it "look fine"? Do you mean the caret is also hidden by the Hint in Delphi 11.3? Or do you mean the caret is not hidden by the Hint in Delphi 11.3?
2. In Delphi 12.1, what do you mean by "is broken"?
-
57 minutes ago, Brian Evans said:The hint window has broken positioning - the bottom of the hint window is where the top should be.
Aren't hint windows positioned automatically following some system setting?
-
13 minutes ago, Mark- said:Does it change if you use the dark theme?
No, it does not change.
-
2 hours ago, Uwe Raabe said:So, perhaps a dpi issue? Some system information may be helpful here.
-
1 hour ago, Uwe Raabe said:You might file a feature request in the new Quality Portal.
That's what I am going to do. Before doing that, I always ask other people whether they can confirm the issue.
So much wasted time because the Embarcadero developers obviously didn't care.
- 2
-
-
In the Code Editor, when typing 'if' followed by a space character, a Hint hides the caret position:
...so I cannot see the caret anymore and cannot see what I am typing. I am forced to press the ESC key to hide the hint, which is a completely pointless waste of time.
Can anyone confirm this?
This has been bothering me for a while now.
Isn't there a way to suppress this hint (or show it at a different position) when writing an 'if' statement?
-
3 hours ago, softtouch said:Just wanted to read and comment on it, but that weird new portal does not list any report for me.
Click the Requests button.
-
On 4/4/2024 at 3:19 PM, Der schöne Günther said:why is the .iso just 730 Megabytes?
Mine is 7.24 GB
-
2 minutes ago, PeterBelow said:Windows has a lot of these little inconsistencies that have accumulated over time by bolting more functionality on existing control classes.
You are right - one should write a book about this topic.
-
23 hours ago, Lajos Juhász said:When WordWrap is true, text that is too wide for the control wraps at the right margin.
This is not concisely logical, as it should word-wrap the Caption when the "text is too wide for the control" AND NOT PREVENT the word-wrap when it is already Multi-Line (if WordWrap = False).
And, from a purely practical point of view, what sense would it make to explicitly truncate the text if it's too large for the control? Wouldn't it rather be more practical to automatically word-wrap the Caption when the text is too large for the control?
-
In TRzButton the Multi-Line Caption works without having to explicitly set WordWrap = True:
-
At design-time:
procedure TForm1.FormCreate(Sender: TObject); begin Button1.Caption := 'Back' + #13#10 + 'to Editor'; end;
At run-time:
TButtonMultiLineCaptionTest.zip
Can anyone confirm this?
Is there a working "Quality Portal" where this can be reported?
-
On 3/16/2024 at 6:24 PM, Remy Lebeau said:What is your use-case for retrieving such a list?
Managing applications in general by giving the user the information on which file extensions open a specific application. This information lets the user decide which file extensions are allowed or should open a particular application.
-
There is a function AssocQueryString in shlwapi.dll.
-
6 hours ago, Remy Lebeau said:Unfortunately, it is not so simple.
That's why I wrote "multiple, countless references and back-references."
Has no one really ever written a function to enumerate the list of file extensions associated with a specific application?
-
When I try to get the list of all file extensions from the Registry associated with a specific application (double-clicking on the file opens the application), I encounter a complex, almost impenetrable maze of multiple, countless references and back-references that seems almost impossible to resolve.
It would be helpful if there were a "magical" function like GetListOfAssociatedFileExtensions('notepad.exe', 'open');
Is there a known solution to this problem?
For a test, I've started by enumerating all file-extension subkeys in the Registry:
function EnumerateFileExtensions: TStringList; var reg: TRegistry; subkeys: TStringList; i: Integer; key: string; begin Result := TStringList.Create; subkeys := TStringList.Create; reg := TRegistry.Create(KEY_READ); try reg.RootKey := HKEY_CLASSES_ROOT; // Open the key for reading if reg.OpenKeyReadOnly(key) then begin reg.GetKeyNames(subkeys); reg.CloseKey; // Log the retrieved subkeys CodeSite.Send('Subkeys:', subkeys.Text); // Iterate through subkeys and filter those starting with a dot for i := 0 to subkeys.Count - 1 do begin if Subkeys[i][1] = '.' then begin // Add the subkey to the result list Result.Add(subkeys[i]); end; end; end; finally reg.Free; subkeys.Free; end; end;
-
Another interesting possibility is to create DLLs using Python that Delphi applications can use. Python provides several ways to create DLLs, including using the ctypes module or the cffi module or compiling Python code to a shared library using tools like Cython or PyInstaller.
-
Ian Barker wrote in a comment on that page on March 7, 2024: "Ultimately it should be a superior solution. It’s taken longer than we expected to get it launched but we are almost ready with it now."
-
-
As a developer who deals a lot with design, I find Delphi's lack of layout options a thorn in my mind. The layout features in Delphi are one-dimensional (e.g., property Align).
Delphi lacks a layout component like TdxLayoutControl from DevExpress for a professional design:
In practice, the lack of professional layout capabilities results in many bumbling-looking applications, with controls that sometimes overlap when run on a device with display settings different from those of the original application developer. This shortcoming has given Delphi the unjustified reputation of being an unprofessional amateur developer tool.
That's why my greatest wish for the Delphi community would be a native layout control from Embarcadero. Or even better, Embarcadero should buy the TdxLayoutControl component from DevExpress and integrate it into the Professional version. This would give Delphi the professionalism it deserves due to its other capabilities.
- 1
Get menu window handle?
in Windows API
Posted
When I show a menu in Windows Notepad, this code gets me the handle of that menu window:
(which allows me to make a screenshot from that menu), for example:
But when I show a menu in the Delphi Code Editor, MenuWnd is 0!
Does anybody know how I can get the handle of the menu window from the Delphi code editor or in other similar cases?